Support » Plugin: Yoast SEO » Fatal error: Call to a member function remove_hooks() on null

  • Resolved cma01

    (@cma01)


    After updating Yoast SEO, my site failed to load giving this error:

    Fatal error: Call to a member function remove_hooks() on null in /home/raised/public_html/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php on line 226

    I disabled the plugin and now the site is again working normally.

Viewing 15 replies - 1 through 15 (of 16 total)
  • Same thing happened to me. I had my host deactivate the plugin and the site came back. Today I tried reactivating the plugin, thinking this issue would have been resolved by now, and again it took my site down.
    Definitely a flaw with the latest update.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Can you please confirm whether the issue persists while using the WordPress latest version v4.9.4?

    I also got this error even though I use the latest version of WordPress. Sad to say that I have to disable this plugin until I found the solution.

    • This reply was modified 3 years, 6 months ago by arbonar.
    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    @arbonar Can you try and gather as much information for us as possible? Please perform the following:
    1. Make sure the issue doesn’t persist when Yoast SEO is disabled.
    2. Check for conflicts.
    3. Check for JavaScript errors with your console.
    If you find any JavaScript errors related to Yoast SEO or if there is a conflict with a plugin or a theme, you can create a new GitHub issue for our developers. Please report the issue to a third party developer as well.
    If you didn’t find any conflicts or errors, we think the issue is specific to your site. We’d need to investigate further but are unable to do so on these forums. You can purchase Yoast SEO Premium and receive our Premium email support and we can help you further.

    @mazedulislamkhan It’s clearly not related to just @arbonar’s site as quite a few people have reported this problem on this and other threads. I can’t pull a report for you because as soon as I activate the most recent update I immediately loose all access to both my site url and wp-admin.

    MariusG

    (@marius_codeinwp)

    In order for us to replicate this issue, please install the Health Check plugin, then go to Dashboard → Health Check → Debug information and copy-paste the information here.

    This will allow us to replicate your environment, and hopefully the issue too.

    Same issue as others had reported on this thread – updating the plugin to v7.1 immediately causes error 500. Renaming the plugin directory to “wordpress-seo1” (for ex) restores functionality as it effectively disables the plugin.

    Here’s the error:
    PHP Fatal error: Call to a member function remove_hooks() on null in /nas/content/live/[redacted-for-privacy]/wp-content/plugins/wordpress-seo/inc/options/class-wpseo-options.php on line 226

    PS: WordPress v4.9.4 with latest WooCommerce if that makes a difference. I cannot install the HealthCheck plugin on this client’s site but maybe someone else on this thread can.

    • This reply was modified 3 years, 6 months ago by dimchik.

    @mariusg Here is the info from the Healthcheck plugin>debug, however, my site is running the previous version of Yoast SEO so I don’t know if this will be able to give you the info you need to fix the fatal error caused by the update.

    
    				### WordPress ###
    
    Version: 4.9.4
    Language: en_US
    Permalink structure: /%postname%/
    Is this site using HTTPS?: Yes
    Can anyone register on this site?: No
    Default comment status: open
    Is this a multisite?: No
    User Count: 106
    Communication with WordPress.org: WordPress.org is reachable
    Create loopback requests: The loopback request to your site completed successfully.
    
    ### Drop-ins ###
    
    advanced-cache.php: Advanced caching plugin.
    install.php: Custom installation script.
    object-cache.php: External object cache.
    
    ### Active theme ###
    
    Name: Flatsome Child
    Version: 3.0
    Author: UX Themes
    Author website: Undefined
    Parent theme: Flatsome
    Supported theme features: post-thumbnails, woocommerce, title-tag, automatic-feed-links, customize-selective-refresh-widgets, html5, menus, post-formats, wc-product-gallery-lightbox, widgets
    
    ### Other themes (5) ###
    
    Flatsome (flatsome): Version 3.3.8 by UX-Themes
    Twenty Fifteen (twentyfifteen): Version 1.9 by the WordPress team
    Twenty Fourteen (twentyfourteen): Version 2.1 by the WordPress team
    Twenty Seventeen (twentyseventeen): Version 1.4 by the WordPress team
    Twenty Sixteen (twentysixteen): Version 1.4 by the WordPress team
    
    ### Must Use Plugins (6) ###
    
    Endurance Browser Cache: Version 0.1 by Mike Hansen
    Endurance Page Cache: Version 0.2 by Mike Hansen
    Force Strong Passwords - WPE Edition: Version 1.6.4 by Jason Cosper
    SSO: Version 0.1 by Garth Mortensen, Mike Hansen
    Stop long comments: Version 0.0.4 by WPEngine
    WP Engine System: Version 3.2.1 by WP Engine
    
    ### Active Plugins (28) ###
    
    Ajax Search Lite: Version 4.7.14 by Ernest Marcinko
    Akismet Anti-Spam: Version 4.0.3 by Automattic
    Code Insert Manager (Q2W3 Inc Manager): Version 2.3.3 by Max Bond
    Disable REST API: Version 1.4.3 by Dave McHale
    Eggplant 301 Redirects: Version 2.3.0 by Shawn Wernig http://www.eggplantstudios.ca
    Envato WordPress Toolkit: Version 1.7.3 by Envato
    Envira Gallery Lite: Version 1.6.2 by Envira Gallery Team
    Facebook for WooCommerce: Version 1.8.1 by Facebook
    Google Analytics for WordPress by MonsterInsights: Version 7.0.4 by MonsterInsights
    GTmetrix for WordPress: Version 0.4.2 by GTmetrix
    Header and Footer Scripts: Version 2.1.0 by Digital Liberation
    Health Check: Version 1.0.1 by The WordPress.org community
    Heartbeat Control: Version 1.2.3 by Jeff Matson
    MailChimp Forms by MailMunch: Version 3.1.0 by MailMunch
    MailChimp for WooCommerce: Version 2.1.5 by MailChimp
    Remove Query Strings From Static Resources: Version 1.4 by Speed Up My Website, Your WP Expert
    Speed Booster Pack: Version 3.6.1 by Macho Themes
    SSL Insecure Content Fixer: Version 2.5.0 by WebAware
    UberMenu 3 - The Ultimate WordPress Mega Menu: Version 3.4 by Chris Mavricos, SevenSpark
    WooCommerce: Version 3.3.4 by Automattic
    WooCommerce Export Customer Email: Version 1.3 by MH Mithu
    WooCommerce Google Analytics Integration: Version 1.4.4 by WooCommerce
    WooCommerce PayPal Pro (Classic and PayFlow Editions) Gateway: Version 4.4.12 by WooCommerce
    WooCommerce PDF Invoices & Packing Slips: Version 2.1.6 by Ewout Fernhout
    WooCommerce Product Add-ons: Version 2.8.1 by WooCommerce
    WP Disable: Version 1.5.15 by optimisation.io, hosting.io
    WPSEO Pinterest Rich Pins for WooCommerce: Version 0.1.1 by Jonathan Christopher
    Yoast SEO: Version 7.0.3 by Team Yoast
    
    ### Inactive Plugins (1) ###
    
    WooCommerce Shipping Per Product v2: Version 2.2.12 by WooCommerce
    
    ### Media handling ###
    
    Active editor: BFI_Image_Editor_GD_1_3
    Imagick Module Version: 1673
    ImageMagick Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-07-31 http://www.imagemagick.org
    GD Version: 2.1.1
    Ghostscript Version: Unable to determine if Ghostscript is installed
    
    ### Server ###
    
    Server architecture: Linux 3.13.0-141-generic x86_64
    PHP Version: 7.0.28-0ubuntu0.16.04.1 (Supports 64bit values)
    PHP SAPI: apache2handler
    PHP max input variables: 1000
    PHP time limit: 3600
    PHP memory limit: 512M
    Max input time: 3600
    Upload max filesize: 50M
    PHP post max size: 100M
    cURL Version: 7.47.0 OpenSSL/1.0.2g
    SUHOSIN installed: No
    Is the Imagick library available: Yes
    
    ### Database ###
    
    Extension: mysqli
    Server version: 5.7.21-20-log
    Client version: mysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $
    Database prefix: wrd_
    
    ### WordPress constants ###
    
    ABSPATH: /nas/content/live/rusticartistry/
    WP_HOME: Undefined
    WP_SITEURL: Undefined
    WP_DEBUG: Disabled
    WP_MAX_MEMORY_LIMIT: 512M
    WP_DEBUG_DISPLAY: Enabled
    WP_DEBUG_LOG: Disabled
    SCRIPT_DEBUG: Disabled
    WP_CACHE: Enabled
    CONCATENATE_SCRIPTS: Undefined
    COMPRESS_SCRIPTS: Undefined
    COMPRESS_CSS: Undefined
    WP_LOCAL_DEV: Undefined
    
    ### Filesystem permissions ###
    
    The main WordPress directory: Writable
    The wp-content directory: Writable
    The uploads directory: Writable
    The plugins directory: Writable
    The themes directory: Writable
    The Must Use Plugins directory: Writable
    
    

    @rusticartistry looks like we are both on WP Engine – worth noting for the developers I suppose.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Based on the information you provided, we expect this to be a bug. We’re actively using the bug tracking on our GitHub repository so your best next step would be to create a new issue for our developers at https://github.com/Yoast/wordpress-seo/issues/new. You will need an account to create a new issue. If this is your first bug report, please check out: https://kb.yoast.com/kb/how-to-write-a-good-bug-report/.

    Don’t forget to include the URL to this conversation in your bug report.

    I think I got to the bottom of this. The following plugin causes conflict: WPSEO Pinterest Rich Pins for WooCommerce: Version 0.1.1 by Jonathan Christopher
    @rusticartistry – you have the same plugin, which is no longer being maintained – disable it and Yoast SEO should be working again.

    @dimchik you have solved they problem! Removed the Pinterest Rich Pins plugin, updated Yoast SEO plugin and all is well.
    Thank you!

    @rusticartistry cheers, happy to help!

    MariusG

    (@marius_codeinwp)

    @dimchik thank you for sharing the solution.

    @cma01 can you confirm that you are also using WPSEO Pinterest Rich Pins for WooCommerce? If so, please disable it and let us know if this fixes your issue too.

    We’re looking forward to hearing from you.

    Thread Starter cma01

    (@cma01)

    Yes I did. Thanks so much!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Fatal error: Call to a member function remove_hooks() on null’ is closed to new replies.