[Resolved] WMPL - when WPML is active , my compare page doesn't work
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing a conflict between WPML and their compare page, which stops functioning when WPML is active. Solution: We recommend making a backup of the website and then following these steps: 1. Navigate to Appearance > Theme File Editor. 2. Select the file
If the Theme File Editor is not available, the client can edit the file directly via FTP or in the hosting file manager. Additionally, we asked the client to install their theme in our Sandbox to investigate a potential compatibility issue between WPML and the Woodmart theme.
If this solution is not relevant due to being outdated or not applicable to your case, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please 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.
Tell us what you are trying to do?
Hello, there is a conflict between WPML and my compare page. The page functions don't work while WPML is active. When i deactivate WPML, everything is fine.
Is there any documentation that you are following?
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 first debugging steps or if I can perhaps help with the issue quickly.
I checked your debug info and noticed that your website doesn't have the minimum memory required for WPML to work. WPML requires a memory limit of at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set WP Memory Limit in your wp-config.php file by adding following code:
Problem: while WPML plugin is active, i can't use compare page. When i add to compare product, after that i can't remove them from "Compare" page. It's happening only,when WMPL is active.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.
You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.
IMPORTANT
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
Unfortunately, you shared your credentials publicly. Please delete that user, or at least change its password.
You have to use the private fields to share the credentials. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
IMPORTANT
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
I escalated your ticket to our development team, which will look for a permanent solution to your issue. That usually takes a few days, so I'll keep you updated as soon as I hear from them. Thank you for your patience 🙂
Thank you for your patience. I got feedback from our developers.
The issue appears to be in the file \XTS\Modules\Compare::remove_from_compare in wp-content/themes/woodmart/inc/integrations/woocommerce/modules/compare/class-compare.php
Make a backup of your website and follow these steps:
1. Go to Appearance > Theme File Editor and select the file \XTS\Modules\Compare::remove_from_compare in wp-content/themes/woodmart/inc/integrations/woocommerce/modules/compare/class-compare.php
2. Substitute this part of the code:
If you can't find the Theme File Editor, you can edit the file directly via FTP or in your hosting file manager. I'll also kindly ask you to please install your theme in our Sandbox, so we can investigate if that's a compatibility issue between WPML and Woodmart, and get in touch with them, in case it is: