Support » Plugin: Widget Logic » Error after Widget Logic upgrade

  • Resolved Meginoz


    I’ve just upgraded the Widget Logic plugin on my local test site, and am seeing this error at the top of each page, and everywhere a widget should be:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING in C:\xampp\htdocs\megansweb2012\wp-content\plugins\widget-logic\widget_logic.php(284) : eval()'d code on line 1

    I’m guessing it’s something to do with the following item in the Change Log, but it’s a bit above my head what this means.

    Added a ‘widget_logic_eval_override’ filter. This allows advanced users to bypass EVAL with a function of their own.

    Any idea what this error means, and how I can fix it?

Viewing 15 replies - 16 through 30 (of 35 total)
  • Thanks so much philibertperusse, your help came in handy for me after editing the file. Have a great day. Cheers. Merry Xmas & Happy New Year in advance.

    Another argument for GitHub? πŸ˜‰

    @alanft, have the same problem here and yes, it would be kind to fix it as your widget is very useful for me in several web sites… and thanks in advance ! πŸ™‚

    Plugin Contributor alanft


    My temporary advice is to roll back to 0.52 (which is now the current version) until I can fix this properly – which may be a few hours away

    No worries, i already did like others πŸ™‚

    Plugin Contributor alanft


    you know what, I’m finding it hard to replicate this problem! I added a is_page with a slug name and it works as normal. :-/

    gonna keep at it…

    Plugin Contributor alanft


    now i have made something odd happen, but it’s not what I expected. #runningcommentary

    Great plugin alanft … thanks for making it and for all your efforts to fix latest version. I too have rolled back, so no biggie πŸ˜‰

    Ditto, I just deleted the plugin and redownloaded version 0.52 so my website is back to normail again πŸ™‚

    Plugin Contributor alanft


    OK. If anyone wants to try 0.54 again

    I added a stripslashes as there’s clearly some new cleaning of options via escaping at least quotes.

    (I was confused cos I found that a is_pages(‘slug-name’) code I’ve relied on forever stopped working properly too.)

    If it clears things up I’ll do a .55 with another translation added in

    Agggghh. To install the replacement plugin, do we delete the broken version and then install this zip? If the plugin is deleted, won’t all the widgets disappear too??

    @bizwriter – I deleted the plugin then reinstalled – all widgets back to the way they were so no drama

    Thanks AuntyAstro! Worked fine. Phew!

    No worries BizWriter – it’s great having these support forums with RSS feeds πŸ˜‰

    Plugin Contributor alanft


    still don’t understand where the quote escaping is coming from, if it vanishes going back to .52 πŸ™

    anyone able to check if the updated .54 with stripslashes fixes the issue?

Viewing 15 replies - 16 through 30 (of 35 total)
  • The topic ‘Error after Widget Logic upgrade’ is closed to new replies.