Support » Plugin: Widget Logic » Syntax Error causing Server Error/Warning

  • Resolved sabbi16


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alanft


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

    That is the error code:

    mod_fcgid: stderr: PHP Parse error: syntax error, unexpected ';' in /var/www/vhosts/ : eval()'d code on line 1

    Maybe it is somewhere else?

    Plugin Contributor alanft


    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)

    Thank you! Found it:

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

    The ; in this line caused the error.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Syntax Error causing Server Error/Warning’ is closed to new replies.