Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Fatal error: Uncaught Error: Call to undefined function mysql_escape_string()

Discussion in 'Misc WordPress Requests' started by sumasan, Jan 8, 2018.

  1. sumasan

    Guest

    Fatal error: Uncaught Error: Call to undefined function mysql_escape_string(), by sumasan

    При заходе на сайт выводится ошибка
    “Fatal error: Uncaught Error: Call to undefined function mysql_escape_string() in D:\openserver\OpenServer\domains\lso1.by\wp-content\themes\solar\functions.php:60 Stack trace: #0 D:\openserver\OpenServer\domains\lso1.by\wp-settings.php(426): include() #1 D:\openserver\OpenServer\domains\lso1.by\wp-config.php(88): require_once(‘D:\\openserver\\O…’) #2 D:\openserver\OpenServer\domains\lso1.by\wp-load.php(37): require_once(‘D:\\openserver\\O…’) #3 D:\openserver\OpenServer\domains\lso1.by\wp-blog-header.php(13): require_once(‘D:\\openserver\\O…’) #4 D:\openserver\OpenServer\domains\lso1.by\index.php(17): require(‘D:\\openserver\\O…’) #5 {main} thrown in D:\openserver\OpenServer\domains\lso1.by\wp-content\themes\solar\functions.php on line 60”

    Вот строка с файла functions.php
    if ( $wpdb->get_var(‘SELECT count(*) FROM ' . $wpdb->prefix . 'datalist WHERE url = “‘.mysql_escape_string( $_SERVER[‘REQUEST_URI’] ).'”‘) == ‘1’ )

    помогите зазобратся…

    Fatal error: Uncaught Error: Call to undefined function mysql_escape_string()
     
    #1

Share This Page

Monarch Social Sharing Plugin