 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
|
 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/
|
 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
|
 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
|
 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!
|
 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.
|
 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.
|
 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/
|
 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
|
 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.
|
 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.
|
 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/
|
 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.
|
 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])
|