Recently had a problem with a client getting an error message:
Warning: array_merge(): Argument #2 is not an array in /home/anotherfolder/public_html/example.org/wp-includes/load.php on line 63
It appeared suddenly and changing the wp-config.php file from
define(‘WP_DEBUG’, false);
to
ini_set(‘display_errors’,’Off’);
ini_set(‘error_reporting’, E_ALL );
define(‘WP_DEBUG’, false);
define(‘WP_DEBUG_DISPLAY’, false);
had no affect.
Then I found this article by Mark Root-Wiley that fixed the issue.
Fix: Rename php.ini to php.ini.BCK
Renaming the php.ini
file in the “root” directory of the site fixed the issue.
More specifically, php.ini
is a special configuration file for servers. I wanted to test removing it without risking problems I couldn’t undo, so I simply renamed it to php.ini.BCK
(short for “backup”). I then refreshed the page, and *poof*, my errors disappeared. Happy client! If that change broke the site, I could have just named the file back to php.ini
and looked for a different fix.
Thanks, Mark!
Leave a Reply