WPIntell

Source evidence

Fatal error on Divi template builder

ELEX WooCommerce Product Price Custom Text (Before & After Text) and Discount · support · 2024-04-09T12:53: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.

3 / 16 rows with source links

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

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

13 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Adrian Emil Tudorache resolved
Hi there, Your plugin is causing an issue on Divi 4.24.3 and possibily other versions, under PHP 8.2+ The error is the following: [09-Apr-2024 12:08:21 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_meta() on bool in <ABSPATH>/wp-content/plugins/elex-product-price-custom-text-before-after-text-and-discount-for-woocommerce/includes/SettingsController.php:433 It also impacts line 435. I’ve replaced the lines with the following: 433: $custom_check_enable = $product_info ? $product_info->get_meta( 'elex_ppct_custom_fields_checkbox' ) : 'no'; 435: $custom_discount_checkbox = $product_info ? $product_info->get_meta( 'elex_ppct_custom_fields_discount_type_checkbox' ) : 'no'; I am not sure why you are trying to fetch the product once again in line 432, since normally you should already have the product passed in the second function parameter. Either way, if you could get a chance to investigate this and fix in in next releases, it would be great. Best regards, Adrian This topic was modified 2 years, 2 months ago by Adrian Emil Tudorache . Hello railmedia (@railmedia), Thank you for bringing this case to our attention. I have forwarded the error logs and suggestions for code-level adjustments to our product team. We will thoroughly investigate the scenario with the team and keep you updated on our progress. If you have any questions or concerns in the meantime, please feel free to reach out. We’re here to help.

Comments

1 shown
ELEXtensions 2024-04-10T04:26:00+00:00

Hello railmedia (@railmedia), Thank you for bringing this case to our attention. I have forwarded the error logs and suggestions for code-level adjustments to our product team. We will thoroughly investigate the scenario with the team and keep you updated on our progress. If you have any questions or concerns in the meantime, please feel free to reach out. We’re here to help.