• Resolved nkals722

    (@nkals722)


    Is anyone else getting a 500 network error which is breaking the UI in the admin edit screen for products? This is throwing a logged fatal error:

    Uncaught TypeError: Automattic\WooCommerce\GoogleListingsAndAds\Admin\Product\Attributes\VariationsAttributes::get_form(): Argument #1 ($variation) must be of type WC_Product_Variation, WC_Product_Simple given, called in /site-path/wp-content/plugins/google-listings-and-ads/src/Admin/Product/Attributes/VariationsAttributes.php on line 94 and defined in /site-path/wp-content/plugins/google-listings-and-ads/src/Admin/Product/Attributes/VariationsAttributes.php:143

    This happens every page load on both simple and variable products. I am not really sure how to proceed from here as it seems squarely an issue with the plugin itself. The plugin is the latest version ( 3.1.1 ).

    Any help would be greatly appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Sai (woo-hc)

    (@saivutukuru)

    Hi @nkals722,

    Thanks for reporting this and sharing the error. It looks like the Google Listings & Ads plugin may be treating a simple product as a variation, which could be triggering the fatal error you’re seeing.

    To help confirm if this is a recent plugin bug:

    1. Temporarily deactivate the Google Listings & Ads plugin and check if the product editor works normally again.
    2. Use the WP Rollback plugin to revert Google Listings & Ads to version 3.1.0, then check if the error still occurs.

    Next, please share your:

    Once we have this info, we’ll be able to confirm if it’s a plugin-level issue and guide you with the next steps. Let us know how it goes.

    Thread Starter nkals722

    (@nkals722)

    Thank you Sai,

    I believe we narrowed it down to an additional plugin conflicting with this:

    WPC Variation Bulk Editor
    https://ww.wp.xz.cn/plugins/wpc-variation-bulk-editor/

    When this plugin is installed, for some reason the google for woocommerce plugin seems to be confusing simple products for variable products due to something the above plugin is doing/adding.

    It is most likely something incorrectly happening on the bulk editor plugin, but I thought I would mention it just in case anyone wanted to poke around and see if it something that could help future proof the google for woocommerce plugin against that type of thing.

    Thanks!

    Thread Starter nkals722

    (@nkals722)

    One other quick note:

    I did submit a ticket with Woocommerce for this at the same time as making this post. After figuring out the other plugin was causing a conflict I was told “The plugin was likely hooking into WooCommerce’s product editing interface in a way that confused Google Listings & Ads when it tried to process the product data.”

    Adding that just in case someone does investigate it further to pin point the exact mechanism that was causing a conflict.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thank you so much for the update and for taking the time to investigate the issue further!

    It’s very helpful to know that the conflict appears to be related to the WPC Variation Bulk Editor plugin. We appreciate you pointing this out — even though the root cause may lie with that plugin, this kind of insight is valuable and can help us identify potential compatibility improvements for the Google for WooCommerce plugin going forward.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal Error on admin product pages’ is closed to new replies.