vikas08
By:
vikas08

Wordpress Fatal Error

November 29, 2016 75 views
MySQL Ubuntu

I am getting this error
//////////////
Fatal error: Uncaught Error: Call to undefined function mysqlescapestring() in /var/www/html/wp-content/themes/twentysixteen/functions.php:60 Stack trace: #0 /var/www/html/wp-settings.php(387): include() #1 /var/www/html/wp-config.php(93): requireonce('/var/www/html/w...') #2 /var/www/html/wp-load.php(39): requireonce('/var/www/html/w...') #3 /var/www/html/wp-blog-header.php(13): require_once('/var/www/html/w...') #4 /var/www/html/index.php(17): require('/var/www/html/w...') #5 {main} thrown in /var/www/html/wp-content/themes/twentysixteen/functions.php on line 60
/////////////

4 Answers

All mysql_* functions were removed in PHP 7, use an updated theme or contact the author.

You can check here itube.co.in

I am using latest theme update.

I have installed social locker plugin & active. Then I found above error.

mysql* commands have been removed in PHP7 and have been depreciated (not recommended for use) since PHP 4.3.0 (Released: 27 December 2002). I am guessing that someone edited this from the default twentysixteen/functions.php file since it does not include a mysqlescape_string() command.

mysqlirealescape_string() provides a drop in replacement under the mysqli module (installed in package php7.0-mysql) that should help you resolve this. I would also recommend looking for any other mysql_ type calls in your theme to ensure they are updated or removed.

Have another answer? Share your knowledge.