WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
widget-logic error (7 posts)

  1. pierri
    Member
    Posted 2 years ago #

    if i try to swich to php 5.3.x
    i've got this error on both sidebar before the widget menu (correct)
    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /web/htdocs/www.istruzioneveneto.it/home/wpusr/wp-content/plugins/widget-logic/widget_logic.php(270) : eval()'d code on line 1

    I think there is a problem on custom sidebar code

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

  2. alanft
    Member
    Plugin Author

    Posted 2 years ago #

    Your widget logic has a syntax error in it that may have been valid in the previous version of PHP

  3. pierri
    Member
    Posted 2 years ago #

    i thought too, but is very difficult find the error

    there where 7 occurrance of this error
    after change of widget logic preferences there where only two on both sides before the correct widget so i think the error is in theme syntax nobody has the same problem?

  4. pierri
    Member
    Posted 2 years ago #

  5. alanft
    Member
    Plugin Author

    Posted 2 years ago #

    thanks for the screenshots, but I can't tell a lot from them. Can you identify which widgets are causing the problem - and if so what's the WL code in them.

    You could try saving out the WL options (for safe keeping) and blank each widget in turn temporarily to see which code produces the errors.

  6. Mike
    Member
    Posted 2 years ago #

    I'm seeing the same error, right after I upgraded to WordPress 3.4.1. Worked fine just before the upgrade. I tried re-installing WP 3.4.1, as well as deleting and re-installing Widget Logic, no help. Any ideas/suggestions?

  7. Mike
    Member
    Posted 2 years ago #

    Disregard, I found the issue. Was using the following conditional tag:
    is_single( '17' )

    However, somehow the leading quote mark before the post number got deleted. Restoring that fixed it. Incidentally, using no quote marks worked, too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.