Title: [Plugin: Gecka Submenu] Syntax error in NavMenuHacks.php
Last modified: August 19, 2016

---

# [Plugin: Gecka Submenu] Syntax error in NavMenuHacks.php

 *  Resolved [jamesharv](https://wordpress.org/support/users/jamesharv/)
 * (@jamesharv)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-gecka-submenu-syntax-error-in-navmenuhacksphp/)
 * I had trouble activating the plugin after downloading it. I was getting an error
   saying that there was a syntax error in ‘gecka-submenu/models/NavMenuHacks.php’
   on line 130.
 * It turned out that the problem was just that the file ‘NavMenuHacks.php’ started
   with a short php tag (ie <? instead of <?php). My php installation was not configured
   to allow the use of short tags. Changing the file to use the full php tag fixed
   the syntax error. It is advisable to change this file to use the full tags, rather
   than changing your PHP configuration to allow short tags, as short tags can interfere
   with XML documents and shouldn’t be used anymore.
 * Hope this helps someone.
 * [http://wordpress.org/extend/plugins/gecka-submenu/](http://wordpress.org/extend/plugins/gecka-submenu/)

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

 *  [joel.aljes](https://wordpress.org/support/users/joelaljes/)
 * (@joelaljes)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-gecka-submenu-syntax-error-in-navmenuhacksphp/#post-1626625)
 * I have too syntax error:
 * Parse error: syntax error, unexpected T_CONST, expecting T_OLD_FUNCTION or T_FUNCTION
   or T_VAR or ‘}’ in /srv/disk2/499592/www/proov.eu.pn/wp-content/plugins/gecka-
   submenu/gecka-submenu.class.php on line 10
 * line ten writes:
    const Domain = ‘gecka-submenu’;
 * I need help. Whats wrong?
 *  Plugin Author [Gecka](https://wordpress.org/support/users/gecka/)
 * (@gecka)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-gecka-submenu-syntax-error-in-navmenuhacksphp/#post-1626631)
 * Make sure you are using PHP 5.2 +
 * And try the [newest version](http://gecka-apps.com/wordpress-plugins/geka-submenu/).

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

The topic ‘[Plugin: Gecka Submenu] Syntax error in NavMenuHacks.php’ is closed to
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gecka-submenu_f8f8f8.svg)
 * [Gecka Submenu](https://wordpress.org/plugins/gecka-submenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gecka-submenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gecka-submenu/)
 * [Active Topics](https://wordpress.org/support/plugin/gecka-submenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gecka-submenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gecka-submenu/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Gecka](https://wordpress.org/support/users/gecka/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-gecka-submenu-syntax-error-in-navmenuhacksphp/#post-1626631)
 * Status: resolved