Title: Syntax Error causing Server Error/Warning
Last modified: August 21, 2016

---

# Syntax Error causing Server Error/Warning

 *  Resolved [sabbi16](https://wordpress.org/support/users/sabbi16/)
 * (@sabbi16)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/syntax-error-causing-server-errorwarning/)
 * 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/](http://wordpress.org/extend/plugins/widget-logic/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-causing-server-errorwarning/#post-3848678)
 * cheers. any idea why that line causes an error? It looks innocuous. The semi-
   colons all look ok – I think.
 *  Thread Starter [sabbi16](https://wordpress.org/support/users/sabbi16/)
 * (@sabbi16)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-causing-server-errorwarning/#post-3848714)
 * 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?
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-causing-server-errorwarning/#post-3848720)
 * 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)
 *  Thread Starter [sabbi16](https://wordpress.org/support/users/sabbi16/)
 * (@sabbi16)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-causing-server-errorwarning/#post-3848721)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/widget-logic_c8dde5.svg)
 * [Widget Logic](https://wordpress.org/plugins/widget-logic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-logic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-logic/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-logic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-logic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-logic/reviews/)

## Tags

 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 4 replies
 * 2 participants
 * Last reply from: [sabbi16](https://wordpress.org/support/users/sabbi16/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/syntax-error-causing-server-errorwarning/#post-3848721)
 * Status: resolved