Background of the issue:
I found and fixed a bug in WCML code leading to this notice (and probably some side effects that I couldn't identify):
[02-Aug-2024 15:30:13 UTC] PHP Notice: Undefined property: stdClass::$_regular_price in /var/www/vhosts/edited.com/shop.edited.com/wp-includes/class-wp-list-util.php on line 192
[02-Aug-2024 15:30:13 UTC] PHP Notice: Undefined property: stdClass::$_sale_price in /var/www/vhosts/edited.com/shop.edited.com/wp-includes/class-wp-list-util.php on line 192
[02-Aug-2024 15:30:13 UTC] PHP Notice: Undefined property: stdClass::$_price in /var/www/vhosts/edited.com/shop.edited.com/wp-includes/class-wp-list-util.php on line 192
Those 2 calls use $key to find the value, but it's wrong. At this line, the value is located into 'meta_value', see example below:
Array (
[0] => stdClass Object ( [post_id] => 4753 [meta_key] => _regular_price [meta_value] => 70 )
[3] => stdClass Object ( [post_id] => 4754 [meta_key] => _regular_price [meta_value] => 45 )
)
Please let me know when it's integrated so that I don't lose my local changes with an update.
Symptoms:
PHP Notice: Undefined property: stdClass::$_regular_price, stdClass::$_sale_price, stdClass::$_price in /var/www/vhosts/adlice.com/shop.adlice.com/wp-includes/class-wp-list-util.php on line 192
Questions:
When will the fix be integrated so that I don't lose my local changes with an update?
We'll keep you updated here on any news regarding this issue.
Regards,
Itamar.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.