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.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

This topic contains 3 replies, has 0 voices.

Last updated by Itamar 6 months, 2 weeks ago.

Assisted by: Itamar.

Author Posts
December 14, 2024 at 9:30 am #16513265

Martijn Loonen

Background of the issue:
I am trying to use the search bar on my website in Dutch, but when I press search, the webshop gets a critical error. Here is a screenshot of the error: hidden link. The issue can be seen on this page: hidden link.

Symptoms:
The website breaks with a critical error when searching in Dutch. Error messages include: 'Deprecated: Creation of dynamic property GLSShipping::$is_dev is deprecated', 'Notice: Function _load_textdomain_just_in_time was called incorrectly', 'Deprecated: Creation of dynamic property wpml_cms_nav_cache::$name is deprecated', and 'Fatal error: Allowed memory size of 805306368 bytes exhausted'.

Questions:
How to solve the critical error when searching in Dutch?

December 15, 2024 at 5:32 pm #16515170

Itamar
WPML Supporter since 02/2016

Languages: English (English )

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

Hi,

I can see this problem on your site.

Can you please tell me what is enabling the search feature on your site?
Is it the theme or a plugin?

Also, can you please share the full error messages with the track trace?

Thanks,
Itamar.

December 16, 2024 at 8:28 am #16516191

Martijn Loonen

Hi,

the searchbar comes from a theme, and they say it comes from wpml. as the error is not appearing when searching in the original language. here are the full errors.

Deprecated: Creation of dynamic property GLSShipping::$is_dev is deprecated in /home/customer/www/tierformen.eu/public_html/wp-content/plugins/GLS-for-woocommerce/includes/admin/class-GLS-shipping.php on line 27

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/tierformen.eu/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the mollie-payments-for-woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/customer/www/tierformen.eu/public_html/wp-includes/functions.php on line 6114

Deprecated: Creation of dynamic property wpml_cms_nav_cache::$name is deprecated in /home/customer/www/tierformen.eu/public_html/wp-content/plugins/wpml-cms-nav/inc/cache.class.php on line 36

Deprecated: Creation of dynamic property wpml_cms_nav_cache::$cache_to_option is deprecated in /home/customer/www/tierformen.eu/public_html/wp-content/plugins/wpml-cms-nav/inc/cache.class.php on line 37

Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 33443024 bytes) in /home/customer/www/tierformen.eu/public_html/wp-includes/class-wpdb.php on line 2345

December 16, 2024 at 4:24 pm #16518242

Itamar
WPML Supporter since 02/2016

Languages: English (English )

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

Hi,

1. You have our WPML CMS Nav active. In most cases, this plugin is not needed. This plugin adds navigation elements to the site. You can read about it here.
https://wpml.org/documentation/support/cms-navigation/
Do you use it?
If you are not using it, please deactivate it. This should handle this message:

Deprecated: Creation of dynamic property wpml_cms_nav_cache::$name is deprecated in /home/customer/www/tierformen.eu/public_html/wp-content/plugins/wpml-cms-nav/inc/cache.class.php on line 36

Deprecated: Creation of dynamic property wpml_cms_nav_cache::$cache_to_option is deprecated in /home/customer/www/tierformen.eu/public_html/wp-content/plugins/wpml-cms-nav/inc/cache.class.php on line 37

2. The Xstore theme is officially compatible with WPML. Please ensure to follow our guides here.

https://wpml.org/documentation/theme-compatibility/building-multilingual-ecommerce-sites-using-xstore-and-wpml/

hidden link

3. The fatal error you are getting is most probably due to this error:

Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 33443024 bytes) in /home/customer/www/tierformen.eu/public_html/wp-includes/class-wpdb.php on line 2345

We suspect a collision with the theme or another plugin might cause this problem. If possible, get your site into a minimum environment, switching to the parent Xstore theme and having no plugins activated except WPML.

First, you must check if the problem persists when the theme is switched to the parent Xstore theme. Please ensure that the Xstore theme is updated to its later version. If it persists, deactivate all plugins except WPML, its add-ons, and WooCommerce without any extensions. Then, please check if the problem persists. If it does not persist, start by activating the plugins individually and checking when the issue comes back, then report to me which plugin was the culprit.

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****


*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***

Regards,
Itamar.

The topic ‘[Closed] the website breaks when search in searchbar with a translation (dutch)’ is closed to new replies.