Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string
-
Hi there
I tried to reach the WooCommerce dashboard/reports/clients from adminpage wordpress. Can’t even access it’s settings. All I see is this:
Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string() in /home/httpd/vhosts/rasputin.ch/shop/wp-content/themes/mystile/functions/admin-interface.php:111 Stack trace: #0 /home/httpd/vhosts/rasputin.ch/shop/wp-includes/class-wp-hook.php(287): woothemes_add_admin('') #1 /home/httpd/vhosts/rasputin.ch/shop/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(NULL, Array) #2 /home/httpd/vhosts/rasputin.ch/shop/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #3 /home/httpd/vhosts/rasputin.ch/shop/wp-admin/includes/menu.php(155): do_action('admin_menu', '') #4 /home/httpd/vhosts/rasputin.ch/shop/wp-admin/menu.php(326): require_once('/home/httpd/vho...') #5 /home/httpd/vhosts/rasputin.ch/shop/wp-admin/admin.php(153): require('/home/httpd/vho...') #6 {main} thrown in /home/httpd/vhosts/rasputin.ch/shop/wp-content/themes/mystile/functions/admin-interface.php on line 111If I click on WooCommere Orders and Coupons the page will work perfectly!
WooCommerce: v4.0.1
WordPress: v5.4
PHP: v7.2.29Here is a snippet of the line 111 from admin-interface.php
check thisWhen running define( ‘WP_DEBUG’, true ) on my wp-config.php file, this is the result:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; WooThemes_Shortcode_Generator has a deprecated constructor in /home/httpd/vhosts/rasputin.ch/shop/wp-content/themes/mystile/functions/admin-shortcode-generator.php on line 33 Deprecated: The constructor method used for WP_Widget in Woo_AdWidget has been deprecated since version 4.3.0! Use instead __construct(). in /home/httpd/vhosts/rasputin.ch/shop/wp-includes/functions.php on line 4806 Deprecated: The constructor method used for WP_Widget in Woo_BlogAuthorInfo has been deprecated since version 4.3.0! Use instead __construct(). in /home/httpd/vhosts/rasputin.ch/shop/wp-includes/functions.php on line 4806 Deprecated: The constructor method used for WP_Widget in Woo_EmbedWidget has been deprecated since version 4.3.0! Use instead __construct(). in /home/httpd/vhosts/rasputin.ch/shop/wp-includes/functions.php on line 4806 Deprecated: The constructor method used for WP_Widget in Woo_flickr has been deprecated since version 4.3.0! Use instead __construct(). in /home/httpd/vhosts/rasputin.ch/shop/wp-includes/functions.php on line 4806 Deprecated: The constructor method used for WP_Widget in Woo_Search has been deprecated since version 4.3.0! Use instead __construct(). in /home/httpd/vhosts/rasputin.ch/shop/wp-includes/functions.php on line 4806 Deprecated: The constructor method used for WP_Widget in Woo_Subscribe has been deprecated since version 4.3.0! Use instead __construct(). in /home/httpd/vhosts/rasputin.ch/shop/wp-includes/functions.php on line 4806Give me a hint please how to fix this.
Best Regards
xe- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
- This topic was modified 6 years, 1 month ago by .
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Fatal error: Uncaught Error: Call to undefined function mysql_real_escape_string’ is closed to new replies.