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