• Resolved lloaizav

    (@luismarcosloaiza)


    Hi guys,

    I just had a crash when update to 3.7.4 then deleted the plugin folder via FTP and uploaded a fresh copy from WP directory, but now I’m unable to activate it again.

    Parse error: syntax error, unexpected T_FUNCTION in /home4/libripen/public_html/wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/nxs_functions.php on line 31

    Are you aware? Could be my php ver (btw it’s 5.2.17)?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • That line uses a feature called “anonymous functions” which was added to PHP 5.3.0 so your PHP version is out of date.

    I discovered this myself today on one of my sites that “broke” once I updated the SNAP plugin. Looks like it’s part of the progress updates NextScripts is implementing to be more compatible with PHP 7. I’m working with my hosting provider to update my version of PHP as it is really old anyway in order to solve the problem.

    Plugin Author NextScripts

    (@nextscripts)

    You have a VERY OLD PHP version installed. We do not support it anymore. You have PHP 5.2 or older.

    PHP 5.2 was released on 02 Nov 2006 and reached end of life on 6 Jan 2011 – 5 years, 9 months ago (Source: https://php.net/eol.php)

    You are getting this error because our code is now using “Anonymous functions”. “Anonymous functions” were introduced in PHP 5.3 and not supported in PHP 5.2. We have added “Anonymous functions” for better compatibility with PHP7.

    We are sorry, but we can’t drop support of newest PHP7 in favor of support for PHP 5.2 version that has been officially dead for almost 6 years.

    Please update your server to currently supported PHP 5.6 or 7. (https://php.net/supported-versions.php) It’s simply not safe and secure to use such an outdated version of PHP anymore.

    Plugin Author NextScripts

    (@nextscripts)

    Due to surprisingly high demand, we put compatibility with PHP 5.2 back in version 3.7.5.

    We still really do recommend everybody to upgrade PHP to one of the recent and supported versions.

    Thread Starter lloaizav

    (@luismarcosloaiza)

    Updated to 5.6.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Unexpected T_FUNCTION’ is closed to new replies.