December 9, 2016 2k views
WordPress Ubuntu 16.04

Hi! I have HTTP Error 500 when i’m trying to access my site. Please, help me!

1 comment
  • it is error.log

    [Fri Dec 09 11:59:22.784896 2016] [:error] [pid 3040] [client] PHP Fatal error: Uncaught Error: Call to undefined function mysqlescapestring() in /var/www/html/wp-content/themes/15zine/functions.php:60\nStack trace:\n#0 /var/www/html/wp-settings.php(425): include()\n#1 /var/www/html/wp-config.php(89): requireonce(’/var/www/html/w…’)\n#2 /var/www/html/wp-load.php(37): requireonce(’/var/www/html/w…’)\n#3 /var/www/html/wp-blog-header.php(13): require_once(’/var/www/html/w…’)\n#4 /var/www/html/index.php(17): require(’/var/www/html/w…’)\n#5 {main}\n thrown in /var/www/html/wp-content/themes/15zine/functions.php on line 60

2 Answers

check your File Permissions (dir 755, file 644) and check your htaccess File .

mysql_escape_string() should not be used and if you have code that includes it it should be changed. This function was depreciated back in the PHP 4.x days in 2002 and with the release of PHP 7 it has been fully removed. Look into the mysqli extension instead.

Have another answer? Share your knowledge.