• Resolved Skrlance

    (@seanlance)


    I see these errors when using Wocommerce with YoastWoocommerceSEO.

    Warning: Only the first byte will be assigned to the string offset in D:\xampp\htdocs\wp-content\plugins\wpseo-woocommerce\classes\woocommerce-schema.php on line 527
     
    Fatal error: Uncaught TypeError: Cannot access offset of type string on string in D:\xampp\htdocs\wp-content\plugins\wpseo-woocommerce\classes\woocommerce-schema.php:527 Stack trace: #0 D:\xampp\htdocs\wp-content\plugins\wpseo-woocommerce\classes\woocommerce-schema.php(155): WPSEO_WooCommerce_Schema->filter_reviews(Array, Object(WC_Product_External)) #1 D:\xampp\htdocs\wp-includes\class-wp-hook.php(287): WPSEO_WooCommerce_Schema->change_product(Array, Object(WC_Product_External)) #2 D:\xampp\htdocs\wp-includes\plugin.php(212): WP_Hook->apply_filters(Array, Array) #3 D:\xampp\htdocs\wp-content\plugins\woocommerce\includes\class-wc-structured-data.php(328): apply_filters('woocommerce_str...', Array, Object(WC_Product_External)) #4 D:\xampp\htdocs\wp-includes\class-wp-hook.php(287): WC_Structured_Data->generate_product_data(Object(WC_Product_External)) #5 D:\xampp\htdocs\wp-includes\class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #6 D:\xampp\htdocs\wp-includes\plugin.php(484): WP_Hook->do_action(Array) #7 D:\xampp\htdocs\wp-content\themes\rehub-theme\inc\product_layout\ce_woo_blocks.php(347): do_action('woocommerce_sin...') #8 D:\xampp\htdocs\wp-content\themes\rehub-theme\woocommerce\single-product.php(72): include('D:\\xampp\\htdocs...') #9 D:\xampp\htdocs\wp-includes\template-loader.php(106): include('D:\\xampp\\htdocs...') #10 D:\xampp\htdocs\wp-blog-header.php(19): require_once('D:\\xampp\\htdocs...') #11 D:\xampp\htdocs\index.php(17): require('D:\\xampp\\htdocs...') #12 {main} thrown in D:\xampp\htdocs\wp-content\plugins\wpseo-woocommerce\classes\woocommerce-schema.php on line 527

    Even it doesn’t display the product content!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there,

    There’s a chance that these errors are related to a compatibility conflict between your plugins.

    The best way to find the origin of the issue is to disable all the active plugins except WooCommerce to see if the issue is fixed. If that’s the case, you just need to reactivate the disabled plugins one by one and reload the Checkout page to check if the issue reappears. You’ll know the culprit plugin when you reactivate one and the problem reappears.

    Of course, I’d suggest you to perform this test on a staging version of your site (you can use “[WP Staging](https://www.ads-software.com/plugins/wp-staging/)” plugin to create one quickly).

    If the problem persists with only WooCommerce and YOAS SEO plugins enabled, I suggest you to report this issue directly to their support team, as they are the ones that will need to take a deeper look at this (as the error is coming from their plugin).

    Thanks,

    Thread Starter Skrlance

    (@seanlance)

    As I said the problem comes with YoastWoocommerceSEO and Woocommerce plugin together. I tried disabling all except YoastSEO Premium, YoastWoocommerceSEO, and Woocommerce, there is that problem. It is not gone!!

    And yes! If I disable All except Woocommerce there is no problem. Or, If I only disable YoastWoocommerceSEO, woocommerce doesn’t throw the error.

    However, as Yoast is widely used plugin so I mean that both should be compatible with each other. I was told that this problem came from Woocommerce plugin so I asked you for a help.

    As I said the problem comes with YoastWoocommerceSEO and Woocommerce plugin together. I tried disabling all except YoastSEO Premium, YoastWoocommerceSEO, and Woocommerce, there is that problem. It is not gone!!

    Thanks for trying it and for sharing the results with us.

    As you say, this looks like a compatibility conflict between WooCommerce and YoastWoocommerceSEO.

    I know that it is a popular plugin, but as YoastWoocommerceSEO is an extension that requires and extends the base functionality of WooCommerce, and since the error is coming from their code, it will need to be handled from their side.

    I was told that this problem came from Woocommerce plugin so I asked you for a help.

    Can you please confirm us if it was their support team who forwarded you to us? If that’s the case, please provide us more details about their reply to give us a better understanding of the nature and scope of the issue.

    Thanks!

    Hello @seanlance,

    Since we haven’t heard from you in a while, we’re hoping that means you were able to get this resolved. I’m going to close this thread out now.

    If you’re still having trouble, please open up a new topic and we’ll be happy to help out.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Throws Errors With Yoast Wocommerce SEO’ is closed to new replies.