Skip Navigation

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

Problem:

When trying to add a product to the cart, a 500 occurs.

Solution:

In this case, the problem was with the Query Monitor plugin, which, for some reason, in the submission, was setting the locale to null. Deactivating the Query Monitor plugin solved the problem.
Relevant Documentation:

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 8 replies, has 3 voices.

Last updated by Waqas Bin Hasan 1 year, 10 months ago.

Assisted by: Itamar.

Author Posts
August 8, 2023 at 5:17 am

uchaN

Plugin causes problems on my live website

August 8, 2023 at 5:34 am
August 8, 2023 at 12:46 pm #14169367

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support. I am assigned this ticket and 'll try my best to help you on the matter.

Reference to your chat with Shekhar, I visited hidden link and added this to cart, then viewed the cart and went to checkout page. And I didn't run into any error.

I also tried to login to your site based on the information you provided, to check for any anomalies. But looks like access has been revoked.

However, please let me know if you are still facing the problem.

Also provide debug information of your website for an overview of your setup? See https://wpml.org/faq/provide-debug-information-faster-support/ for more information.

I've enabled the debug information section for your next reply.

Additionally you can also take a look at https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/ and cross-check for a few initial fixes.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

Regards.

August 8, 2023 at 10:03 pm #14172367

uchaN

hi thanks for reply.
You didn't run into error, because now Wpml Cms plugin is turrned off (because website is live and customers need to add to cart items, so i had to desable wpml cms plugin, you need to enable it when u start working to see the problem...
about wp-admin login, try to log in again, it shouldn't have any problem, if anything i can create new user for you, let me know.
about debug.... I talked to you guys for like 7 times already, please someone check the website i can't wait so long sorry... I added 6 times this debug information, you have ftp and wp-admin creditionals, please try your best to solve the situation... thanks !

August 9, 2023 at 9:11 am #14174041

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

We've just had this chat between you and me.

https://wpml.org/forums/topic/wpml-chat-support-ticket-by-uchan-1691568539/

You didn't reply for almost 15 minutes, so I closed the chat. But I'll continue to help you here in this ticket.

The issue seems to happen randomly because now I can add the following product to the cart. Please see the attached screenshot.

hidden link

Can you confirm that it is a random issue that sometimes happens and sometimes not?

I tried to access your site to check things, but the access details you provided them do not work for me. Please see the attached screenshots. Please correct the access details and share them with me in the following private message.

If you need further help with this, please share the access details to your site with me.
I'm enabling a private message for the following reply.
Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

2023-08-09_12-06-00.jpg
2023-08-09_12-04-47.jpg
August 15, 2023 at 8:14 pm #14205243

uchaN

Hello! it's me again... i updated wpml and it started working, but today still same problem occured in inspect element while trying to add to cart product from single products page, i get this type of error in inspect (i will attach photo also) :

custom-exclude.css:1 Failed to load resource: the server responded with a status of 404 ()
jquery-migrate.min.js?ver=3.4.1:2 JQMIGRATE: Migrate is installed, version 3.4.1
custom-exclude.css:1 Failed to load resource: the server responded with a status of 404 ()
jquery.min.js?ver=3.7.0:2 POST hidden link 500
send @ jquery.min.js?ver=3.7.0:2
ajax @ jquery.min.js?ver=3.7.0:2
(anonymous) @ jquery-migrate.min.js?ver=3.4.1:2
e.<computed> @ jquery-migrate.min.js?ver=3.4.1:2
(anonymous) @ addToCartAllTypes.min.js?ver=7.2.5:1
dispatch @ jquery.min.js?ver=3.7.0:2
v.handle @ jquery.min.js?ver=3.7.0:2
addToCartAllTypes.min.js?ver=7.2.5:1 ajax adding to cart error
greenlab.ge/:1 Unchecked runtime.lastError: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received
greenlab.ge/:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received

err.png
August 16, 2023 at 8:30 am #14207225

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates. I'll be handling this ticket because Itamar is on vacation for some time.

May I ask for admin access to your website to check the issue in detail? You can create a separate admin user for this purpose, which can be deleted afterwards.

Also provide detailed steps to reproduce the issue and links to pages in admin and on frontend.

Remember to take full backup of your website and database before proceeding. However, a staging/test site is highly recommended, because I may need to try some changes/fixes on the site (including plugins & themes deactivation), which may cause conflicts with the live site otherwise.

Please confirm it in your next reply or let me know if you do not agree with the mentioned.

I've set your next reply as private to share this information safely.

IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

August 16, 2023 at 9:29 pm
August 17, 2023 at 7:31 am #14242739

uchaN

I am in a hurry because of this problem my online shop doesnt work.... People cant add to cart items, please can u see it on time?

August 17, 2023 at 7:52 am #14243329

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the access.

I am working on it and 'll get back to you as soon as possible.

August 17, 2023 at 8:19 am #14243603

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

The issue was coming due to Query Monitor plugin, which is setting for some reason locale to null for some reason in the submission. Deactivating it fixes the problem.

I can now add products to the cart without any problem.

Query Monitor is running only for Admins. It is not recommended to keep it active on a live site because it is known to add additional load and performance surplus to the site. Only activate for debugging.

Please check and confirm.

August 17, 2023 at 8:49 am #14243901

uchaN

thanks! its working now, but i can't uderstand how can this plugin mess around with this problem... also i noticed a lot of slow queries from wpml cms in that plugin and wanted to solve performance problems also... could you check it? website was very fast before starting using wpml....