Title: widget-logic error
Last modified: August 20, 2016

---

# widget-logic error

 *  [pierri](https://wordpress.org/support/users/pierri/)
 * (@pierri)
 * [14 years ago](https://wordpress.org/support/topic/widget-logic-error-1/)
 * 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/](http://wordpress.org/extend/plugins/widget-logic/)

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

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [14 years ago](https://wordpress.org/support/topic/widget-logic-error-1/#post-2775811)
 * Your widget logic has a syntax error in it that may have been valid in the previous
   version of PHP
 *  Thread Starter [pierri](https://wordpress.org/support/users/pierri/)
 * (@pierri)
 * [14 years ago](https://wordpress.org/support/topic/widget-logic-error-1/#post-2775998)
 * 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?
 *  Thread Starter [pierri](https://wordpress.org/support/users/pierri/)
 * (@pierri)
 * [14 years ago](https://wordpress.org/support/topic/widget-logic-error-1/#post-2775999)
 * [preferences ](http://www.istruzioneveneto.it/wpusr/wp-content/uploads/2012/05/inmpostazioni.png)
 * [ error ](http://www.istruzioneveneto.it/wpusr/wp-content/uploads/2012/05/testata.png)
 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [14 years ago](https://wordpress.org/support/topic/widget-logic-error-1/#post-2776005)
 * 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.
 *  [Mike](https://wordpress.org/support/users/maddogmike/)
 * (@maddogmike)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/widget-logic-error-1/#post-2776116)
 * 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?
 *  [Mike](https://wordpress.org/support/users/maddogmike/)
 * (@maddogmike)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/widget-logic-error-1/#post-2776117)
 * 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.

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

The topic ‘widget-logic error’ 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/)

 * 6 replies
 * 3 participants
 * Last reply from: [Mike](https://wordpress.org/support/users/maddogmike/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/widget-logic-error-1/#post-2776117)
 * Status: not resolved