Title: Parse error: syntax error,
Last modified: February 7, 2017

---

# Parse error: syntax error,

 *  Resolved [Rainbow](https://wordpress.org/support/users/adi-admin/)
 * (@adi-admin)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-138/)
 * After the update – all my in-page widgets across my site are all messed up.
 * I get them all replaced with a message:
 * Parse error: syntax error, unexpected: (the files leading to widget logic within
   my Cpanel) eval()’d code on line 2 (some widgets relate to line 1).
 * What’s going on? – Anyone else having issues?

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

 *  Thread Starter [Rainbow](https://wordpress.org/support/users/adi-admin/)
 * (@adi-admin)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-138/#post-8749188)
 * Parse error: syntax error, unexpected ‘pmpro_hasMembershipLevel’ (T_STRING) in/…/…/…/
   wp-content/plugins/widget-logic/widget_logic.php(369) : eval()’d code on line
   2
 * Snippet (that worked well in last version, and provided to me by the engineers
   of Paid Memberships Pro): pmpro_hasMembershipLevel() == 1 && pmpro_hasMembershipLevel()
   == 2
 * ___
 * It is to hide widgets away from not-logged in users.
 * It seems that this is the only upset.
 * Any ideas?
 *  Thread Starter [Rainbow](https://wordpress.org/support/users/adi-admin/)
 * (@adi-admin)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-138/#post-8760211)
 * Thanks for getting back to me on this,
 * I did this, i had the two check boxes checked and loaded the widget logic for
   each one, refreshing the screen and seeing if it resolves the issue.
 * Unfortunately it didn’t have much of an effect. The only difference was with 
   the after theme loads – of which put the Parse error: syntax error, message at
   the top of my screen multiple times.
 * Any other suggestions? 🙁
 *  Thread Starter [Rainbow](https://wordpress.org/support/users/adi-admin/)
 * (@adi-admin)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-138/#post-8770294)
 * Maybe it’s an option to have the previous version back if it doesn’t cause any
   issues?
 *  Thread Starter [Rainbow](https://wordpress.org/support/users/adi-admin/)
 * (@adi-admin)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-138/#post-8786095)
 * Perfect,
 * All is restored.
 * Thank you for fixing the update bugs!!
 * Rainbow

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

The topic ‘Parse error: syntax 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/)

## Tags

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

 * 4 replies
 * 1 participant
 * Last reply from: [Rainbow](https://wordpress.org/support/users/adi-admin/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-138/#post-8786095)
 * Status: resolved