Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues with items disappearing from the cart when added from the category page, but not from the single product page, and this issue resolves when the WPML plugin is deactivated, it might be related to the WordPress memory limit.
Solution:
We recommend following these steps:
1. Increase the WordPress memory limit to at least 128MB. You can do this by adding the following code to your wp-config.php file:

/* Memory Limit */<br />define('WP_MEMORY_LIMIT', '128M');

Add this code above the line that says /* That's all, stop editing! Happy blogging. */.
2. Verify the WordPress memory limit in WPML -> Support to ensure it has been increased.
3. Delete all inactive plugins, flush the cache memory, and update any outdated plugins and themes.

If these steps do not resolve the issue or if the solution seems outdated or not applicable to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum for further assistance.

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.

This topic contains 14 replies, has 2 voices.

Last updated by Carlos Rojas 1 day, 10 hours ago.

Assisted by: Carlos Rojas.

Author Posts
November 5, 2024 at 8:34 pm #16369121

marcush-16

Background of the issue:
I am trying to add Pokémon products to the checkout cart. The issue occurs when adding items from the category page.

Symptoms:
When items are added from the single product page, they stay in the cart. However, when adding from the category page, only the first item appears briefly before disappearing.

Questions:
Why do items disappear from the cart when added from the category page?
How can I ensure products remain in the cart when added from the category page?

November 6, 2024 at 7:34 am #16369909

marcush-16

its work when i disabel the wpml plugin

November 6, 2024 at 9:18 am #16370296

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hello,
Thank you for contacting us

1.- Please provide the debug information of the site following the steps described in this guide: https://wpml.org/faq/provide-debug-information-faster-support/

Note: Don't paste the debug information directly on the message, use the correspondent field.

2.- Could you share some URLs and screenshots or a link to a video where the issue can be seen and reproduced? This way I will have a better understanding of this scenario.

Looking forward to your message.
Regard,
Carlos

November 6, 2024 at 9:53 am #16370823

marcush-16

hidden link

November 6, 2024 at 10:16 am #16370916

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you for sharing the debug information.

1.- I was able to reproduce the issue in the original language, if you deactivate the WPML plugins does the issue persist or disappear?

2.- Please increase the WP memory Limit. Minimum requirements are 128Mb: https://wpml.org/home/minimum-requirements/
You can add this to wp-config.php to increase WP memory:`

/* Memory Limit */
define('WP_MEMORY_LIMIT', '128M');

- Add it above the line /* That's all, stop editing! Happy blogging. */

You can double-check the WordPress memory limit in WPML -> Support

November 6, 2024 at 1:35 pm #16372013

marcush-16

1- yes when i deactivate the WPML plugin dont have any issues its work

November 6, 2024 at 1:44 pm #16372075

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you for your feedback.

Could you create a staging site with a copy of the live site where we can run further tests without affecting the production site? I have set your next message private so you can securely share the access credentials to the staging site.

Looking forward to your message.

November 6, 2024 at 2:33 pm #16372623

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thank you for sharing the information requested.

Important note: The memory limit you mentioned is the PHP memory limit which is different than the WordPress memory limit. The code I provided increases the WordPress memory limit.

I will start running tests in the staging site and I will get back to you as soon as I get more information.

November 6, 2024 at 2:39 pm #16372699

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Hi again,

I followed these steps:
- Deleted all the inactive plugins
- Increased the WordPress memory limit
- Flushed the cache memory
- Updated the outdated plugins and themes
- Now the issue disappeared

Could you confirm that the issue was solved on the staging site?

November 6, 2024 at 2:45 pm #16372731

marcush-16

its work

November 6, 2024 at 2:47 pm #16372750

marcush-16

i can give acess on my cpanel and the live wordpress to increase the memory limit

November 6, 2024 at 2:51 pm #16372759

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Great!

I have set your next answer private so you can share the access credentials to the live site. Please don't forget to create a full backup of the site before sharing the credentials.

November 6, 2024 at 3:07 pm #16372987

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

Thanks!

Please check the live site now. Could you confirm that the issue was solved?

November 6, 2024 at 3:22 pm #16373337

marcush-16

Thank you again

November 6, 2024 at 4:34 pm #16373849

Carlos Rojas
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+01:00)

I'm happy to hear that the issue was solved 🙂

Please don't hesitate to contact us if you need our help in the future with WPML. We will be more than happy to assist you.

Have an excellent day!

marcush-16 confirmed that the issue was resolved on 2024-11-06 15:22:27.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.