Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
After restoring a backup, the following error appears:

Fatal error: Uncaught Error: Interface 'WPML_Log' not found in /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-config-update-log.php:6

Solution:
This is probably happening due to some missing/corrupted files after the backup restore. Please try the following:

1. Delete the "sitepress-multilingual-cms" plugin folder from the plugins directory
2. Go to the WP dashboard and deactivate the other WPML plugins
3. Download a new version of the "WPML Multilingual CMS" plugin from https://wpml.org/account/downloads/
4. Extract and upload it to the plugins folder
5. Activate it

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.

This topic contains 2 replies, has 2 voices.

Last updated by katerinaP-3 2 years, 3 months ago.

Assisted by: Mohamed Sayed.

Author Posts
January 5, 2022 at 8:31 am #10289601

katerinaP-3

Hi there, we had to do a restore of our site from the backup, specifically all folders under public_html and the database. It was the first time we did this on a site running wpml. After the restore we are getting a fatal error and the site will not run. The debug info is from WP debug as we can not access the plugin debug info. Any ideas?

DEBUG INFO
Warning: include(/home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/../../classes/logs/interface-wpml-log.php): failed to open stream: No such file or directory in /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444

Warning: include(): Failed opening '/home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/../../classes/logs/interface-wpml-log.php' for inclusion (include_path='.:/opt/alt/php74/usr/share/pear') in /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php on line 444

Fatal error: Uncaught Error: Interface 'WPML_Log' not found in /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-config-update-log.php:6 Stack trace: #0 /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php(444): include() #1 /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/photopuzz...') #2 [internal function]: Composer\Autoload\ClassLoader->loadClass('WPML_Config_Upd...') #3 /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/log/class-wpml-xml-config-log-ui-factory.php(11): spl_autoload_call('WPML_Config_Upd...') #4 /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(267): WPML_XML_Config_Log_Factory->create_log() #5 /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/auryn/lib/Injector.php in /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-config-update-log.php on line 6

Fatal error: Uncaught Error: Call to a member function get_requested_lang() on null in /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:1119 Stack trace: #0 /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-wpml-locale.php(106): SitePress->get_current_language() #1 /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(3300): WPML_Locale->locale() #2 /home/photopuzzle/public_html/wp-includes/class-wp-hook.php(303): SitePress->locale_filter('el') #3 /home/photopuzzle/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('el', Array) #4 /home/photopuzzle/public_html/wp-includes/l10n.php(80): apply_filters('locale', 'el') #5 /home/photopuzzle/public_html/wp-includes/l10n.php(137): get_locale() #6 /home/photopuzzle/public_html/wp-includes/l10n.php(828): determine_locale() #7 /home/photopuzzle/public_html/wp-includes/class-wp-fatal-error-handler.php(46): load_default_textdomain() # in /home/photopuzzle/public_html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 1119

January 5, 2022 at 10:50 am #10290593

Mohamed Sayed

Hi Katerina,
Thanks for contacting WPML support, I will be happy to help you.

This is probably happening due to some missing/corrupted files after the backup restore. Please try the following:

1. Delete the "sitepress-multilingual-cms" plugin folder from the plugins directory
2. Go to the WP dashboard and deactivate the other WPML plugins
3. Download a new version of the "WPML Multilingual CMS" plugin from https://wpml.org/account/downloads/
4. Extract and upload it to the plugins folder
5. Activate it

Let me know please how it goes.

Regards,
Mohamed

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.