• Resolved mayank29gupta

    (@mayank29gupta)


    Hello,

    I am using latest version or woocommerce and woocommerce. I just upgraded Php 7.4 to 8 and since then whenever I search a product or order in backend, it shows the following error,

    Fatal error: Uncaught Error: mysqli::real_connect(): Argument #5 ($port) must be of type ?int, string given
    in /home/629587.cloudwaysapps.com/wp-includes/class-wpdb.php on line 2349
    
    Call stack:
    
    mysqli::real_connect()
    mysqli_query()
    wp-includes/class-wpdb.php:2349
    wpdb::_do_query()
    wp-includes/class-wpdb.php:2263
    wpdb::query()
    wp-includes/class-wpdb.php:3146
    wpdb::get_results()
    wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php:1707
    WC_Product_Data_Store_CPT::search_products()
    wp-content/plugins/woocommerce/includes/class-wc-data-store.php:224
    WC_Data_Store::__call()
    wp-content/plugins/woocommerce/includes/admin/list-tables/class-wc-admin-list-table-products.php:500
    WC_Admin_List_Table_Products::query_filters()
    wp-content/plugins/woocommerce/includes/admin/list-tables/abstract-class-wc-admin-list-table.php:118
    WC_Admin_List_Table::request_query()
    wp-includes/class-wp-hook.php:324
    WP_Hook::apply_filters()
    wp-includes/plugin.php:205
    apply_filters()
    wp-includes/class-wp.php:409
    WP::parse_request()
    wp-includes/class-wp.php:813
    WP::main()
    wp-includes/functions.php:1336
    wp()
    wp-admin/includes/post.php:1291
    wp_edit_posts_query()
    wp-admin/includes/class-wp-posts-list-table.php:165
    WP_Posts_List_Table::prepare_items()
    wp-admin/edit.php:235
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey, @mayank29gupta!

    The error message you’ve encountered indicates a fatal error within your WordPress installation, specifically related to the database connection.

    Are you seeing any warnings about having to update your database?

    Furthermore, I’d like to understand your site properly. Please share with us the System Status Report which you can find via WooCommerce > Status > Get system report > Copy for support.

    Looking forward to your reply.

    Have a wonderful day!

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error on Searching product or order at backend’ is closed to new replies.