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.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | - | - |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Yerevan (GMT+04:00)
This topic contains 6 replies, has 2 voices.
Last updated by Christopher Amirian 1 year, 10 months ago.
Assisted by: Christopher Amirian.
Author | Posts |
---|---|
September 8, 2023 at 9:02 am #14364783 | |
efthimiosF |
When I try to import products with wpallimport, I am getting the following error and the whole import proccess is stuck. AH01071: Got error 'PHP message: PHP Notice: Trying to get property 'status_id' of non-object in /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/post-translation/class-wpml-post-status.php on line 163PHP message: PHP Notice: Trying to get property 'transid' of non-object in /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/post-translation/class-wpml-post-status.php on line 173PHP message: WordPress database error Column 'translation_id' cannot be null for query INSERT INTO `wp_icl_translation_status` (`status`, `translation_id`) VALUES ('9', NULL) made by require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, pmxi_wp_loaded_99, Wpai\\Scheduling\\Import->process, PMXI_Import_Record->execute, PMXI_Import_Record->process, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, WPML_Media_Attachments_Duplication->save_post_actions, WPML_Media_Attachments_Duplication->sync_attachments, WPML_Media_Attachments_Duplication->duplicate_post_attachments, WPML_Media_Attachments_Duplication->create_duplicate_attachment, WPML_Model_Attachments->duplicate_attachment, WPML_Model_Attachments->add_language_information_to_attachment, WPML_Post_Status->set_statusPHP message: PHP Notice: Trying to get property 'status_id' of non-object in /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/post-translation/class-wpml-post-status.php on line 163PHP message: PHP Notice: Trying to get property 'transid' of non-object in /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/post-translation/class-wpml-post-status.php on line 173PHP message: WordPress database error Column 'translation_id' cannot be null for query INSERT INTO `wp_icl_translation_status` (`status`, `translation_id`) VALUES ('9', NULL) made by require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, pmxi_wp_loaded_99, Wpai\\Scheduling\\Import->process, PMXI_Import_Record->execute, PMXI_Import_Record->process, PMWI_Import_Record->import, wpai_woocommerce_add_on\\XmlImportWooCommerceProduct->import, wpai_woocommerce_add_on\\importer\\ProductsImporter->import, wpai_woocommerce_add_on\\importer\\products\\ImportVariableProduct->import, wpai_woocommerce_add_on\\importer\\products\\ImportVariableProduct->importParentProduct, wpai_woocommerce_add_on\\importer\\products\\ImportVariableProduct->initParentProduct, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, WPML_Media_Attachments_Duplication->save_post_actions, WPML_Media_Attachments_Duplication->sync_attachme...PHP message: PHP Notice: Trying to get property 'status_id' of non-object in /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/post-translation/class-wpml-post-status.php on line 163PHP message: PHP Notice: Trying to get property 'transid' of non-object in /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/post-translation/class-wpml-post-status.php on line 173PHP message: WordPress database error Column 'translation_id' cannot be null for query INSERT INTO `wp_icl_translation_status` (`status`, `translation_id`) VALUES ('9', NULL) made by require_once('wp-config.php'), require_once('wp-settings.php'), do_action('wp_loaded'), WP_Hook->do_action, WP_Hook->apply_filters, pmxi_wp_loaded_99, Wpai\\Scheduling\\Import->process, PMXI_Import_Record->execute, PMXI_Import_Record->process, PMWI_Import_Record->import, wpai_woocommerce_add_on\\XmlImportWooCommerceProduct->import, wpai_woocommerce_add_on\\importer\\ProductsImporter->import, wpai_woocommerce_add_on\\importer\\products\\ImportVariableProduct->import, wpai_woocommerce_add_on\\importer\\products\\ImportVariableProduct->importVariations, wpai_woocommerce_add_on\\importer\\products\\ImportProduct->save, WC_Product->save, WC_Data_Store->update, WC_Product_Variation_Data_Store_CPT->update, wp_update_post, wp_insert_post, do_action('save_post'), WP_Hook->do_action, WP_Hook->apply_filters, WPML_Media_Attachments_Duplication->save_p...PHP message: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-includes/class-wpdb.php on line 2425' I have same error like this: |
September 11, 2023 at 6:28 am #14372889 | |
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, I searched our forum and internal reports and the only instance I saw was a case in which the problem was caused by a custom code added in the Child Theme of the customer. So for now I'd appreciate it if you could test the import process in a copy/staging website as a test with the criteria below: - Change the website theme to 2020 or a default theme. Thanks. |
September 11, 2023 at 7:21 am #14373031 | |
efthimiosF |
Hi, I have already check that but same error. If I change the php version to 8.0.3, I get this error: AH01071: Got error 'PHP message: PHP Fatal error: Uncaught Exception: No trid for product variation in secondary language, imposssible to set _wcml_duplicate_of_variation in /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/wpml-all-import/wpml-all-import.php:325\nStack trace:\n#0 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-includes/class-wp-hook.php(312): WPAI_WPML->saved_post()\n#1 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()\n#2 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#3 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/wp-all-import-pro/models/import/record.php(4725): do_action()\n#4 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/wp-all-import-pro/controllers/admin/import.php(2799): PMXI_Import_Record->process()\n#5 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/wp-all-import-pro/wp-all-import-pro.php(763): PMXI_Admin_I...', referer: hidden link Could you help us? Thank you |
September 11, 2023 at 11:14 am #14375645 | |
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, The "_wcml_duplicate_of_variation" portion of the error gave me an idea, please make sure that the attributes of the products are already translated from Woocommerce > Woocommerce > Multilingual & Multicurrency > Attributes (tab). After that, please do the import but make sure you set the option mentioned below correctly:
See if it fixes the issue. Thanks. |
September 15, 2023 at 12:53 pm #14403335 | |
efthimiosF |
Hi, I am having the following error in the end of wpallimport process: AH01071: Got error 'PHP message: PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class WCML_Synchronize_Product_Data does not have a method "delete_empty_post_meta_for_translations" in /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-includes/class-wp-hook.php:312\nStack trace:\n#0 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()\n#1 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action()\n#2 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-includes/meta.php(528): do_action()\n#3 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-includes/post.php(2496): delete_metadata()\n#4 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/woocommerce/includes/data-stores/class-wc-product-variable-data-store-cpt.php(602): delete_post_meta()\n#5 /var/www/vhosts/b2b.catherinebijoux.com/httpdocs/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(2...' could you help us? |
September 15, 2023 at 12:54 pm #14403343 | |
efthimiosF |
Is something related to wpml or to wp all import? |
September 17, 2023 at 11:54 am #14408135 | |
Christopher Amirian WPML Supporter since 07/2020
Languages: English (English ) Timezone: Asia/Yerevan (GMT+04:00) |
Hi there, The second message you shared seems to be like the issue mentioned below: Would you please use the workaround there and see if the message goes away? Thanks. |
The topic ‘[Closed] Wpml + Wpallimport Problem’ is closed to new replies.