• Resolved andresgl

    (@andresgl)


    Hi

    I am getting the following error when I try to install the plugin on the the production area

    Plugin could not be activated because it triggered a fatal error.
    
    Parse error: syntax error, unexpected T_FUNCTION in public_html/wp-content/plugins/permalink-manager/permalink-manager.php on line 427

    On my development area is working.. No sure why this is happening, is exactly the same Version of WP, same plugins and same server.

    Hope you can help me.

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Maciej Bis

    (@mbis)

    Hi andresgl,

    hmm, that is really strange, as there is only the code comment in line #427 in permalink-manager.php

    // Fix for not-pages

    Could you delete the plugin from your production website and reinstall it?

    If it does not help, could you send me the full content of wp-content/plugins/permalink-manager/permalink-manager.php file from your plugin copy (you can save it on Gist https://gist.github.com/).

    Best regards,
    Maciej

    Thread Starter andresgl

    (@andresgl)

    H i@mbis

    I have uninstalled the plugin and installed again using the WP search and also I have downloaded the plugin and installed manually but the error persist. It’s really weird.. :/

    Here you go –> https://gist.github.com/855f594e42555a7f9e34906c472589be

    Many Thanks

    Plugin Author Maciej Bis

    (@mbis)

    Hi adresgl,

    ok, thank you – in 0.4.9 version line #427 contain anonymous function and they are were added in PHP 5.3.0. The most probably scenario is that your development version uses 5.3.0 or newest version (where anonymous functions are supported) and your production website does not.

    The only way to make it working is to change your server settings (use one of newer PHP versions).

    Best Regards,
    Maciej

    Thread Starter andresgl

    (@andresgl)

    Hi Maciej,

    Yep, you were right. I have changed the PHP version to 5.5 and worked although the PHP version of the production server was 5.4.

    Thanks a lot for the help ??

    Regards,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Parse error: syntax error, unexpected T_FUNCTION in’ is closed to new replies.