This thread is resolved. Here is a description of the problem and solution.
Problem: The client encountered a critical error while translating a post using WPML. The error message indicated that the class
WPML_Translation_Jobs_Migration_Repository
was not found in a specific file on their site. Solution: If you're experiencing a similar issue where a class is not found, we recommend checking the file where the class should be located. In this case, the class
. Please download a fresh copy of the WPML plugin and compare the files to ensure they are correct. After verifying the files, reinstall the plugin on your site to see if the issue is resolved. For detailed instructions on how to provide debug information, you can follow our documentation: https://wpml.org/faq/provide-debug-information-faster-support/
I have noted a lot of touble using WPML recently
Now a new critical error . I was translating a post via WPML tab when it occured
Un errore di E_ERROR è stato causato nella linea 8 del file /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/classes/notices/translation-jobs-migration/class-wpml-tm-troubleshooting-fix-translation-jobs-tp-id-factory.php. Messaggio di errore: Uncaught Error: Class "WPML_Translation_Jobs_Migration_Repository" not found in /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/classes/notices/translation-jobs-migration/class-wpml-tm-troubleshooting-fix-translation-jobs-tp-id-factory.php:8 Stack trace: #0 /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(148): WPML_TM_Troubleshooting_Fix_Translation_Jobs_TP_ID_Factory->create() #1 /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(96): WPML_Action_Filter_Loader->run_factory() #2 /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(80): WPML_Action_Filter_Loader->load_factory() #3 /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(51): WPML_Action_Filter_Loader->load_factory_or_action() #4 /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/tm.php(161): WPML_Action_Filter_Loader->load() #5 /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-hook.php(324): wpml_tm_load() #6 /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /web/htdocs/www.pievedepitti.it/home/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /web/htdocs/www.pievedepitti.it/home/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(523): do_action() #9 /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-hook.php(324): SitePress->init() #10 /web/htdocs/www.pievedepitti.it/home/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #11 /web/htdocs/www.pievedepitti.it/home/wp-includes/plugin.php(517): WP_Hook->do_action() #12 /web/htdocs/www.pievedepitti.it/home/wp-settings.php(506): do_action() #13 /web/htdocs/www.pievedepitti.it/home/wp-config.php(95): require_once('...') #14 /web/htdocs/www.pievedepitti.it/home/wp-load.php(50): require_once('...') #15 /web/htdocs/www.pievedepitti.it/home/wp-admin/admin-ajax.php(22): require_once('...') #16 {main} thrown
please not that I have deactivated, deleted, downloaded a new version, installed a fresh copy of WPML and all related plugins just a couple of weeks ago, as suggested by support on ticket #14701849
1) In order to expedite handling your support requests, can you please share WPML support debug information from your site.
- To give debug information, login to your site and go to WPML → Support. From there click on the “debug information” link at the bottom of the page.
- Once on the “debug information” page, select the entire content of the text box and copy it.
- Now go back to our support forum, find debug information box and paste it.
2) Please try again to delete the plugin files and manually download and upload the latest version, via FTP, as it seems as per the error some files are missing.
Hi Drazen
here you hace debug. Regarding poin2, I did it already two weeks ago. So make no sense to do it once again because it means there is something that corrupts files continuously....
I'm not sure what happened on your site but the error indicates that the class "WPML_Translation_Jobs_Migration_Repository" is not found in the file
/wp-content/plugins/sitepress-multilingual-cms/classes/notices/translation-jobs-migration/class-wpml-tm-troubleshooting-fix-translation-jobs-tp-id-factory.php line 8
which is not correct, the class is located in the file
/wp-content/plugins/sitepress-multilingual-cms/classes/notices/translation-jobs-migration/class-wpml-translation-jobs-migration-repository.php
You can download a fresh copy of the WPML plugin to your site, open the files and recheck this. Then re-install it on your site and see how it goes.
The recommended permission of the folder /wp-content/ and subfolders is 755. But you can try to change the permission and see how it goes. Or contact your hosting support and ask them to check why the file or plugin folder is modified.
Please read more about WordPress file permission here hidden link