Deprecated PHP error

Hey Support, I am getting an odd error on website:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; MCAPI has a deprecated constructor in /home1/truelow2/public_html/wp-content/plugins/arqam/inc/mailchimp/MCAPI.class.php on line 3

Warning: Invalid argument supplied for foreach() in /home1/truelow2/public_html/wp-content/plugins/arqam/counters.php on line 486

I deleted the plugin and tried another plugin, and also got a similar PHP error. Which makes me think it may be related to my site alone and not 2 different plugins. Any help or suggestions would be helpful! Thanks!

John

Hello There,

Thanks for writing in! The error is coming from the plugin “arqam”. If you have installed another plugin and gets a similar error then it must have came from the mailchimp class file which may have been present in the plugin. Since this is just a warning, you can still make use of the plugin. Just disable the debug mode. You can do this by opening wp-config.php and adding


define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

When you revisit the page, you should no longer be seeing any of those warnings.

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.