raspberryh
raspberryh

Reputation: 61

wordpress warnings showing even when turned off

I know this question has been asked a kazillion times, but I've read the responses and done all suggestions. My phpinfo shows:

display_errors = off
error_reporting = 0

and I've set all of the suggestions in my config file, e.g.

define('WP_DEBUG', false);
define('WP_DEBUG_DISPLAY', false);

and yet I'm STILL getting warnings like the following:

Warning: Parameter 1 to wp_default_scripts() expected to be a reference, value given in /Users/.../wp-includes/plugin.php on line 601
Warning: Parameter 1 to wp_default_styles() expected to be a reference, value given in /Users/.../wp-includes/plugin.php on line 601

Please note, I'm using MAMP for a local server and wordpress. Also I've searched the entire site to see if WP_DEBUG is being set elsewhere and it's not.

I'm banging my head against a wall. Any ideas?

Thanks, Heather

Upvotes: 2

Views: 2475

Answers (1)

Luismi
Luismi

Reputation: 365

Which version of php and Wordpress are you running? There are several posts in the wordpress core tracker pointing similar issues with php 7.1:

https://core.trac.wordpress.org/ticket/38144

https://core.trac.wordpress.org/ticket/37772

Regarding why is WP showing this warnings although you have disabled all debug options here are some suggestions:

  • Search in your php.ini for something like this and comment it:

error_reporting = E_ALL & ~E_NOTICE error_reporting = E_ALL & ~E_NOTICE | E_STRICT error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ER… _ERROR error_reporting = E_ALL & ~E_NOTICE

  • Search your code for error_reporting(whatever) or ini_set('error_reporting', whatever);

Hope this helps.

Upvotes: 3

Related Questions