• Resolved bbikers

    (@bbikers)


    I have an error shows to me >> Parse error: syntax error, unexpected ‘{‘ in /home1/bbikers/public_html/wp-content/plugins/responsive-menu/responsive-menu.php on line 36

    line 36: add_action(‘plugins_loaded’, function() {
    load_plugin_textdomain(‘responsive-menu’, false, basename(dirname(__FILE__)) . ‘/translations/’);
    });

    Can someone help me to fix this?

    https://wordpress.org/plugins/responsive-menu/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter bbikers

    (@bbikers)

    I tried to adjust it show to me:

    Parse error: syntax error, unexpected T_FUNCTION in /home1/bbikers/public_html/wp-content/plugins/responsive-menu/responsive-menu.php on line 36

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hi bbikers,

    What version of PHP are you using, it sounds like a very old version if you are getting this error message.

    Please let me know.

    Thread Starter bbikers

    (@bbikers)

    honestly I’m not a developer to know but I think is 4.5 as last time I have updated the wordpress.

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hi bbikers,

    Your PHP version can not be on 4.5 as the last PHP 4 version released was 4.4.9.

    Create a new page somewhere and simply add the following to the file, load it and see what it says:

    <?php echo PHP_VERSION; ?>

    All the best

    Thread Starter bbikers

    (@bbikers)

    I tried but nothing showed that which version is this

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Hi bbikers,

    In that case you will need to ask your host which PHP version that site is using.

    Please let me know what they say

    Heya bbikers,

    In case it helps with your host, WordPress may be able to run on older versions of PHP – but recommends 5.6 or greater:

    https://wordpress.org/about/requirements/

    Cheers

    Plugin Contributor responsivemenu

    (@responsivemenu)

    Thanks Charlie,

    bbikers, my plugin requires PHP 5.4+ so please make sure that you have that version installed at least.

    All the best

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

The topic ‘Pares error: syntax error, unexpavted’ is closed to new replies.