Title: PHP Parse Syntax error &#8211; unexpected &#039;;&#039; in widget_logic.php(284)
Last modified: August 21, 2016

---

# PHP Parse Syntax error – unexpected ';' in widget_logic.php(284)

 *  Resolved [wp_victim](https://wordpress.org/support/users/wp_victim/)
 * (@wp_victim)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-parse-syntax-error-unexpected-in-widget_logicphp284/)
 * I notice in my log that I’ve been getting a lot errors for
 * PHP Parse error: syntax error, unexpected ‘;’ in /var/www/vhosts/mywebsite.com/
   releases/20140528_1/wp-content/plugins/widget-logic/widget_logic.php(284) : eval()’
   d code on line 1
 * I’ve a Multisite installation with several sites and I can’t see any error on
   the websites… Also didn’t figure out how to reproduce the error, since my log
   is for multiple sites.
 * I’ve seen the topic [(related to version 0.53)](http://wordpress.org/support/topic/error-after-widget-logic-upgrade?replies=36)
 * but apparently this issue was fixed on version 0.54.
 * I heard someone in the old post mentioning to remove the ; from the quotes “”.(
   by philibertperusse)
 *     ```
       if (stristr($wl_value,"return")===false)
         $wl_value="return (" . $wl_value . ")<strong>;</strong>";
       ```
   
 * Can anyone help me? and is anybody having this error on version .56?
 * [https://wordpress.org/plugins/widget-logic/](https://wordpress.org/plugins/widget-logic/)

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

 *  [Anrkist](https://wordpress.org/support/users/anrkist/)
 * (@anrkist)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-parse-syntax-error-unexpected-in-widget_logicphp284/#post-5000608)
 * I had a similar error and it pertained to my logic code, which was incorrect.
   If you haven’t solved your problem yet, remove all items with logic in them and
   see if the error disappears.
 * Then re-enable them one at a time, refreshing the page each time you add one 
   to see if the error returns.
 * In my particular case, I had two ”page-slug-” surrounding one of my logic items.
 *  Thread Starter [wp_victim](https://wordpress.org/support/users/wp_victim/)
 * (@wp_victim)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-parse-syntax-error-unexpected-in-widget_logicphp284/#post-5000609)
 * Thank you **Anrkist**!!
 * I will check what you suggested and let you know if worked!
 *  Thread Starter [wp_victim](https://wordpress.org/support/users/wp_victim/)
 * (@wp_victim)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-parse-syntax-error-unexpected-in-widget_logicphp284/#post-5000611)
 * Thank you Anrkist!!!
 * What we did was..
 * Go in the dashboard > Appearance > export all the widgets and search for ‘;’.
 * Finding the ; was easy to see which one was incorrect.
 * Thank you for your help!!
 * This error was blinding me to find other issues in my log.
 *  [Anrkist](https://wordpress.org/support/users/anrkist/)
 * (@anrkist)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/php-parse-syntax-error-unexpected-in-widget_logicphp284/#post-5000613)
 * Great! Glad I could help.

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

The topic ‘PHP Parse Syntax error – unexpected ';' in widget_logic.php(284)’ 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

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

 * 4 replies
 * 2 participants
 * Last reply from: [Anrkist](https://wordpress.org/support/users/anrkist/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/php-parse-syntax-error-unexpected-in-widget_logicphp284/#post-5000613)
 * Status: resolved