# Weno 6.1.0 error

**URL:** <https://community.open-emr.org/t/weno-6-1-0-error/18106>\
**Category:** Support\
**Tags:** weno\
**Created:** [March 26, 2022, 8:58pm UTC](https://community.open-emr.org/t/weno-6-1-0-error/18106 "2022-03-26T20:58:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vik](https://community.open-emr.org/letter_avatar_proxy/v4/letter/v/c67d28/32.png) [@Vik](https://community.open-emr.org/u/Vik)\
**Post date:** [March 26, 2022, 8:58pm UTC](https://community.open-emr.org/t/weno-6-1-0-error/18106/1 "2022-03-26T20:58:39Z")

</div>

I just installed 6.1.0 on my Linux Ubuntu system.  
I can not find a way to E-prescribe on the new release. I was using a WENO exchange and before ERx icon will appear at the Prescription section. Now there is no icon. WENO is turned on at the Admin/Globals/Connections. Admin/Other/Weno management is present and shows correct info. Any ideas?

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [March 27, 2022, 12:52am UTC](https://community.open-emr.org/t/weno-6-1-0-error/18106/2 "2022-03-27T00:52:56Z")

</div>

hi @Vik , maybe @juggernautsei has some ideas on what’s going on.

---

<div class="post-metadata">

**Author:** ![juggernautsei](https://community.open-emr.org/user_avatar/community.open-emr.org/juggernautsei/32/10764_2.png) [@juggernautsei](https://community.open-emr.org/u/juggernautsei)\
**Post date:** [March 27, 2022, 3:02am UTC](https://community.open-emr.org/t/weno-6-1-0-error/18106/3 "2022-03-27T03:02:33Z")

</div>

Hi @Vik ,  
when @robert.down redesigned the dashboard. I did not follow his work. He may have inadvertently left the button off or moved it somewhere else. But I really do not know.

---

<div class="post-metadata">

**Author:** ![Vik](https://community.open-emr.org/letter_avatar_proxy/v4/letter/v/c67d28/32.png) [@Vik](https://community.open-emr.org/u/Vik)\
**Post date:** [March 27, 2022, 2:37pm UTC](https://community.open-emr.org/t/weno-6-1-0-error/18106/4 "2022-03-27T14:37:32Z")

</div>

Thank you so much for the replies!  
I sent a message to @robert.down in regards of this issue. If any of you guys have an idea where the WENO button was programmed in the old version I would appreciate a tip. I love messing around with php 🙂

---

<div class="post-metadata">

**Author:** ![stephenwaite](https://community.open-emr.org/user_avatar/community.open-emr.org/stephenwaite/32/15754_2.png) [@stephenwaite](https://community.open-emr.org/u/stephenwaite)\
**Post date:** [March 27, 2022, 2:45pm UTC](https://community.open-emr.org/t/weno-6-1-0-error/18106/5 "2022-03-27T14:45:16Z")

</div>

Hi @Vik , just taking a quick look at the [overhaul](https://github.com/openemr/openemr/commit/ab4ed0595e4316647eaff1287340ed1c39a535f0#diff-32152c4fb7bb0703a32e6c50127dbffbefc950ff6c93ce33b7265b496e3d1046L418-L420) and noticed this removal.

what if you replace [this block](https://github.com/openemr/openemr/blob/rel-610/interface/patient_file/summary/stats.php#L323-L331) with

```auto
   if ($GLOBALS['erx_enable']) {
        $viewArgs['title'] = 'Prescription History';
        $viewArgs['btnLabel'] = 'Add/Edit eRx';
        $viewArgs['btnLink'] = "{$GLOBALS['webroot']}/interface/eRx.php?page=compose";
    } elseif ($GLOBALS['weno_rx_enable']) {
        $viewArgs['title'] = 'Prescription History';
        $viewArgs['btnLabel'] = 'Add/Edit eRx';
        $viewArgs['btnLink'] = "{$GLOBALS['webroot']}/interface/weno/indexrx.php";
    } else {
        $viewArgs['btnLink'] = "editScripts('{$GLOBALS['webroot']}/controller.php?prescription&list&id=" . attr_url($pid) . "')";
        $viewArgs['linkMethod'] = "javascript";
        $viewArgs['btnClass'] = "iframe rx_modal";
    }

```

---

<div class="post-metadata">

**Author:** ![Vik](https://community.open-emr.org/letter_avatar_proxy/v4/letter/v/c67d28/32.png) [@Vik](https://community.open-emr.org/u/Vik)\
**Post date:** [March 27, 2022, 4:02pm UTC](https://community.open-emr.org/t/weno-6-1-0-error/18106/6 "2022-03-27T16:02:14Z")

</div>

Perfect!  
Now if I click on Add/Edit button it takes me to the WENO page. However this fix takes away the option to produce paper scripts. Not a big deal, but it would be interesting to find out how to overcome that.  
Thank you so much for your help Stephen Waite!

---

<div class="post-metadata">

**Author:** ![Vik](https://community.open-emr.org/letter_avatar_proxy/v4/letter/v/c67d28/32.png) [@Vik](https://community.open-emr.org/u/Vik)\
**Post date:** [March 27, 2022, 7:08pm UTC](https://community.open-emr.org/t/weno-6-1-0-error/18106/10 "2022-03-27T19:08:36Z")

</div>

I changed your fix so it works perfect for me now. I can print scripts or E prescribe drugs without problem!

```auto
 if ($GLOBALS['erx_enable']) {
        $viewArgs['title'] = 'Prescription History';
        $viewArgs['btnLabel'] = 'Add/Edit eRx';
        $viewArgs['btnLink'] = "{$GLOBALS['webroot']}/interface/eRx.php?page=compose";
    } elseif ($GLOBALS['weno_rx_enable']) {
        $viewArgs['title'] = 'Prescription History';
        $viewArgs['btnLabel'] = 'Add/Edit eRx';
        echo "<button onclick='getWeno()'>" . xlt('eRx') . "</button>";
        $viewArgs['btnLink'] = "{$GLOBALS['webroot']}/interface/weno/indexrx.php";

        $viewArgs['btnLink'] = "editScripts('{$GLOBALS['webroot']}/controller.php?prescription&list&id=" . attr_url($pid) . "')";
        $viewArgs['linkMethod'] = "javascript";
        $viewArgs['btnClass'] = "iframe rx_modal";
    }

```

Thank you all so much for your help! I know that this solution is a hack but it works for me.
