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.
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.
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
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);
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.
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!
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.
I cannot replicate this site due it's huge site and traffic. This could be compatibility issue with Woocommerce multilingual and Multicurrency and WPML.
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.
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
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.
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])
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.