Quantcast
Channel: Topic Tag: error 500 | WordPress.org
Viewing all articles
Browse latest Browse all 1704

Nginx, Php 7, Percona – undefined Mysql on theme changes

$
0
0

I have a new WordPress MultiSite that I built out not long ago, I know this isn’t the forum for multi, but this isn’t exactly a multi-site issue. I did a LEMP, so in it Ubuntu 16.04, Nginx, PHP7.0-FPM, Percona DB (Seperate server cluster), FastCGI, & HHVM. I was having no problems, and it was running great, then I applied a theme, and the entire site and admin area died in an Error 500. I erased the Theme, but no luck and had to restore from a Snapshot. I am on Google CLoud, so snapshot are very nice right now. This started to happen more and more, so I dug into it a bit deeper, when it happens, which is random, here is what happens:

I change the theme, of ANY site, not just my main one, and out of no where, I get an Error 500 across the entire server, all sites, all admin panels. If I erase the theme directory, then I can get into the admin panel, but as soon as I add another theme, same issue.

In the Nginx logs, I do get an error passed through FatCGI, which is : call to undefined function mysql_escape_string(). Specifically, it is on Line 50 of functions.php, in whichever theme is causing the problem, though normally it starts with Uncode, but move to whichever theme I activate next.

I have Mysqli installed, everything should be working, and I can find no other issues. I have tested the themes on Bitnami, Google, and nginx cloud apps and had no issues, though I haven’t been able to test a specific nginx/php7, as all the apps I could launch quickly were nginx/php 5.6, but I can’t find ANYTHING else about this issue, it COULD be Php 7.0 related, but all issues seem to be fixed. COuld it be due to having a separate Percona cluster, rather than local server? Doesn’t make sense, and why would certain Themes start the issue, but then spread to all of them, I don’t think this could be malicious code, could it?

Here is is a link to my Info.php, along with a link to the full copy, in case I change it:

https://docs.google.com/document/d/13hPovQ_M5l5GtRM1ZiP3DKwuY-xZsL2m1dOsDBM2tIo/edit?usp=sharing


Viewing all articles
Browse latest Browse all 1704

Trending Articles