Skip Navigation

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 Carlos Rojas 1 year, 10 months ago.

Assisted by: Carlos Rojas.

Author Posts
July 18, 2023 at 3:40 pm #14060703

uchaN

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

July 18, 2023 at 3:44 pm #14060735

uchaN

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

July 18, 2023 at 4:01 pm #14060875

uchaN

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

July 18, 2023 at 4:08 pm #14060885

uchaN

this image also shows that all slow quieries are from this plugin.... all of them.

background-pontus.jpg
July 18, 2023 at 4:14 pm #14060917

uchaN

text/x-generic error_log ( HTML document, UTF-8 Unicode text, with very long lines )
[18-Jul-2023 14:53:48 UTC] PHP Notice: ფუნქცია wpdb::prepare არასწორად იყო გამოძახებული. მეთოდის მოთხოვნის არგუმენტს wpdb::prepare() უნდა ჰქონდეს გარდაქმნის აღმწერი. გთხოვთ იხილოთ გამართვა WordPress-ში დამატებითი ინფორმაციისათვის. (ეს შეტყობინება გაიგზავნა 3.9.0 ვერსიიდან.) in /public_html/wp-includes/functions.php on line 5865
[18-Jul-2023 14:55:44 UTC] PHP Notice: ფუნქცია wpdb::prepare არასწორად იყო გამოძახებული. მეთოდის მოთხოვნის არგუმენტს wpdb::prepare() უნდა ჰქონდეს გარდაქმნის აღმწერი. გთხოვთ იხილოთ გამართვა WordPress-ში დამატებითი ინფორმაციისათვის. (ეს შეტყობინება გაიგზავნა 3.9.0 ვერსიიდან.) in /public_html/wp-includes/functions.php on line 5865
[18-Jul-2023 14:55:54 UTC] PHP Notice: ფუნქცია wpdb::prepare არასწორად იყო გამოძახებული. მეთოდის მოთხოვნის არგუმენტს wpdb::prepare() უნდა ჰქონდეს გარდაქმნის აღმწერი. გთხოვთ იხილოთ გამართვა WordPress-ში დამატებითი ინფორმაციისათვის. (ეს შეტყობინება გაიგზავნა 3.9.0 ვერსიიდან.) in /public_html/wp-includes/functions.php on line 5865
[18-Jul-2023 14:56:53 UTC] PHP Notice: ფუნქცია wpdb::prepare არასწორად იყო გამოძახებული. მეთოდის მოთხოვნის არგუმენტს wpdb::prepare() უნდა ჰქონდეს გარდაქმნის აღმწერი. გთხოვთ იხილოთ გამართვა WordPress-ში დამატებითი ინფორმაციისათვის. (ეს შეტყობინება გაიგზავნა 3.9.0 ვერსიიდან.) in /public_html/wp-includes/functions.php on line 5865
[18-Jul-2023 15:51:25 UTC] PHP Fatal error: Uncaught Error: Call to undefined function WP_Rocket\Addon\Cloudflare\add_settings_error() in /public_html/wp-content/plugins/wp-rocket/inc/Addon/Cloudflare/Subscriber.php:638
Stack trace:
#0 /public_html/wp-includes/class-wp-hook.php(310): WP_Rocket\Addon\Cloudflare\Subscriber->display_settings_notice(Array, Array)
#1 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#2 /public_html/wp-includes/option.php(479): apply_filters('pre_update_opti...', Array, Array, 'wp_rocket_setti...')
#3 /public_html/wp-content/plugins/wp-rocket/inc/Engine/Optimization/DelayJS/Admin/SiteList.php(297): update_option('wp_rocket_setti...', Array)
#4 /public_html/wp-content/plugins/wp-rocket/inc/Engine/Optimization/DelayJS/Admin/Subscriber.php(157): WP_Rocket\Engine\Optimization\DelayJS\Admin\SiteList->refresh_exclusions_option()
#5 /public_html/wp-includes/class-wp-hook.php(308): WP_Rocket\Engine\Optimizat in /public_html/wp-content/plugins/wp-rocket/inc/Addon/Cloudflare/Subscriber.php on line 638
[18-Jul-2023 15:55:57 UTC] 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
Stack trace:
#0 /public_html/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-wpml-locale.php(106): SitePress->get_current_language()
#1 /public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(3452): WPML_Locale->locale()
#2 /public_html/wp-includes/class-wp-hook.php(308): SitePress->locale_filter('en_US')
#3 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('en_US', Array)
#4 /public_html/wp-includes/l10n.php(35): apply_filters('locale', 'en_US')
#5 /public_html/wp-includes/l10n.php(139): get_locale()
#6 /public_html/wp-includes/l10n.php(1274): determine_locale()
#7 /public_html/wp-includes/l10n.php(1305): _load_textdomain_just_in_time('woo-checkout-fi...')
#8 /home/gre in /public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 1131
[18-Jul-2023 15:55:58 UTC] 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
Stack trace:
#0 public_html/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-wpml-locale.php(106): SitePress->get_current_language()
#1 /public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(3452): WPML_Locale->locale()
#2 /public_html/wp-includes/class-wp-hook.php(308): SitePress->locale_filter('en_US')
#3 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('en_US', Array)
#4 /public_html/wp-includes/l10n.php(35): apply_filters('locale', 'en_US')
#5 /public_html/wp-includes/l10n.php(139): get_locale()
#6 /public_html/wp-includes/l10n.php(1274): determine_locale()
#7 /public_html/wp-includes/l10n.php(1305): _load_textdomain_just_in_time('woo-checkout-fi...')
#8 /home/gre in /public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 1131
[18-Jul-2023 15:56:03 UTC] 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
Stack trace:
#0 /public_html/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-wpml-locale.php(106): SitePress->get_current_language()
#1 /public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(3452): WPML_Locale->locale()
#2 /public_html/wp-includes/class-wp-hook.php(308): SitePress->locale_filter('en_US')
#3 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('en_US', Array)
#4 /public_html/wp-includes/l10n.php(35): apply_filters('locale', 'en_US')
#5 /public_html/wp-includes/l10n.php(139): get_locale()
#6 /public_html/wp-includes/l10n.php(1274): determine_locale()
#7 /public_html/wp-includes/l10n.php(1305): _load_textdomain_just_in_time('woo-checkout-fi...')
#8 /home/gre in /public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 1131
[18-Jul-2023 16:05:05 UTC] Cron unschedule event error for hook: rocket_update_dynamic_lists, Error code: could_not_set, Error message: Cron ღონისძიების სიის შენახვა ვერ მოხერხდა., Data: {"schedule":"weekly","args":[],"interval":604800}

July 19, 2023 at 11:57 am #14065869

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+03:00)

Hi there,

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.

Looking forward to hearing back from you.

July 21, 2023 at 10:51 am #14078863

uchaN

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.

Wpml_Desabled.jpg
wpmlEnabled.jpg
July 21, 2023 at 11:38 am #14079545

uchaN

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

July 21, 2023 at 11:49 am #14079715

Carlos Rojas
WPML Supporter since 03/2017

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

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

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!