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.
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
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
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.