If you have uploaded a new theme or plugin to your site, you might rarely receive the following error:
Fatal error: Uncaught Error: Call to undefined function mysql_escape_string()
This is due to the removal of the mysql_escape_string function from PHP 7.0.
If you receive that error, your theme or plugin is not compatible with PHP 7+.
To resolve this error, simply switch the app to PHP 5.6 until the theme or plugin is updated.
First, open your app's Settings tab in ServerPilot.
Then, click the blue pencil next to your current PHP version.
Select PHP 5.6 from the drop-down list and click Update.