• Resolved fabiomaticus

    (@fabiomaticus)


    For no apparent reason, it occasionally happens that my site shows the white screen with the phrase “A critical error has occurred…….”

    I checked the woocommerce log and it’s written there:

    2023-10-19T18:08:57+00:00 CRITICAL Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /home/babisashop/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php:850 Stack trace: #0 /home/babisashop/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php(850): array_keys() #1 /home/babisashop/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php(430): WC_Install::create_options() #2 /home/babisashop/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php(303): WC_Install::install() #3 /home/babisashop/public_html/wp-includes/class-wp-hook.php(310): WC_Install::check_version() #4 /home/babisashop/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #5 /home/babisashop/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #6 /home/babisashop/public_html/wp-settings.php(632): do_action() #7 /home/babisashop/public_html/wp-config.php(99): require_once(‘…’) #8 /home/babisashop/public_html/wp-load.php(50): require_once(‘…’) #9 /home/babisashop/public_html/wp-admin/admin.php(34): require_once(‘…’) #10 {main} thrown in /home/babisashop/public_html/wp-content/plugins/woocommerce/includes/class-wc-install.php alla riga 850


    I deactivated all the plugins except woocommerce and used the default theme, and while browsing the site, after a while this log appears again. How can I intervene? What does this log mean?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hello @fabiomaticus

    The error message you’re receiving suggests that a function in WooCommerce is expecting an array of data but is receiving a null value instead. This is causing a critical error and the white screen you’re seeing.

    This issue is usually related to a conflict with a theme or plugin or potentially a problem with the database. Since you’ve already deactivated all other plugins and switched to the default theme, we can rule out a theme or plugin conflict.

    The next step would be to check your database. You may use a plugin like WP-DBManager to check and repair your database. Or you can go to WooCommerce > Statu > Tools > Update database and perform database update.

    If the issue persists, you might need to reinstall WooCommerce. Please make sure to backup your website before doing so to avoid any data loss.

    Additionally, can you please share a copy of the System Status Report? You’ll find it at the top of the page under WooCommerce → Status. Select Get System Report and then Download for Support.

    You could copy and paste your reply or share it via https://pastebin.com/ and send the link here. This will help us investigate further and provide you with a more accurate solution.

    Let us know how that goes. Looking forward to helping you.

Viewing 1 replies (of 1 total)
  • The topic ‘Random problem’ is closed to new replies.