WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
[resolved] Syntax Error causing Server Error/Warning (5 posts)

  1. sabbi16
    Member
    Posted 1 year ago #

    Hi,
    following line

    $wl_value="return(" . $wl_value . ");";

    causes an error/warning. An 500 internal error for google which is unpleasent. Obvious the ;, but there are some more changes needed, I think.
    Would be nice it if could be corrected. Great Plug-In, though.
    Thank you.
    Best Regards
    Sabbi

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

  2. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    cheers. any idea why that line causes an error? It looks innocuous. The semi-colons all look ok - I think.

  3. sabbi16
    Member
    Posted 1 year ago #

    That is the error code:

    mod_fcgid: stderr: PHP Parse error: syntax error, unexpected ';' in /var/www/vhosts/domain.de/httpdocs/wp-content/plugins/widget-logic/widget_logic.php(284) : eval()'d code on line 1

    Maybe it is somewhere else?

  4. alanft
    Member
    Plugin Author

    Posted 1 year ago #

    yep, there's an error in your widget logic in one of your widgets somewhere. Try blanking them one at a time (save the config out first)

  5. sabbi16
    Member
    Posted 1 year ago #

    Thank you! Found it:

    Under the Widgetlogic we wrote:
    is_single('site1'); is_single('site2')

    The ; in this line caused the error.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic