Php argument errors on front-end back-end: how to find the root cause

Hi there, today when visiting my website https://strefa.effekt.com.pl I noticed the following warnings:

Warning: sprintf(): Too few arguments in /home/effekt/domains/effekt.com.pl/public_html/strefa/wp-content/plugins/s2member-pro/src/includes/syscon.inc.php on line 96

Warning: sprintf(): Too few arguments in /home/effekt/domains/effekt.com.pl/public_html/strefa/wp-content/plugins/s2member-pro/src/includes/syscon.inc.php on line 96

Warning: array_intersect(): Argument #2 is not an array in /home/effekt/domains/effekt.com.pl/public_html/strefa/wp-content/themes/pro/cornerstone/includes/classes/styling/class-font-manager.php on line 190

Warning: implode(): Invalid arguments passed in /home/effekt/domains/effekt.com.pl/public_html/strefa/wp-content/themes/pro/cornerstone/includes/classes/styling/class-font-manager.php on line 234

I haven’t updated PRO in 2-3 weeks (I’ve got 2.0.4) and s2member in 6 months time (I run the latest version). Can you help me find the cause of this errors?

Hi There,

Thanks for writing in! Could you please check the PHP version running on your server and make sure to use PHP v5.6.x or higher. Also if you’re using the latest version which is v7.2.x, you may experience incompatibility issues as well. So better to use something in between.

Let us know how it goes.
Thanks!

Thank you, that was fast :slight_smile:

I changed my php version to 7.1. In the meantime I asked about it my hosting provider and it turns out they switched on php warnings yesterday.

Once again, thanks a lot!

Glad you were able to resolve the issue :slight_smile:

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