Hi there,
My host, WPEngine, recently upgraded to PHP 5.5 and since then there has been an error generated by the Google Maps widget. WPEngine has confirmed that this is as a result of that conflict and suggested I reach out to you for a solution. You can see the error being shown on my staging site below. Please look to the bottom of the page right above the Google Maps widget.
I have all plugins deactivated except for BBPress which is needed to show the maps widget.
Thanks!
Best,
Jonathan
Hey Jonathan!
Try this out, https://kriesi.at/support/topic/error-message-warning-mysql_real_escape_string-expects-parameter-1-to-be-str/.
Best regards,
Elliott
Thanks Elliott! I’m finding that thread very confusing – do there need to be the additions to functions.php or just replacing the code in the other file? If you don’t mind can you please just let me know exactly what to do here? :)
Thanks so much.
Best,
Jonathan
Hi Elliott, I did the following only and it seemed to work. I ignored the earlier parts of the thread you referenced. Please confirm that this is all I needed to do, thanks.
The only file I’m editing is /enfold/framework/php/class-framework-widgets.php and I’m replacing
$content = mysql_real_escape_string($content);
with
$content = esc_sql($content);
Is this correct? I didn’t change anything in functions.php as mentioned earlier in your referenced thread.
Thank you!
Actually nevermind – after updating to the latest version of enfold the error disappears on its own. I guess this was fixed in one of the recent updates?