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: Bug
This topic contains 2 replies, has 2 voices.
Last updated by Kor 1 year, 11 months ago.
Assisted by: Kor.
Author | Posts |
---|---|
July 14, 2023 at 5:20 pm | |
jorritV-4 |
Hi there! I have run into a problem trying to translate a WooCommerce product. I get a critical WordPress error. First it was due to an outdated plugin, but now I get this: Class "WPML_Attachments_Urls_With_Identical_Slugs" not found in /var/www/vhosts/smokinghot.eu/httpdocs/nl/wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-attachments-urls-with-identical-slugs-factory.php:15 |
July 14, 2023 at 6:24 pm | |
July 14, 2023 at 6:25 pm #14041237 | |
Kor WPML Supporter since 08/2022
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your reply. Here is the ticket. I will check and revert to you as quickly as possible. |
July 14, 2023 at 6:28 pm #14041243 | |
Kor WPML Supporter since 08/2022
Languages: English (English ) Timezone: Asia/Singapore (GMT+08:00) |
Thanks for your patience. It seems to work when I switch themes. Check out the translation now hidden link . The error is pointing toward this file wp-content/themes/flatsome-child/functions.php on line 732 . Could you check? [14-Jul-2023 18:25:49 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_type() on null in /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/themes/flatsome-child/functions.php:732 Stack trace: #0 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-includes/class-wp-hook.php(308): luc_change_variable_price_display('<span class="wo...', Object(WC_Product_Variation)) #1 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-includes/plugin.php(205): WP_Hook->apply_filters('<span class="wo...', Array) #2 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php(1880): apply_filters('woocommerce_get...', '<span class="wo...', Object(WC_Product_Variation)) #3 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php(396): WC_Product->get_price_html() #4 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/woocommerce/includes/class-wc-product-variable.php(326): WC_Product_Variable->get_available_variation(Object(WC_Product_Variation)) #5 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/woocommerce-multilingual/inc/class-wcml-products.php(137): WC_Product_Variable->get_available_variations() #6 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php(246): WCML_Products->is_downloadable_product(Object(WC_Product_Variable)) #7 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-editor-ui-product-job.php(86): WCML_Editor_UI_Product_Job->add_elements() #8 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/woocommerce-multilingual/inc/translation-editor/class-wcml-translation-editor.php(53): WCML_Editor_UI_Product_Job->__construct(Array, Object(woocommerce_wpml), Object(SitePress), Object(wpdb)) #9 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-includes/class-wp-hook.php(308): WCML_Translation_Editor->fetch_translation_job_for_editor(NULL, Array) #10 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array) #11 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-editor/class-wpml-translation-editor-ui.php(342): apply_filters('wpml-translatio...', NULL, Array) #12 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-editor/class-wpml-translation-editor-ui.php(185): WPML_Translation_Editor_UI->filter_the_model(Array) #13 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-editor/class-wpml-translation-editor-ui.php(91): WPML_Translation_Editor_UI->output_model() #14 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-queue/class-wpml-translations-queue.php(78): WPML_Translation_Editor_UI->render() #15 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/plugins/sitepress-multilingual-cms/classes/class-wpml-translation-management.php(379): WPML_Translations_Queue->display() #16 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-includes/class-wp-hook.php(308): WPML_Translation_Management->translation_queue_page('') #17 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #18 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #19 /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-admin/admin.php(259): do_action('wpml_page_tm/me...') #20 {main} thrown in /var/www/vhosts/smokinghot.eu/staging.smokinghotxl.nl/wp-content/themes/flatsome-child/functions.php on line 732 |
July 15, 2023 at 10:29 am #14042345 | |
jorritV-4 |
Thank you for your support. The problem has been fixed! It was an error in one of my custom functions. Changing the get_type to is_type in the logic of the function resolved it. |