Occasionally I post technical stuff to the blog if I think I can share a helpful tip for people facing a problem I’ve solved. Pardon the techno-babble :)
The Error Message
Today, a client of mine using my favorite host SiteGround ran into the following issue. They had a error message suddenly showing on their home page that wasn’t there before. It was something like this (though I’ve changed it for their privacy):
Warning: array_merge(): Argument #2 is not an array in /home/anotherfolder/public_html/example.org/wp-includes/load.php on line 63
I found a lot of people on the WordPress forums who seemed to have the same issue—same file and line number—in the past few months.
There are almost certainly multiple causes of this error, but here’s what worked for me.
The website had previously been on Bluehost before moving to SiteGround. Whoever moved the site left behind a
php.ini file in the “root” website directory with some special server rules regarding server memory and timeouts.
Fix: Rename php.ini to php.ini.BCK
php.ini file in the “root” directory of the site fixed the issue.
php.iniis 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.
I hope this post solves your hosting issue. If it saves you an hour or a day, please consider buying me a coffee or beer! ☕🍺