This thread is resolved. Here is a description of the problem and solution.
Problem: When activating 'WooCommerce Multilingual & Multicurrency', the website fails to display anything after adding an item to the shopping cart. The client suspects it might be due to a lack of translation on the account page and unapplied endpoints. Solution: 1. Enable WP_DEBUG in the wp-config.php file to log errors. Add the following lines:
2. Increase the WP Memory Limit to at least 256M as described here: Increasing WP Memory Limit 3. If the issue persists, provide temporary access to your site for further investigation, ensuring you have backed up your site. 4. Check for theme conflicts, particularly with the theme's core plugin. A similar issue was resolved in this thread: WPML Forum: Theme Conflict
If these steps do not resolve your issue, or if the solution becomes outdated, please visit WPML Known Issues to check for related issues. Ensure you have the latest versions of themes and plugins installed. If the problem persists, we recommend opening a new support ticket at WPML Support Forum.
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.
Background of the issue:
We are currently in the process of translating our website. The plugin is working fine, but we are having a problem with 'WooCommerce Multilingual & Multicurrency'. Whenever we activate this plugin there seems to be no problem. However, when an item is added to the shopping cart, the website doesn't display anything: hidden link. At the moment we keep this function disabled as we do not sell outside Italy at the moment. However, we need this plugin because the account page is managed by WooCommerce and not being translated means that the endpoints are not applied (for example, the voice 'orders' just refreshes the page).
Symptoms:
When an item is added to the shopping cart, the website doesn't display anything.
Questions:
Why does the website not display anything when an item is added to the shopping cart with 'WooCommerce Multilingual & Multicurrency' activated?
How can we ensure the account page is translated and endpoints are applied correctly?
Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with the first debugging steps and try to help with the issue quickly.
Please enable error logging that will save all errors in a file called debug.log, log file inside the /wp-content/ directory.
To do so, please add the following to your wp-config.php file, just after DB info
Once you have added those lines to your wp-config.php file, please try andreplicate the issue. Then go to your installation's wp-content folder and find the "debug.log" file that should've appeared by now (it will appear if it encounters an error in your server).
Thank you all for your replies.
I have tried increasing the memory limit to 256M but the problem is still there.
I have also enabled the debug log.
Since I don't see a way to upload the log file here, I'm sending you a link. If there is another way to upload it, please let me know: hidden link
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.
[21-Jun-2024 18:42:20 UTC] PHP Fatal error: Uncaught TypeError: Argument 2 passed to WCML_WC_Strings::translated_cart_item_name() must be of the type array, object given, called in /home/stovmoncaq/amtest/wp-includes/class-wp-hook.php on line 324 and defined in /home/stovmoncaq/amtest/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-strings.php:179
Stack trace:
#0 /home/stovmoncaq/amtest/wp-includes/class-wp-hook.php(324): WCML_WC_Strings->translated_cart_item_name('Tris di Padelle...', Object(WC_Product_Simple))
#1 /home/stovmoncaq/amtest/wp-includes/plugin.php(205): WP_Hook->apply_filters('Tris di Padelle...', Array)
#2 /home/stovmoncaq/amtest/wp-content/plugins/tonda-core/widgets/woocommerce-dropdown-cart/woocommerce-dropdown-cart.php(76): apply_filters('woocommerce_car...', 'Tris di Padelle...', Object(WC_Product_Simple))
#3 /home/stovmoncaq/amtest/wp-includes/class-wp-widget.php(394): TondaSelectClassWoocommerceDropdownCart->widget(Array, Array)
#4 /home/stovmoncaq/amtest/wp-includes/widgets.php(837): WP_Widget->display_callback(Array in /home/stovmoncaq/amtest/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-wc-strings.php on line 179
Hi,
I followed the instructions as shown and it solved the problem perfectly.
Thank you so much for your help!
Best regards,
Leonardo.
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.