WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Error after Widget Logic upgrade

[Resolved] Error after Widget Logic upgrade

  • 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?
    http://wordpress.org/extend/plugins/widget-logic/

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? πŸ˜‰

    igorlaszlo
    Member

    @igorlaszlo

    @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 Author alanft
    Member

    @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

    igorlaszlo
    Member

    @igorlaszlo

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

    Plugin Author alanft
    Member

    @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 Author alanft
    Member

    @alanft

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

    worthdesigning
    Participant

    @auntypizza

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

    ElizaTaylor
    Member

    @elizataylor

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

    Plugin Author alanft
    Member

    @alanft

    OK. If anyone wants to try 0.54 again

    http://downloads.wordpress.org/plugin/widget-logic.0.54.zip

    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

    BizWriter
    Member

    @bizwriter

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

    worthdesigning
    Participant

    @auntypizza

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

    BizWriter
    Member

    @bizwriter

    Thanks AuntyAstro! Worked fine. Phew!

    worthdesigning
    Participant

    @auntypizza

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

    Plugin Author alanft
    Member

    @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 ‘[Resolved] Error after Widget Logic upgrade’ is closed to new replies.