I have the exact same issue! Same warning accross the website!
I found the issue, it appears that if your condition logic contains quotes, like:
is_page('about')
then these quotes gets escaped, and then eval tries to eval
return (is_page(\'about\'))
I patched it by manually modifying widget_logic.php as follows, starting at line 281:
if (stristr($wl_value,"return")===false) {
$wl_value="return (" . $wl_value . ");";
// Unescape the quotes in $wl_value
$wl_value=preg_replace("/\\\'/","'", $wl_value);
}
Hopefully the author will fix it and I will just have to overwrite my change.
Happened to me as well. For a temp fix I deactivated the plugin, downloaded the previous version, 0.52, from the developers page of the plugin at http://wordpress.org/extend/plugins/widget-logic/developers/. I then overwrote the new plugin which is located in the wp-content/plugins/widget-logic/ directory with the previous plugin and then activated the plugin again. That fixes the immediate problem and I will wait until wiser heads than mine figure out the fix. Hope this helps.
This happened to us as well. glad to see it is a common error and not something we did internally. Widget Logic has had great support in the past, and I’m sure we’ll get a patch out ASAP.
I just upgraded the plugin and I’m getting terrible errors all over my website too 🙁
http://www.spacepops.com/
Thanks phil, I guess I’ll just roll back to the old version and wait for the fix.
FIX for wordpress 3.5 version
Add following code on line number 58 (in widget_logic_visual_admin_enqueue_script() function) in plugins/widget-logic-visual/widget_logic.php
wp_register_script('jquery.1.7' ,plugin_dir_url(__FILE__).'js/jquery-1.7.1.min.js');
wp_enqueue_script('jquery.1.7');
and upload jquery1.7.1.min.js in plugin js folder
And it works fine for.
🙁 I will patch ASAP. Thanks all and apologies. My own site WL doesn’t have any strings in it so didn’t catch that
hi alanft
Are you using Widget logic Visual plugin?
If yes, then open plugins/widget-logic-visual/widget_logic.php and you will find widget_logic_visual_admin_enqueue_script() on line number 58.
i am not – visual is nothing to do with me
I have tried to roll back the ‘stable tag’ to 0.52, and will have a proper fix this evening (GMT)
This solution is for Widget logic Visual plugin. (http://wordpress.org/extend/plugins/widget-logic-visual/ )
Widget Logic Visual is better than Widget Logic( http://wordpress.org/extend/plugins/widget-logic/ )
Let me know, when your issues will fix and how.
@khan.shabnam I did not understand your last post.
What is better? Widget Logic OR Widget Logic Visual?
Alanft is the maintainer of Widget Logic