Skip Navigation

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

WPML_Translation_Jobs_Migration_Repository

should be in the file

/wp-content/plugins/sitepress-multilingual-cms/classes/notices/translation-jobs-migration/class-wpml-translation-jobs-migration-repository.php

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

If this solution doesn't look relevant to your issue, please open a new support ticket in our forum: https://wpml.org/forums/forum/english-support/

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.

Tagged: 

This topic contains 5 replies, has 3 voices.

Last updated by Long Nguyen 1 year ago.

Assisted by: Long Nguyen.

Author Posts
November 15, 2023 at 12:42 pm #14808223

caterinag-2

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

November 16, 2023 at 7:52 am #14822399

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

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.

More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/

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.

- https://wpml.org/download/wpml-multilingual-cms/?section=changelog
- https://wpml.org/account/downloads/

Let us know how it goes.

Regards,
Drazen

November 16, 2023 at 9:41 am #14823823

caterinag-2

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....

[supporter removed]

November 17, 2023 at 4:06 am #14831605

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Caterina,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Please add the debug info to its box in your next reply, don't add it to your reply content, following the documentation https://wpml.org/faq/provide-debug-information-faster-support/

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.

Look forward to your reply.
Thanks

November 20, 2023 at 9:58 am #14874785

caterinag-2

Ok.. Once replaced, can I modify permission so de the folder cannot be edited somehow?

November 21, 2023 at 1:26 am #14881341

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

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

Thanks.