Title: Parse error: syntax error, unexpected &#039;;&#039;
Last modified: August 22, 2016

---

# Parse error: syntax error, unexpected ';'

 *  Resolved [rdcravens](https://wordpress.org/support/users/rdcravens/)
 * (@rdcravens)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-127/)
 * When I disable Memoria Ticket System, I get the following error:
 * Parse error: syntax error, unexpected ‘;’ in /home/XXXXXX/public_html/wp-content/
   plugins/menu-items-visibility-control/init.php(97) : eval()’d code on line 1
 * I am sure it is related to the fact that I had a setting at one point for Memoria
   to show only when the user was logged in – but I deleted the menu item and disabled
   the plugin.
 * When I re-enable the plugin, the error goes away. Toggled a few times to validate
   that this is what is causing the error…
 * Where can I find the Menu Item Visibility Control setting or whatever to delete
   that rids me of this error so that I can delete the plugin from my system without
   generating this error?
 * [https://wordpress.org/plugins/menu-items-visibility-control/](https://wordpress.org/plugins/menu-items-visibility-control/)

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

 *  Plugin Author [shazdeh](https://wordpress.org/support/users/shazdeh/)
 * (@shazdeh)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-127/#post-5353332)
 * Hi,
 * Please first re-enable the plugin so the error doesn’t appear, now check the 
   logic set for menu items and make sure none of them are using a function from
   that ticket plugin (when the plugin is disabled PHP is unable to run that function
   and so generates the error). Also note the `;` character is not needed in the
   Visibility option for menu items, you must input only the logic itself (like:`
   is_home()`).
 *  Thread Starter [rdcravens](https://wordpress.org/support/users/rdcravens/)
 * (@rdcravens)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-127/#post-5353387)
 * No menu item, under Appearance->Menu’s is using that plugin for any kind of conditional
   test. Only is_user_logged_in() == true/False and some PMPRO logic for paid areas.
 * I am not using a ; in any of my conditions.
 * The other plugin did not have a menu item, it uses shortcode within an existing
   page – so I am a bit unsure what this plugin is looking up that would be able
   to reference that plugin.
 * I did not notice that the subject line got truncated… Here is the whole error:
 * Parse error: syntax error, unexpected ‘;’ in /XXXXX/XXXXX/public_html/wp-content/
   plugins/menu-items-visibility-control/init.php(97) : eval()’d code on line 1
 *  Thread Starter [rdcravens](https://wordpress.org/support/users/rdcravens/)
 * (@rdcravens)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-127/#post-5353388)
 * I realize I said it had a menu to being with – I was a bit confused on the support
   plugin. I apologize for the mistake… I have been testing a couple and got confused.
   The one causing the error only uses shortcode on existing pages.
 *  Plugin Author [shazdeh](https://wordpress.org/support/users/shazdeh/)
 * (@shazdeh)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-127/#post-5353460)
 * Hi,
 * This is the plugin: [https://wordpress.org/plugins/memoria-ticket-system/](https://wordpress.org/plugins/memoria-ticket-system/)?
   Might I ask what shortcode you’re using? I can try to replicate it on local setup.
 *  Thread Starter [rdcravens](https://wordpress.org/support/users/rdcravens/)
 * (@rdcravens)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-127/#post-5353495)
 * Good news, I found the problem… 🙂
 * Turns out that if you use PMPro that memoria ticket system will mask errors. 
   I disabled Memoria ticket system and then it exposed an issue, on one menu item,
   with the PMPRO logic I was using for paid areas.
 * Sorry for the false alarm!

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

The topic ‘Parse error: syntax error, unexpected ';'’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/menu-items-visibility-control.svg)
 * [Menu Item Visibility Control](https://wordpress.org/plugins/menu-items-visibility-control/)
 * [Support Threads](https://wordpress.org/support/plugin/menu-items-visibility-control/)
 * [Active Topics](https://wordpress.org/support/plugin/menu-items-visibility-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/menu-items-visibility-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/menu-items-visibility-control/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [rdcravens](https://wordpress.org/support/users/rdcravens/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-127/#post-5353495)
 * Status: resolved