- Status
- Resolved
- Reported for
- WPML Multilingual CMS 4.0.0
- Resolved in
- WPML Multilingual CMS 4.0.2
Overview of the issue
When upgrading WPML, you might encounter the following error:
Catchable fatal error: Method WPML_Admin_Menu_Item::__toString() must return a string value ...
Workaround
This issue will be fixed in the next WPML release.
Until then, you can apply the following fix.
1. Edit the class-wpml-admin-menu-item.php file found in the ../wp-content/plugins/sitepress-multilingual-cms/classes/admin-menu/ folder.
2. Replace the code found in the function serialize() from this:
To this: