Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with loading products on your screen and encountering errors such as 'Undefined property' related to regular price, sale price, and PHP8 support deprecation errors like 'Creation of dynamic property Whip_RequirementsChecker::$configuration is deprecated', this might be due to a known compatibility issue with PHP 8.2.

Solution:
First, we recommend checking our documentation on the PHP 8.2 deprecation issue: PHP 8.2 Deprecated: Creation of dynamic property.

If the issue is related to custom currency not being set for some products, it's possible that the product was originally a single product and later changed to a variable product. In this case, you can set the

_wcml_custom_prices_status

field to 0 for the container product by running the following SQL query:

UPDATE `wpcom2019_postmeta` SET `meta_value` = '0' WHERE `post_id` = '975' AND `meta_key` = '_wcml_custom_prices_status'

Please note that the solution provided might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please don't hesitate to open a new support ticket with us.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 32 replies, has 2 voices.

Last updated by Bobby 1 year, 2 months ago.

Assisted by: Bobby.

Author Posts
February 22, 2024 at 9:34 am #15332128

petriR

I am trying to: Loading products on screen

Link to a page where the issue can be seen: hidden link

I expected to see: Page without errors

Instead, I got:
Undefined property: stdClass::$_regular_price_USD wp-includes/class-wp-list-util.php:192
Undefined property: stdClass::$_regular_price wp-includes/class-wp-list-util.php:192
Undefined property: stdClass::$_sale_price_USD wp-includes/class-wp-list-util.php:192
Undefined property: stdClass::$_sale_price wp-includes/class-wp-list-util.php:192
Undefined property: stdClass::$_price_USD wp-includes/class-wp-list-util.php:192
Undefined property: stdClass::$_price wp-includes/class-wp-list-util.php:192

Also there are plenty of PHP8 support deprecation errors:
[22-Feb-2024 09:48:44 UTC] PHP Deprecated: Creation of dynamic property Whip_RequirementsChecker::$configuration is deprecated in wp-content/plugins/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 37
[22-Feb-2024 09:48:44 UTC] PHP Deprecated: Creation of dynamic property Whip_RequirementsChecker::$messageManager is deprecated in wp-content/plugins/sitepress-multilingual-cms/vendor/yoast/whip/src/Whip_RequirementsChecker.php on line 38

February 23, 2024 at 3:45 am #15335990

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi,

This is a known issue with PHP 8.2, please review the following documentation

https://wpml.org/errata/php-8-2-deprecated-creation-of-dynamic-property-whip_requirementscheckerconfiguration-is-deprecated/

February 23, 2024 at 9:23 am #15336729

petriR

I reverted to 8.1 and those deprecations are gone but the PHP warnings listed first a still there with class-wp-list-util.php:192

February 23, 2024 at 7:40 pm #15339239

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for updating me!

Typically Warnings and Notices in WordPress will not cause your site's function to halt at any time therefore they do not pose a threat to the way your site or plugins are functioning.

you can safely remove these warnings by doing the following

Go in your wp-config.php file and look for define(‘WP_DEBUG’, true);. Change it to:
define('WP_DEBUG', false);

also, you can add the following

ini_set('display_errors','Off');
ini_set('error_reporting', E_ALL );
define('WP_DEBUG_DISPLAY', false);

However, if you would like us to take a closer look into why this is showing, I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

February 26, 2024 at 6:32 am #15342270

petriR

Yes as a developer I know how to disable and enable debugging and no, undefined properties are not errors like deprecations which can be ignored. Please pass the errors to dev team, thanks!

February 26, 2024 at 10:58 pm #15346652

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

You are saying that these are still current even after reverting, correct?

Undefined property: stdClass::$_regular_price_USD wp-includes/class-wp-list-util.php:192
Undefined property: stdClass::$_regular_price wp-includes/class-wp-list-util.php:192
Undefined property: stdClass::$_sale_price_USD wp-includes/class-wp-list-util.php:192
Undefined property: stdClass::$_sale_price wp-includes/class-wp-list-util.php:192
Undefined property: stdClass::$_price_USD wp-includes/class-wp-list-util.php:192
Undefined property: stdClass::$_price wp-includes/class-wp-list-util.php:192

Please share with us access to a staging environment where these are reproduced or a duplicator package for our team to further review as I cannot reproduce this behavior in a clean environment.

February 27, 2024 at 7:18 am #15347325

petriR

I cannot replicate this site due it's huge site and traffic. This could be compatibility issue with Woocommerce multilingual and Multicurrency and WPML.

February 27, 2024 at 11:05 pm #15351552

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I understand, thank you for the update.

I've created a sandbox environment to further examine this issue, which runs on PHP 8.1. However, I'm not encountering the same undefined property error you mentioned.

This issue may be specific to your environment or website, which means a closer inspection might be necessary to identify the cause. I'm not certain about the feasibility of facilitating such an examination on your end.

You are welcome to review the sandbox setup here for more insights:
hidden link

NOTE: we recently released WCML 5.3.5, please ensure to first update to the latest version and see if that helps.

https://wpml.org/downloads/

February 28, 2024 at 8:43 am #15352402

petriR

Hey,

It seems that this is directly about the WCML which I posted here too:
https://wordpress.org/support/topic/cannot-add-products-to-cart-or-edit-items-in-cart/

The errors are gone if the "WooCommerce Multilingual & Multicurrency with WPML" is disabled and that plugin prevented our store working at all. The issues started right after the 5.3.5

February 29, 2024 at 1:20 am #15356168

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you,

Circling back to my last reply, this seems to be environment-specific. are you able to share with us any sort of staging site or a package to deploy where this has been reproduced for our team to further investigate

Sharing only the warning log unfortunately will not allow us to further debug this issue as it is not something that can be reproduced with WCML in a clean environment.

February 29, 2024 at 6:56 am #15356371

petriR

Sadly our hosting is limited on that end but I could provide access to live site.

edit: There is now a another person in my wordpress.org threat with same issue that their store is not working.

February 29, 2024 at 4:53 pm #15359578

petriR

Could I provide the admin access so that you could debug it yourself? Please read the added information in the public forums. https://wordpress.org/support/topic/cannot-add-products-to-cart-or-edit-items-in-cart/

February 29, 2024 at 6:16 pm #15360151

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

I have read the ticket and communicated with my colleague who was helping you, the private reply has been enabled, please share access with me here.

March 1, 2024 at 3:34 pm #15363642

petriR

Anything new on this?

March 1, 2024 at 6:58 pm #15364572

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi,

Do I have your permission to attempt to migrate on our staging servers or at least create a package for testing? It will be safer than testing on a live site.

Usually, we strip all the media and uploads folder which tends to make the site much smaller in size.

At the moment the debug display is off which prevents me from seeing the errors. I'd need to install the wp file manager plugin to activate it.

If the above is not possible -- what are your results when using

1. Flatsome parent theme instead of child

2. Deactivating multicurrency (my guess is that this will remove the warning based on the error, [not a solution just a debugging step])