WPIntell

Source evidence

Unsupported operand types: string *

XML for Google Merchant Center · support · 2024-11-22T09:50:00+00:00

mixedsentiment
highseverity
0.9relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 25 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
tddjaved resolved
Hello, A client of ours has installed this plugin, not sure when it was installed. WooCommerce is on the latest version. When the client is updating the price of a product, he is getting the fatal error screen saying there is a problem and it’s been emailed to you. When turning on debug logging and checking the log file, this is the fatal error that is being returned; [22-Nov-2024 09:17:53 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string * float in /wordpress/plugins/woocommerce/9.4.2/includes/wc-formatting-functions.php:136 Stack trace: #0 /srv/htdocs/wp-content/plugins/xml-for-google-merchant-center/classes/generation/traits-xfgmc-simple.php(1106): wc_get_dimension('', 'cm') #1 /srv/htdocs/wp-content/plugins/xml-for-google-merchant-center/classes/generation/class-xfgmc-get-unit-offer-simple.php(117): XFGMC_Get_Unit_Offer_Simple->get_shipping_xml() #2 /srv/htdocs/wp-content/plugins/xml-for-google-merchant-center/classes/generation/class-xfgmc-get-unit-offer.php(65): XFGMC_Get_Unit_Offer_Simple->generation_product_xml() #3 /srv/htdocs/wp-content/plugins/xml-for-google-merchant-center/classes/generation/class-xfgmc-get-unit.php(115): XFGMC_Get_Unit_Offer->__construct(Array) #4 /srv/htdocs/wp-content/plugins/xml-for-google-merchant-center/classes/generation/class-xfgmc-get-unit.php(64): XFGMC_Get_Unit->create_code() #5 /srv/htdocs/wp-content/plugins/xml-for-google-merchant-center/classes/system/class-xml-for-google-merchant-center.php(650): XFGMC_Get_Unit->__construct(31648, 1) #6 /wordpress/core/6.7.1/wp-includes/class-wp-hook.php(324): XmlforGoogleMerchantCenter->xfgmc_save_post_product_function(31648, Object(WP_Post), true) #7 /wordpress/core/6.7.1/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(false, Array) #8 /wordpress/core/6.7.1/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #9 /wordpress/core/6.7.1/wp-includes/post.php(5060): do_action('save_post', 31648, Object(WP_Post), true) #10 /wordpress/core/6.7.1/wp-includes/post.php(5162): wp_insert_post(Array, false, true) #11 /wordpress/core/6.7.1/wp-admin/includes/post.php(453): wp_update_post(Array) #12 /wordpress/core/6.7.1/wp-admin/post.php(227): edit_post() #13 {main} thrown in /wordpress/plugins/woocommerce/9.4.2/includes/wc-formatting-functions.php on line 136 I’ve tried rolling back the plugin to a previous version but that is bringing back the same error too. When deactivating the plugin and then updating the product price in the backend, it works as normal, no errors. When the plugin is activated and the price is updated in the backend, it shows the fatal error message screen HOWEVER the price on the frontend is being reflected. Please can you take a look into this for me? Let me know what information you would require from me. Thanks, Javed The page I need help with: [ log in to see the link] Hello. I fixed it in v3.0.11. Thank you for feedback.

Comments

1 shown
icopydoc 2024-12-28T12:12:00+00:00

Hello. I fixed it in v3.0.11. Thank you for feedback.