Skip Navigation

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:

define('WP_DEBUG', true);<br />define('WP_DEBUG_LOG', true);<br />define('WP_DEBUG_DISPLAY', true);

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.

Tagged: 

This topic contains 5 replies, has 3 voices.

Last updated by Bobby 11 months, 3 weeks ago.

Assisted by: Bobby.

Author Posts
June 17, 2024 at 9:45 am #15744325

leonardoS-22

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?

June 18, 2024 at 5:41 am #15747272

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

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

define('WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', true);

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).

Let us know.

Regards,
Drazen

June 18, 2024 at 5:43 am #15747274

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Hi there,

WP Memory Limit is at 128M which could cause a fatal error.
Increase to 256M or higher then test again and let me know your results.

https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-can-i-increase-my-sites-memory-limit

If the issue persists, I would need to see the detail of the error.

You can see how to enable debug logging here:
https://wpml.org/documentation/support/debugging-wpml/

June 20, 2024 at 8:05 am #15761981

leonardoS-22

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

Thanks for your help.

June 20, 2024 at 10:05 pm #15767816

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

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

June 21, 2024 at 6:58 pm #15778233

Bobby
WPML Supporter since 04/2015

Languages: English (English )

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

Hi there,

I registered the following Fatal Error, which points to the theme's core plugin tonda-core. (see stack trace)

Please review the solution in this thread and let me know your results:
https://wpml.org/forums/topic/conflict-between-tonda-woocommerce-dropdown-cart-widget-and-wpml/

[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

June 24, 2024 at 7:13 am #15803690

leonardoS-22

Hi,
I followed the instructions as shown and it solved the problem perfectly.

Thank you so much for your help!
Best regards,
Leonardo.