• Resolved baileyniemiller

    (@baileyniemiller)


    I always use Yoast and Elementor together, I’ve never had this issue before. When I try to use Elementor Header & Footer builder plugin, it shows this message:

    Fatal error: Uncaught TypeError: Argument 1 passed to WPSEO_Abstract_Post_Filter::add_filter_link() must be of the type array, bool given, called in /home/customer/www/baileyn.sg-host.com/public_html/wp-includes/class-wp-hook.php on line 292 and defined in /home/customer/www/baileyn.sg-host.com/public_html/wp-content/plugins/wordpress-seo/admin/filters/class-abstract-post-filter.php:101 Stack trace: #0 /home/customer/www/baileyn.sg-host.com/public_html/wp-includes/class-wp-hook.php(292): WPSEO_Abstract_Post_Filter->add_filter_link(false) #1 /home/customer/www/baileyn.sg-host.com/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(false, Array) #2 /home/customer/www/baileyn.sg-host.com/public_html/wp-admin/includes/class-wp-list-table.php(405): apply_filters('views_edit-elem...', Array) #3 /home/customer/www/baileyn.sg-host.com/public_html/wp-admin/edit.php(457): WP_List_Table->views() #4 {main} thrown in /home/customer/www/baileyn.sg-host.com/public_html/wp-content/plugins/wordpress-seo/admin/filters/class-abstract-post-filter.php on line 101
    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    I’ve already tried to disable it and enable again, delete and reinstall, none of that basic stuff works. It seems to be something with Yoast?

    I would love some insight on this!

    Here is some more info:
    WordPress version 5.7.2
    Current theme: Astra (version 3.6.1)
    Current plugin: Yoast SEO (version 16.5)
    PHP version 7.4.20

    Error Details
    =============
    An error of type E_ERROR was caused in line 101 of the file /home/customer/www/baileyn.sg-host.com/public_html/wp-content/plugins/wordpress-seo/admin/filters/class-abstract-post-filter.php. Error message: Uncaught TypeError: Argument 1 passed to WPSEO_Abstract_Post_Filter::add_filter_link() must be of the type array, bool given, called in /home/customer/www/baileyn.sg-host.com/public_html/wp-includes/class-wp-hook.php on line 292 and defined in /home/customer/www/baileyn.sg-host.com/public_html/wp-content/plugins/wordpress-seo/admin/filters/class-abstract-post-filter.php:101
    Stack trace:
    #0 /home/customer/www/baileyn.sg-host.com/public_html/wp-includes/class-wp-hook.php(292): WPSEO_Abstract_Post_Filter->add_filter_link(false)
    #1 /home/customer/www/baileyn.sg-host.com/public_html/wp-includes/plugin.php(212): WP_Hook->apply_filters(false, Array)
    #2 /home/customer/www/baileyn.sg-host.com/public_html/wp-admin/includes/class-wp-list-table.php(405): apply_filters(‘views_edit-elem…’, Array)
    #3 /home/customer/www/baileyn.sg-host.com/public_html/wp-admin/edit.php(457): WP_List_Table->views()
    #4 {main}
    thrown

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello,

    We are sorry that you are unable to use Yoast SEO with ELementor Header & Footer plugin. Can you please share with us the steps to reproduce the error above?

    Thread Starter baileyniemiller

    (@baileyniemiller)

    Hello,

    Yes:
    1. Log into my WordPress Dashboard
    2. Click on Elementor Header & Footer Builder
    3. The error then appears

    If Yoast SEO is deactivated, then the error goes away.

    Here is a link to a screenshot of the error: https://drive.google.com/file/d/1UxDIZusgCH_p_phkbeMa3CVv78h7vnZw/view?usp=sharing

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @baileyniemiller

    We tried a test site with the following setup:

    WordPress 5.7.2 on the WP TwentyTwenty Theme and Yoast SEO 16.5, Elementor 3.2.5, and Elementor Header & Footer Builder 1.6.1 as the only pugins

    We were unable to reproduce the same fatal error, as it loaded without any errors – https://snipboard.io/w0Dtye.jpg

    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

    Thread Starter baileyniemiller

    (@baileyniemiller)

    Hi Michael,

    Thank you for the advice. I went through all the steps of how to check for plugin conflicts using the Health Check plugin. I used a standard them and deactivated all plugins. The error still occurs only when Yoast SEO is activated. I have created several other site with the plugins I’m using and have never had this error. The issue still seems to be with the Yoast plugin.

    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @baileyniemiller

    Thanks for performing a conflict check using the Health Check plugin. So, just to clarify, with a standard WP theme (such as TwentyTwenty) and only the Yoast SEO v16.5 plugin enabled, you are still seeing this error of “Fatal error: Uncaught TypeError: Argument 1 passed to WPSEO_Abstract_Post_filter” in your WordPress admin dashboard, correct? And that’s with the Elementor and Elementor Header & Footer plugins disabled as well?

    If so, would it be possible for you to try and manually reinstall the latest version of the Yoast SEO plugin via FTP?

    Before we discuss manually updating, let’s cover a few important things to?be aware of?beforehand. First, Yoast SEO stores SEO data and settings in the database, so manually updating is not expected to cause any data loss.

    Second, we recommend creating regular backups of your site and database for your site’s health and safety. This is especially important before installing, updating, or removing plugins. It provides you with a safety net in case something were to go wrong. Learn more about?the benefits of regular backups.

    Thirdly, updating a severely outdated plugin may cause unexpected issues. Thus, we highly recommend using a staging or testing site to reduce the impact on your live site. Some popular web hosts offer quick setups for a staging site, so please contact your web host for assistance. They will probably be able to help you out. If your web host does not offer staging sites, the WordPress plugin repository offers?staging plugins?or you can?create your own staging site.

    Manually installing/updating the plugin via FTP entails deleting the old plugin files and uploading the new plugin files to the same folder path. We have a step by step guide to help you through the process.?How can I manually update my plugin? If you are unfamiliar with using FTP, your web host may be able to help.

    Could you try and check if this then helps resolve the issue?

    • This reply was modified 3 years, 8 months ago by Michael Ti?a.
    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @baileyniemiller

    Upon doing some further tests, we had a test site with WP 5.7.2 and the default WP theme of TwentyTwenty. We then made sure that only Yoast SEO v16.5, Elementor v3.2.5, and Elementor Header & Footer Builder v1.6.1 were the only plugins enabled. Once we created a test template, we were then able to reproduce the fatal errors reported.

    Thank you for bringing this issue to our attention!

    We apologize?for the trouble you are currently experiencing with our plugin. Luckily, a so-called “bug report” (a description of the issue, so we can fix it) is filed already.

    What’s next?
    Our product team will assess the severity of this problem in relation to other open bug reports and new features. Based on their assessment, the bug report will be given a priority level. Our developers work on the highest priority issues first. Unfortunately, this means we cannot give you an estimate of when they’ll start working on your report.

    If you have any further information that may affect the prioritization or help our development team solve this bug, please feel invited to reply to this forum topic.

    We also recommend reaching out to the developers of the Elementor Header & Footer Builder plugin and report this issue with them as well. Having both teams working on this issue will help in order to get this resolved faster. Thanks!

    Thread Starter baileyniemiller

    (@baileyniemiller)

    Hi @mikes41720

    Thank you for your quick replies and all of this information! It has been very helpful. I understand it may take some time – that is perfectly okay.

    Thank you again!

    Thread Starter baileyniemiller

    (@baileyniemiller)

    If I find any more valuable information I will be sure to share it here. ??

    The team behind the Elementor Header & Footer Builder plugin released version 1.6.2 which should fix the fatal (as seen here). Can you please update their plugin and check if this resolves the issue for you?

    I share the same issues as @baileyniemiller except I used “INSERT HEADERS AND FOOTERS BY WPBEGINNER” and “Ad Inserter – Ad Manager & AdSense Ads” and both showed a “Warning” followed by code on top of my header. Troubleshooted both and it all stemmed with Yoast. Even after deleting the header and footer plugins the code I entered in the header still showed which was odd(cleared cache even). But it did not disappear until I deactivated Yoast and reactivated it for it to finally disappear.

    So it seems there a 3 header and footer plugins currently of recent that has errors with Yoast.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Yoast Uncaught Type Error’ is closed to new replies.