Skip Navigation

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 WPMLWPOptionManager {}

/**
* @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.

2 Responses to “Uncaught Error: Class 'WPML_Option_Manager' not found”

  1. Now I got the following message – sorry, but it seems to be a huge problem:

    Warning: class_implements(): Class WPML_TM_AMS_Check_Website_ID_Factory does not exist and could not be loaded in /www/htdocs/w00e2731/bootblack-shop.com/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-type.php on line 34

    Fatal error: Uncaught Error: Class ‘WPMLWPOptionManager’ not found in /www/htdocs/w00e2731/bootblack-shop.com/wp-content/plugins/wpml-translation-management/classes/ATE/Hooks/class-wpml-tm-ams-check-website-id-factory.php:3 Stack trace: #0 /www/htdocs/w00e2731/bootblack-shop.com/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php(444): include() #1 /www/htdocs/w00e2731/bootblack-shop.com/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile(‘/www/htdocs/w00…’) #2 [internal function]: Composer\Autoload\ClassLoader->loadClass(‘WPML_TM_AMS_Che…’) #3 [internal function]: spl_autoload_call(‘WPML_TM_AMS_Che…’) #4 /www/htdocs/w00e2731/bootblack-shop.com/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-type.php(34): class_implements(‘WPML_TM_AMS_Che…’) #5 /www/htdocs/w00e2731/bootblack-shop.com/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-l in /www/htdocs/w00e2731/bootblack-shop.com/wp-content/plugins/wpml-translation-management/classes/ATE/Hooks/class-wpml-tm-ams-check-website-id-factory.php on line 3

  2. Hi @urbanB,

    Could you please upgrade to WPML 4.2.7.1, String Translation 2.10.5.1 and Translation Management 2.8.6.1?

    If you have troubles to do this, please open a support ticket (https://wpml.org/forums/forum/english-support/) and we will assist you to do this.

    You can even paste the link to your support ticket here so I can follow and prioritize it.