Widget Logic
WP 3.8 conflict? Something else. 500 error (4 posts)

  1. Dustin Nay
    Posted 2 years ago #

    Widget logic has been causing 500 errors to appear for bots (Google Webmaster Tools specifically) for several weeks.

    From server error log:

    [Thu Jan 23 20:53:17 2014] [error] [client] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /nas/wp/www/cluster-2010/chlaw/wp-content/plugins/widget-logic/widget_logic.php(286) : eval()'d code on line 4

    When I disabled the plugin that all went away and everything worked perfectly, so I know it's the plugin. But I'm not sure what exactly within the plugin is causing this.

    It's been happening since shortly after upgrading to 3.8 (as far as I can tell in error logs and in GWT).

    Any ideas?


  2. alanft
    Plugin Author

    Posted 2 years ago #

    you have some logic in one of your widgets that's not right. check through each of your widgets - it's probably a missing bracket or something.

    one method would be to save out your WL config, and blank the widgets one by one until the error goes. then you can restore the config and so on.

  3. Dustin Nay
    Posted 2 years ago #

    Ah, okay. So just use the export feature to create a backup then add them back in one by one.

    I'll give that a try. I didn't actually write all the logic stuff (I'm the SEO guy/manager, not a dev). I think I can handle troubleshooting this now that I have a direction.

    I'll report back if for some reason I can't figure out. Thanks for the speedy reply.

  4. alanft
    Plugin Author

    Posted 2 years ago #


    note to self: add a FAQ something like
    I get an error like "PHP Parse error: syntax error… eval()'d code on line X" that goes away when I deactivate Widget Logic. How to fix it?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic