envato-wordpress-toolkit icon indicating copy to clipboard operation
envato-wordpress-toolkit copied to clipboard

Incompatible with PHP version: 7.0.28

Open oweuxllc opened this issue 6 years ago • 0 comments

Referenced error message, code and line number:

Got error 'PHP message: PHP Parse error: syntax error, unexpected 'new' (T_NEW) /wp-content/plugins/-envato-wordpress-toolkit-master/index.php on line: 207

I was able to get the website running by changing:

$this->protected_api =& new Envato_Protected_API( $user_name, $api_key ); removing the & (PHP7+ New objects cannot be assigned by reference).

Plugin will not activate unless this is changed but for existing websites the plugin is already activated and will cause it to not load with error 500

oweuxllc avatar Mar 12 '18 15:03 oweuxllc