Latest versions are not compatible with PHP

[ad_1]

An error of type E_PARSE was caused in line 17 of the file /webroot/wp-content/plugins/a2-optimized-wp/A2_Optimized_Plugin.php. Error message: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE)

Constant visibility is a PHP 7.1+ feature:

Either remove the constant visibility from the constants in the A2_Optimized_Plugin.phpfile or set the <a href="https://make.projectdmc.org/plugins/2017/08/29/minimum-php-version-requirement/">minimum supported PHP version</a> to PHP 7.1 in thea2-optimized.php` file header.

Also looks like the GitHub repo is wildly out of sync with the current version of the plugin. If it were up to date, I would have submitted a PR to fix this.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer