Gecka Submenu
[resolved] Syntax error in NavMenuHacks.php (3 posts)

  1. jamesharv
    Posted 5 years ago #

    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.


  2. joel.aljes
    Posted 5 years ago #

    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?

  3. Gecka
    Plugin Author

    Posted 5 years ago #

    Make sure you are using PHP 5.2 +

    And try the newest version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gecka Submenu
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic