Support » Plugin: Quick Featured Images » undefined function mysql_real_escape_string() in PHP 7.0

  • Resolved mlepisto



    I’m getting a 500 error with the following in the log. I only get this when visiting any of the plugin’s admin pages. WP 4.9.8

    [18-Nov-2018 13:06:50 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function mysql_real_escape_string() in /home/mydir/
    Stack trace:
    #0 /home/mydir/ woothemes_add_admin('')
    #1 /home/mydir/ WP_Hook->apply_filters(NULL, Array)
    #2 /home/mydir/ WP_Hook->do_action(Array)
    #3 /home/mydir/ do_action('admin_menu', '')
    #4 /home/mydir/ require_once('/home/mydir/...')
    #5 /home/mydir/ require('/home/mydir/...')
    #6 {main}
      thrown in /home/mydir/ on line 108


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Martin Stehle


    This plugin does not use that function. So I close the thread.

    Thread Starter mlepisto


    Perhaps a conflict with the theme then? It only happens in the admin when visiting any of the plugin’s pages.

    Plugin Author Martin Stehle


    No. The error message mentions something of WooCommerce, see woothemes_add_admin(''). My recommendation: search in all installed PHP files in /wp-content for the string mysql_real_escape_string. Chances are high that you will find the source of that error.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘undefined function mysql_real_escape_string() in PHP 7.0’ is closed to new replies.