• Resolved xe87

    (@xe87)


    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 111

    If I click on WooCommere Orders and Coupons the page will work perfectly!

    WooCommerce: v4.0.1
    WordPress: v5.4
    PHP: v7.2.29

    Here is a snippet of the line 111 from admin-interface.php
    check this

    When 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 4806

    Give me a hint please how to fix this.
    Best Regards
    xe

    • This topic was modified 6 years, 1 month ago by xe87.
    • This topic was modified 6 years, 1 month ago by xe87.
    • This topic was modified 6 years, 1 month ago by xe87.
    • This topic was modified 6 years, 1 month ago by xe87.
    • This topic was modified 6 years, 1 month ago by xe87.
    • This topic was modified 6 years, 1 month ago by xe87.
    • This topic was modified 6 years, 1 month ago by xe87.
    • This topic was modified 6 years, 1 month ago by xe87.
    • This topic was modified 6 years, 1 month ago by xe87.
    • This topic was modified 6 years, 1 month ago by xe87.
    • This topic was modified 6 years, 1 month ago by xe87.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Nicola Mustone

    (@nicolamustone)

    Automattic Happiness Engineer

    Hello there,
    This issue is not related to WooCommerce Admin, it is related to the theme Mystile which is not supported nor updated anymore.

    We recommend you to switch to a different theme as soon as possible.

    I can recommend you to switch to Storefront: https://woocommerce.com/storefront/
    It is a free theme built especially for WooCommerce!

    Plugin Support Nicola Mustone

    (@nicolamustone)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

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.