• Resolved royalmicer

    (@royalmicer)


    Since the update to WP SEO 1.5.2.3 my Yoast WooCommerce SEO plugin has a fatal error and it completely breaks my shop/

    The xact error is : Fatal error: Call to private WPSEO_Breadcrumbs::__construct() from context ‘Yoast_WooCommerce_SEO’ in /home/asiavirt/public_html/ext/wpseo-woocommerce/wpseo-woocommerce.php on line 453

    A screen shot can be seen here: https://prntscr.com/32bd4x

    For now i have deactivated : Yoast WooCommerce SEO

    Thanks

    https://www.ads-software.com/plugins/wordpress-seo/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, this is actually not an issue with WPSEO, but with WooCommerce SEO. I’ve send in a fix for this and expect it will be in the next release.

    If you’d like to fix this in the mean time, you can edit the wpseo-woocommerce.php file around line 451.

    Replace:

    function woo_wpseo_breadcrumbs() {
    		if ( ! isset( $GLOBALS['wpseo_bc'] ) || ! is_object( $GLOBALS['wpseo_bc'] ) ) {
    			$GLOBALS['wpseo_bc'] = new WPSEO_Breadcrumbs;
    		}
    		$GLOBALS['wpseo_bc']->breadcrumb( '<nav class="woocommerce-breadcrumb">', '</nav>' );
    	}

    With:

    function woo_wpseo_breadcrumbs() {
    		if ( function_exists( 'yoast_breadcrumb' ) ) {
    			yoast_breadcrumb( '<nav class="woocommerce-breadcrumb">', '</nav>' );
    		}
    	}

    Hope this helps ??

    Thread Starter royalmicer

    (@royalmicer)

    @jrf — Thank you very much, the fix worked for me.

    Glad to hear it ?? Could you please mark the topic as resolved ?

    Thread Starter royalmicer

    (@royalmicer)

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal error: Call to private WPSEO_Breadcrumbs: Since WPSEO 1.5.2.3’ is closed to new replies.