Error in wp-mailinglist-plugin.php trying to activate plugin
I've uploaded Newsletter plugin version 4.6.4.1 to my WP site but it fails to activate with the following error.
This is the line the error refers to:
What might be causing this?
Parse error: syntax error, unexpected T_STRING in /my/path/public_html/wp-content/plugins/newsletters-lite/wp-mailinglist-plugin.php on line 2107
This is the line the error refers to:
$mg = new Mailgun\Mailgun($mailgun_apikey);
What might be causing this?
Tagged:
Comments
The error seems like your PHP doesn't support namespaces. You need PHP 5.3+ in order to run the plugin.
Can you please upgrade your PHP or ask your hosting provider to do so? That will resolve the problem.
I will ask them to upgrade and I give it another try.
Thank you.