• Resolved ahayman

    (@ahayman)


    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)
  • 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

    (@wisdmlabs)

    Hi,

    First of all, thanks @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 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

    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:

    https://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

    (@wisdmlabs)

    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 [email protected] and thanks @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.