• Resolved Iamhere

    (@iamhere)


    Hi

    I have the following fatal error and cannot resolve it. I swapped theme and tried many things, the only thing that worked was disabling Yoast.
    I am using Yoast SEO Version 19.0 and php 8

    It is affecting the woocommerce wp-admin screen – products… became blank and cannot see any products.

    From the email:

    Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

    In this case, WordPress caught an error with one of your plugins, Yoast SEO.

    First, visit your website ( mysite .com /) and check for any visible issues. Next, visit the page where the error was caught ( mysite .com/wp-admin/edit.php?post_type=product) and check for any visible issues.

    Please contact your host for assistance with investigating this issue further.

    If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.

    link redacted

    To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

    When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.0
    Active theme: Storefront Child (version 1.0)
    Current plugin: Yoast SEO (version 18.9)
    PHP version 8.0.19

    Error Details
    An error of type E_ERROR was caused in line 105 of the file /home/mysite/public_html/wp-content/plugins/wordpress-seo/admin/class-meta-columns.php. Error message: Uncaught TypeError: array_merge(): Argument 1 must be of type array, null given in /home/mysite/public_html/wp-content/plugins/wordpress-seo/admin/class-meta-columns.php:105
    Stack trace:
    0 /home/mysite/public_html/wp-content/plugins/wordpress-seo/admin/class-meta-columns.php(105): array_merge(NULL, Array)
    1 /home/mysite/public_html/wp-includes/class-wp-hook.php(307): WPSEO_Meta_Columns->column_heading(NULL)
    2 /home/mysite/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(NULL, Array)
    3 /home/mysite/public_html/wp-admin/includes/class-wp-posts-list-table.php(739): apply_filters('manage_product_...', NULL)
    4 /home/mysite/public_html/wp-includes/class-wp-hook.php(307): WP_Posts_List_Table->get_columns(Array)
    5 /home/mysite/public_html/wp-includes/plugin.php(191): WP_Hook->apply_filters(Array, Array)
    6 /home/mysite/public_html/wp-admin/includes/screen.php(37): apply_filters('manage_edit-pro...', Array)
    7 /home/mysite/public_html/wp-admin/includes/class-wp-screen.php(996): get_column_headers(Object(WP_Screen))
    8 /home/mysite/public_html/wp-admin/includes/class-wp-screen.php(957): WP_Screen->show_screen_options()
    9 /home/mysite/public_html/wp-admin/admin-header.php(281): WP_Screen->render_screen_meta()
    10 /home/mysite/public_html/wp-admin/edit.php(397): require_once('/home/mysite/...')
    11 {main}
    thrown
    • This topic was modified 2 years, 5 months ago by Iamhere.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @iamhere

    We understand you’ve encountered a fatal error when trying to access your WooCommerce products section. Could you check if you have the latest version of WooCommerce 6.5.1 on your site?

    Often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict, is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty.

    Please test this on your development or staging site, if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    If you do not feel comfortable to do this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

    Could you check if this issue still occurs with just a default WP theme (e.g. TwentyTwenty), Yoast SEO 19.0 and WooCommerce 6.5.1 as the plugins enabled and when you try to access the WooCommerce products page?

    @mikes41720 The stack trace show only core and Yoast functions. Changing themes and plugins won’t help.

    I’ve checked this on a site using PHP 7.4 and didn’t see this error, so it may be related to PHP 8.0 being stricter. See https://php.watch/versions/8.0/internal-function-exceptions

    Thread Starter Iamhere

    (@iamhere)

    Hi

    I already mentioned that I changed themes and plugins. Nothing worked except disabling yoast. The plugin don’t work on php 8.0 for me.

    When I use php switcher back to 7.4 everything is fine.

    This seems to be the issue

    An error of type E_ERROR was caused in line 105 of the file /home/mysite/public_html/wp-content/plugins/wordpress-seo/admin/class-meta-columns.php. Error message: Uncaught TypeError: array_merge(): Argument 1 must be of type array, null given in /home/mysite/public_html/wp-content/plugins/wordpress-seo/admin/class-meta-columns.php:105

    Plugin Support Maybellyne

    (@maybellyne)

    Thank you for your response @iamhere & @galbaras

    Unfortunately, we haven’t yet fully tested the plugin with PHP version 8. The entire WordPress community is still working on it. You can read the https://developer.yoast.com/blog/the-2020-wordpress-and-php-8-compatibility-report/.

    For Yoast SEO to run properly, you should have a PHP version of 5.6.20 or higher. In fact, we recommend PHP version 7.3 or above. Before you upgrade to a higher PHP version, check if your WordPress site is ready for it. Read this helpful article to learn how to update your PHP version. Also, your PHP memory should be 256M or greater.

    The report you’ve linked is from 28 October 2020, almost 2 years ago, and PHP 8 has been the main version for well over a year now. Maybe it’s time to be compatible?

    Specifically for this thread, you have a stack trace, which is a pretty good start for fixing the problem (add a check of .

    @iamhere since this seems to be related to displaying the Yoast columns, can you try turning those off in the screen settings (or on, if all of them are off)?

    Also, have you tried reinstalling the plugin? When you do this, do you see any messages in the error log?

    Plugin Support Maybellyne

    (@maybellyne)

    I marked this thread as resolved due to a lack of activity by the original poster. The original poster is always welcome to re-open this topic.

    If you are not the original poster but have a similar issue, please read this post before opening a new request.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Just to let you know, the issue isn’t specific to PHP v8.1 but specific to web hosting providers. The issue occurs when the web hosting provider disables the php_uname() function for security reasons. A PR has already been submitted to take care of this.

    If you want this to be fixed as soon as possible, please reach out to your web hosting provider and ask them to enable the relevant PHP function on your server for you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Yoast breaks product page in woocommerce backend’ is closed to new replies.