Title: [Plugin: Admin Menu Editor] syntax error while activating
Last modified: August 19, 2016

---

# [Plugin: Admin Menu Editor] syntax error while activating

 *  [andreacianni](https://wordpress.org/support/users/andreacianni/)
 * (@andreacianni)
 * [16 years, 3 months ago](https://wordpress.org/support/topic/plugin-admin-menu-editor-syntax-error-while-activating/)
 * I got this error while i try to activate the plug-ins
    `Parse error: syntax error,
   unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in/
   web/htdocs/www.ascaniocelestini.it/home/wp/wp-content/plugins/admin-menu-editor/
   menu-editor-core.php on line 13`
 * I take a look in the code and don’t find nothing wrong, but I’m really newbie…
 * [http://wordpress.org/extend/plugins/admin-menu-editor/](http://wordpress.org/extend/plugins/admin-menu-editor/)

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

 *  [codeview](https://wordpress.org/support/users/ryanderson/)
 * (@ryanderson)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-admin-menu-editor-syntax-error-while-activating/#post-1421624)
 * I received the same syntax error (different path to same file, of course). I 
   am currently using WP 3.0 since 9 users “say it works” I haven’t tried upgrading
   to 3.0.1. Is it perhaps a PHP5 problem? My website is hosted with GoDaddy and
   supports PHP5 but is set to PHP4 by default. There is an HTACCESS command that
   has worked for other situations, but doesn’t seem to help here, the code is:
 *     ```
       AddHandler x-httpd-php5 .php
       AddHandler x-httpd-php .php4
       ```
   
 * Original poster – did you end up fixing this problem? Admin/other uses – any 
   ideas how to fix this syntax error, if it’s not a PHP4/5 issue?
 *  [JHouse](https://wordpress.org/support/users/jhouse/)
 * (@jhouse)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-admin-menu-editor-syntax-error-while-activating/#post-1421626)
 * I’m having the same problem, even after I turned off all the other plugins. I’m
   running 3.0.1, however, I think it’s on PHP4, doh. Might have to tell my host
   to gimme 5.
 *  [JHouse](https://wordpress.org/support/users/jhouse/)
 * (@jhouse)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-admin-menu-editor-syntax-error-while-activating/#post-1421628)
 * Dang, I’m super excited to use this plugin…I’d love to get it working.
 *  [Seba](https://wordpress.org/support/users/sebast/)
 * (@sebast)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-admin-menu-editor-syntax-error-while-activating/#post-1421653)
 * I’m a WP newbie and also had this problem.
    A friend gave me this trick, and 
   it works perfectly for me.
 * “Just upload an .htaccess file with this piece of code (or add the following 
   line if it already exists) :
    `SetEnv PHP_VER 5`

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

The topic ‘[Plugin: Admin Menu Editor] syntax error while activating’ is closed 
to new replies.

 * 4 replies
 * 4 participants
 * Last reply from: [Seba](https://wordpress.org/support/users/sebast/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-admin-menu-editor-syntax-error-while-activating/#post-1421653)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
