WPML
Status
Resolved
Resolved in
4.2.7.1

Overview of the issue

You might get the following PHP error if you update the Sitepress Multilingual CMS plugin before WPML Translation Management:

Uncaught Error: Class 'WPML_Option_Manager' not found in .../wp-content/plugins/wpml-translation-management/classes/ATE/Hooks/class-wpml-tm-ams-check-website-id-factory.php on line 9

 

Workaround

There are two workarounds you can use if you run into this error:

1. Apply the patch for this issue manually

Edit the class-wpml-tm-ams-check-website-id-factory.php file found in the ../wp-content/plugins/wpml-translation-management/classes/ATE/Hooks/ folder.

In this file, replace the following lines:


/**
* @author OnTheGo Systems
*/
class WPML_TM_AMS_Check_Website_ID_Factory implements IWPML_Backend_Action_Loader {

With:


class WPML_Option_Manager extends WPML\WP\OptionManager {}

/**
* @author OnTheGo Systems
*/
class WPML_TM_AMS_Check_Website_ID_Factory implements IWPML_Backend_Action_Loader {

2. Open a support ticket

One of our supporters will help you apply the patch.

All known issues →