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.

Please make sure to update to WPML to the latest and check our list of Known Issues before reporting

This topic contains 101 replies, has 39 voices.

Last updated by George Botsev 1 year, 8 months ago.

Assigned support staff: George Botsev.

Author Posts
June 7, 2018 at 11:24 am #2394625

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+03:00)

Hello
This is George from the support team bringing you this news bulletin

We have seen a few reports of a fatal error after an update of WPML plugin.
If you have debugging enabled in WordPress, then you might see that the error is something like this:

Fatal error:  Method WPML_Admin_Menu_Item::__toString() must return a string value

You can find a fix in our errata page here: https://wpml.org/errata/fatal-error-upgrading-wpml-method-wpml_admin_menu_item__tostring-must-return-a-string-value/

If you have the same issue, no need to open a new support ticket, you are welcome to register for this ticket and I will keep you updated as soon as we have any news.

Thanks!

June 7, 2018 at 11:38 am #2394863

peterK-11

My error message after latest update says what you can see in the attached screenshot.

June 7, 2018 at 11:43 am #2394955

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+03:00)

@peterk-11 Please try with the latest update (released less than a hour) of WPML 4.0.1 and WPML Media 2.3.1.
I think it should fix the problems that you have there.

June 7, 2018 at 11:44 am #2394976

peterK-11

George, my problem is that I cannot access the wp-admin page since all I get is the fatal error message. Is there some other way?

June 7, 2018 at 11:46 am #2394997

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+03:00)

I am sorry for the problem that you are encountering. If you cannot access the admin page, I recommend that you either use your hosting panel file manager and remove or rename the media translation plugin or do that via FTP.

June 7, 2018 at 11:54 am #2395192

peterK-11

It works now. Thank you for your help George!

June 7, 2018 at 12:00 pm #2395295

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+03:00)

Glad to hear that it works!
You are always welcome!

June 7, 2018 at 12:32 pm #2395866

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+03:00)

Okay as promissed here is the errata page for this issue that we have found: https://wpml.org/errata/fatal-error-upgrading-wpml-method-wpml_admin_menu_item__tostring-must-return-a-string-value/
In that page, there is also a workaround/fix that you could give a try.

June 7, 2018 at 12:53 pm #2396250

Veerle Delporte

Hi, I haven't received an error message after updating the plugin, however the 'properties' admin page of RealHomes has comletely disappeared. Would your code fix this?

June 7, 2018 at 12:54 pm #2396255

kurtP

Fatal error: Class 'WPML_Privacy_Content' not found in /web/htdocs/www.pareggerpartner.com/home/wp-content/plugins/wpml-media-translation/classes/privacy/class-wpml-media-privacy-content.php on line 6

Big problem: i can't access the wp admin page or dashbord anymore - i'm needing urgently support with helpful easy solutions. Many Thanks Kurti

June 7, 2018 at 12:57 pm #2396266

valerieK-3

Hello, I couldn't update all plugins only WPML Multilingual CMS. WPML String Translation, WPML Media and so on shows a failure. I can reach the backend. But after updating WPML Multilingual CMS I can't put any product in to the cart.

Update: I have deactivated all WPML Plugins and the cart is working like before.
I will wait for the next update.

June 7, 2018 at 1:12 pm #2396353

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+03:00)

@veerle Delporte I suggest that you enable debugging in WordPress and open a new ticket as this could be a compatibility issue.
To enable debugging you need to set these options in wp-config.php
above the line that says:

// Turn debugging on 
define('WP_DEBUG', true); 
// Tell WordPress to log everything to /wp-content/debug.log 
define('WP_DEBUG_LOG', true); 
// Turn off the display of error messages on your site 
define('WP_DEBUG_DISPLAY', false); 
// For good measure, you can also add the follow code, which will hide errors from being displayed on-screen 
@ini_set('display_errors', 0); 

@kurtp If you cannot access the dashboard, you can either use your hosting panel file manager or FTP and go to /wp-content/plugins/ and either rename or delete the wpml-media-translation plugin. This will not make you lose any information and once it is done - you can re-install the latest version that has a fix for this.

@valeriek-3 You might be having a separate compatibility issue.
I suggest that you do these steps:
-Check if you are using all latest versions
-Test in a minimal setup - only WooCommerce and WPML plugins perhaps?
-Check with a default theme like TwentySeventeen
If that does not help - I suggest enabling the debug in WordPress and checking for errors and opening a new ticket in our forum.

June 7, 2018 at 1:19 pm #2396368

valerieK-3

Hello George Botsev,
the problem is not a compatibility issue it is the incorrect update you offered. After deactivating all WPML plugins everything works fine.

June 7, 2018 at 2:06 pm #2396628

George Botsev
Supporter

Languages: English (English )

Timezone: Europe/Sofia (GMT+03:00)

Please follow my suggestions @valeriek-3
If it is not working and it is not related to this topic here, please open a new ticket and our support specialist will handle at first opportunity.

June 7, 2018 at 2:23 pm #2396694

Joeri

Same problem here, site not showing (front-end) WordPress is working but tried installing new versions, same result. Also not possible to update database (icon keeps spinning). Any suggestions? Thanks