تخطي التنقل

الوسوم: 

يحتوي هذا الموضوع 0 ردود ، لديه 0أصوات.

آخر تحديث بواسطة vadimP قبل 3 أسابيع، 6 أيام.

يساعده: Dražen.

الكاتب المشاركات
يونيو 6, 2025 في 8:56 ص #17113152

vadimP

Background of the issue:
I am trying to resolve an issue with a site where we use WP All Import and WPML. The site started to fail during the cron process. It's strange because if I launch the import manually from the wp-admin dashboard, it works perfectly. However, when triggered with cron, it fails with an error. I have googled symptoms and asked ChatGPT, but there were no definite fixes available.

Symptoms:
PHP Fatal error: Uncaught Error: Class 'WPMLAIAttachments' not found in /var/www/vhosts/silvanols.lv/httpdocs/wp-content/plugins/wpml-all-import/wpml-all-import.php:277
Stack trace:
#0 /var/www/vhosts/silvanols.lv/httpdocs/wp-includes/class-wp-hook.php(324): WPAI_WPML->before_post_import()
#1 /var/www/vhosts/silvanols.lv/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#2 /var/www/vhosts/silvanols.lv/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /var/www/vhosts/silvanols.lv/httpdocs/wp-content/plugins/wp-all-import-pro/models/import/record.php(1828): do_action()
#4 /var/www/vhosts/silvanols.lv/httpdocs/wp-content/plugins/wp-all-import-pro/models/import/record.php(356): PMXI_Import_Record->process()
#5 /var/www/vhosts/silvanols.lv/httpdocs/wp-content/plugins/wp-all-import-pro/src/Scheduling/Import.php(78): PMXI_Import_Record->execute()
#6 /var/www/vhosts/silvanols.lv/httpdocs/wp-content/plugins/wp-all-import-pro/actions/wp_loaded_99.php(176): WpaiSchedulingImport->process()
#7 /var/www/ in /var/www/vhosts/silvanols.lv/httpdocs/wp-content/plugins/wpml-all-import/wpml-all-import.php on line 277

Questions:
Why does the import fail during the cron process but works manually?
How can I fix the 'Class 'WPMLAIAttachments' not found' error?