Title: Parse error eval code on line 1
Last modified: August 20, 2016

---

# Parse error eval code on line 1

 *  [suzyoo](https://wordpress.org/support/users/suzyoo/)
 * (@suzyoo)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-eval-code-on-line-1/)
 * Hello, wonderful Allen! Okay, so…can’t figure it out. I’m including all of my
   logic.
    Totally stumped. The error is being thrown a lot.
 * ‘PHP Parse error: syntax error, unexpected ‘!’ in /home1/suzytest/public_html/
   wp-content/plugins/widget-logic/widget_logic.php(284) : eval()’d code on line
   1′
 * Widget #1: ‘is_front_page()’
 * Widget #2: ‘in_category( 139) || is_search && !is_front_page () && !is_page (
   31)’
 * Widget #3: ‘is_page( 31 )’
 * Any ideas? Sorry if it’s something ridic. Thank you so much for this great plugin.
 * [http://wordpress.org/extend/plugins/widget-logic/](http://wordpress.org/extend/plugins/widget-logic/)

Viewing 1 replies (of 1 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-eval-code-on-line-1/#post-3620333)
 * It’s likely the spaces between the function name and the brackets, so should 
   look more like
 * !is_page(31)
 * instead of
 * !is_page (31)
 * and so on

Viewing 1 replies (of 1 total)

The topic ‘Parse error eval code on line 1’ 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

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

 * 1 reply
 * 2 participants
 * Last reply from: [alanft](https://wordpress.org/support/users/alanft/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/parse-error-eval-code-on-line-1/#post-3620333)
 * Status: not resolved