[Resolved] Critical error with WPML Multilingual CMS
This thread is resolved. Here is a description of the problem and solution.
Problem:
"An error of type E_ERROR was caused in line 3937"
There was a conflict between WPML and the latest version of Google Site Kit (1.106)
Solution:
On the moment, the workaround was to downgrade to Google Site Kit 1.105, but a few days after we released WPML 4.6.5 which solved the issue. Please update WPML.
That's the WPML debug information, what I recommended is that you go through the steps in the URL I shared to activate the WordPress debug mode and get the full extra errors that are not shown by default on the screen.
For the WPML debug information, there's a special field that I am enabling below now in case you want to share that again, too.
But we don't share that private information publicly, only in the private field I am enabling below.
Let me jump here because I think that you have Google Site Kit installed on your site. Looking at the source code I can see <meta name="generator" content="Site Kit by Google 1.106.0" />.
We already fixed it and the patch will be implemented in the next WPML release (4.6.5) which is scheduled for beginning of next week. In the meantime, please downgrade to the previous version of Google Site Kit: hidden link
If you don't have to wait the new WPML release next week, you can also patch the code yourself (please make a backup first).
- Edit the file wp-content/plugins/sitepress-multilingual-cms/classes/url-handling/wpml-url-filters.class.php and replace:
if ( ! $this->is_display_as_translated_mode( $post_element ) && $post_element->is_translatable() ) {
Just a quick message to let you know that WPML 4.6.5 has been released already.
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.