Title: Update throws error
Last modified: January 16, 2017

---

# Update throws error

 *  Resolved [ahayman](https://wordpress.org/support/users/ahayman/)
 * (@ahayman)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/update-throws-error/)
 * Updated the Edwiser Bridge plugin last night. Once activated it caused a white
   screen. We have the site up and running again but Edwiser Bridge is deactivated.
   We received the following error:
 * Fatal error: Can’t use function return value in write context in /home3/prospen1/
   public_html/primember/wp-content/plugins/edwiser-bridge/admin/class-eb-admin-
   settings.php on line 611
 * I’ve also sent an email to support but I’m hoping this will help others who may
   have the same issue.
 * Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [gmo81](https://wordpress.org/support/users/gmo81/)
 * (@gmo81)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/update-throws-error/#post-8668722)
 * Hi there,
 * I hit the same problem – I put the following fix in place in that file (./wp-
   content/plugins/edwiser-bridge/admin/class-eb-admin-settings.php) at line 611
   and reported the issue and the following fix to wisdmlabs:
 *  //$selectedVal= empty(trim($selectedVal))?”4″:$selectedVal;
    $tmpSelectedVal
   =trim($selectedVal); $selectedVal=empty($tmpSelectedVal)?”4″:$selectedVal;
 * (ie comment out the current line that’s breaking and replace it with these two
   lines).
 * An alternative, from reading the php manual would be to just use trim($selectedVal)?”
   4″:$selectedVal.
 * Either way, I’ve asked for an official fix – but hopefully the above gets you
   going.
 * -GMO
 *  Plugin Author [WisdmLabs](https://wordpress.org/support/users/wisdmlabs/)
 * (@wisdmlabs)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/update-throws-error/#post-8668790)
 * Hi,
 * First of all, thanks [@gmo81](https://wordpress.org/support/users/gmo81/) for
   coming up with this brilliant work around.
 * The reason you are facing this error is due to the PHP version on the server 
   being 5.5 or lower. By implementing the workaround which [@gmo81](https://wordpress.org/support/users/gmo81/)
   suggested, you can certainly get a temporary fix to this issue, but it is always
   advisable to you use the recent version of PHP on your server to avoid such incident
   in future.
 * Regards,
    WisdmLabs Team
 *  [gmo81](https://wordpress.org/support/users/gmo81/)
 * (@gmo81)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/update-throws-error/#post-8668835)
 * G’day,
 * Hah – nothing brilliant here 🙂 But it works.
 * But yes – it’s a fair point re: PHP version – I didn’t actually realise this 
   host defaulted to 5.4 – and as noted in the manual for the empty() function:
 * [http://php.net/manual/en/function.empty.php](http://php.net/manual/en/function.empty.php)
 * with PHP 5.5 or greater won’t have this issue – and if you’re using shared hosting,
   you may have an option to select a greater version – talk to your hosting provider.
 * I’ve just tested with PHP 5.6 and can confirm that there isn’t an issue in that
   case – so maybe switch up your PHP version or talk to your provider to get this
   sorted relatively easily.
 * -GMO
 *  Plugin Author [WisdmLabs](https://wordpress.org/support/users/wisdmlabs/)
 * (@wisdmlabs)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/update-throws-error/#post-8788879)
 * Hi,
 * Since it has been three weeks since the last reply we are hoping that the issues
   have been resolved and we are closing this thread. For any other assistance, 
   please get in touch with is at [support@wisdmlabs.com](https://wordpress.org/support/topic/update-throws-error/support@wisdmlabs.com?output_format=md)
   and thanks [@gmo](https://wordpress.org/support/users/gmo/) once again for the
   clarification.
 * Regards,
    Wisdmlabs Team

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Update throws error’ is closed to new replies.

 * ![](https://ps.w.org/edwiser-bridge/assets/icon-128x128.gif?rev=3171309)
 * [Edwiser Bridge – WordPress Moodle Integration](https://wordpress.org/plugins/edwiser-bridge/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/edwiser-bridge/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/edwiser-bridge/)
 * [Active Topics](https://wordpress.org/support/plugin/edwiser-bridge/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/edwiser-bridge/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/edwiser-bridge/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)
 * [white screen](https://wordpress.org/support/topic-tag/white-screen/)
 * [WSOD](https://wordpress.org/support/topic-tag/wsod/)

 * 4 replies
 * 3 participants
 * Last reply from: [WisdmLabs](https://wordpress.org/support/users/wisdmlabs/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/update-throws-error/#post-8788879)
 * Status: resolved