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