hello!
I have a problem. when i try to add product in to cart, it gives me error. when i tried to see debug of this problem i got this:
/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.ph on line:1131
here is the problem. Now ihave disabled your plugin and add to cart is working... I use Woodmart theme, it says that is compitable with your plugin, so what is the problem? how to solve it
I have completly disabled your plugin, now add to cart is working but I have bought your license and in woodmart documentation your plugin was the recomennded one, so i hope you will try your best to help solve this problem...
Update:
I noticed that after desabling wp-rockets, problem is fixed, but i need wp-rockets aswell... I have bought premium of that plugin also, and it also said that doesnt have any problem with wpml... what to do can u help me to fix this situation
Thank you for reaching out to WPML support. I'm sorry to hear that you are experiencing errors when trying to add a product to your website's cart.
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 or if I can help with the issue quickly.
I understand that when you have both WPML and WP Rocket plugins enabled, you get the following error when you add a product to the cart:
PHP Fatal error: Uncaught Error: Call to undefined method SitePress::get_requested_lang() in /public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:1131
But when WP Rocket is deactivated, the error disappears. Did I get that right?
If that's correct, have you tried disabling other plugins and keeping WPML, WooCommerce, and WP Rocket active?
I have just tested on my local test site WPML with WP Rocket, and I could not replicate the error you mentioned.
Please try keeping WPML, WooCommerce, and WP Rocket plugins active and let us know if the issue is still there.
Hi again! a little update:
I disabled wp rockets, performance is very important for me but if it was up to choose between language plugin and cache, I choose to leave enabled wpml, more important right now for seo, anyways I had desabled wp rockets for past 2 days, but same error still happend: see uploaded photo, after i desable wpml Multilingual CMS, I can succesfuly add things to my cart... so its not about confict with rockets, 1st picture is with enabled wpml, second photo when plugin is disabled.
it happens randomly, i cant just one bye one desable plugins and watch, because after desable/enable plugin, add to cart starts working for little time, maybe some hours maybe 1-2 days... so i cant test that way... this is live website also and i need to have 2 languages and add to cart same time ...
Hello,
My name is Carlos and I will continue working on this ticket
Please manually update the WPML plugins by downloading the plugin zip from https://wpml.org/account/downloads/ -> Click on 'Download WPML manually' link
You can use this guide as a reference: hidden link
Important note: Don't forget to create a full backup of the site before updating the plugin.
Could you tell me if the issue disappeared?
Regards!
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.