• Resolved wpuser10

    (@wpuser10)


    Hi,

    I have read the F.A.Q and know that plugin requires at PHP in version: 5.3.x, but wonder if in the coming release you could add protection from parse error and for example show message:

    This plugin requires PHP version of at least 5.3.x, but we recommend version 5.6.x. Please contact your hosting company and ask them to update the PHP version for your site.

    Now this parse error is only visible when user has got active debug mode, but by default WP has got debug mode disabled. It’s making harder to investigate the reason of problem with plugin activation.

    Another question is if you could suggest quick-fix for this kind of parse error:

    Parse error: syntax error, unexpected T_STATIC in wp-content/plugins/one-click-demo-import/one-click-demo-import.php on line 53

    Thanks!

    https://www.ads-software.com/plugins/one-click-demo-import/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    the error that you receive is caused by the Singleton pattern that we use in the main plugin class (it requires PHP 5.3) and the plugin can’t even be activated (there is no fix for this issue)…

    The PHP version 5.3 is very old. Version 5.5 will soon be at the “end of life”: https://php.net/supported-versions.php, so you know 5.3 is way past that. Don’t know why WP still supports it, but I’m getting of point here ??

    I agree that this issue could be handled differently (better), so I will do this on my todo list and we should fix this for the next release. Probably we will display an admin notice if server is using PHP lower then 5.3…

    Thanks for letting us know ??

    Take care!

    Plugin Author Gregor Capuder

    (@capuderg)

    Hi,

    I know it’s been a while…

    I’ve just updated the plugin to version 1.2.0 and the fatal PHP error on activation is now fixed. Instead, when the plugin is activated a admin error notice will come up and display a message, instructing the user to update the PHP version to at least 5.3.2…

    If you could, please test it out and let me know, if everything is ok.

    Thanks and take care!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse error on PHP 5.2 (visible only with debug mode enabled)’ is closed to new replies.