• Resolved jdanas

    (@jdanas)


    hi i m getting syntax error whenever i try to activate the plugin is it because i activated locally or is there something else? i believe i have activated it before without any issues

    here is the syntax error after updating the plugin

    Parse error: syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW), expecting ‘)’ in /Applications/XAMPP/xamppfiles/htdocs/sphm_simplystatic/wp-content/plugins/_simply-static/src/class-ss-util.php on line 539

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m having the same problem. WP 6.1.1, PHP 7.3.33. I can’t update PHP due to another plugin, and this is why I’m trying to make the site into a static one in the first place.

    So that error is because the code is using arrow functions which were introduced in PHP 7.4. As I only need the plugin for a one-shot I’ve modified the code is class_ss_util.php to avoid those.

    Plugin Author patrickposner

    (@patrickposner)

    Hey @jdanas and @lgretton,

    thanks for letting me know!

    It’s indeed due to the PHP version. We are soon deprecating all PHP versions below PHP 7.4 to stay up to date, and we are testing mostly on PHP 8+ versions in the future.

    The fix that @lgretton is a good one in case you need to stay on an older PHP version!

    Cheers,

    Patrick

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

The topic ‘im having problems activating the plugin’ is closed to new replies.