WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. DustinNay
    Member
    Posted 2 months 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 50.192.200.129] 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?

    http://wordpress.org/plugins/widget-logic/

  2. alanft
    Member
    Plugin Author

    Posted 2 months 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. DustinNay
    Member
    Posted 2 months 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
    Member
    Plugin Author

    Posted 2 months ago #

    Cheers.

    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?

Reply

You must log in to post.

About this Plugin

About this Topic