Skip Navigation

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 1 reply, has 2 voices.

Last updated by Andrey 1 year, 9 months ago.

Assisted by: Andrey.

Author Posts
September 11, 2023 at 11:53 am #14375979

Alin

I am trying to: update an existing page

Link to a page where the issue can be seen: I can not link to a back office page

I expected to see: saved changes

Instead, I got: Error code 500

Here is the error log:

Here is the error code:

[11-Sep-2023 11:40:00 UTC] PHP Fatal error: Uncaught TypeError: array_filter(): Argument #1 ($array) must be of type array, bool given in /.../wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php:319
Stack trace:
#0 /.../wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php(319): array_filter(false)
#1 /.../wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php(92): WPML_Element_Translation_Package->add_custom_field_contents(Array, NULL, Array, NULL)
#2 /.../wp-content/plugins/sitepress-multilingual-cms/inc/actions/wpml-tm-action-helper.class.php(13): WPML_Element_Translation_Package->create_translation_package(NULL)
#3 /.../wp-content/plugins/sitepress-multilingual-cms/inc/actions/wpml-tm-post-actions.class.php(72): WPML_TM_Action_Helper->create_translation_package('56')
#4 /.../wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php(942): WPML_TM_Post_Actions->save_post_actions(2662, Object(WP_Post), false)
#5 /.../wp-includes/class-wp-hook.php(310): wpml_tm_save_post(2662, Object(WP_Post), false)
#6 /.../wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
#7 /.../wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /.../wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-post-translation.class.php(213): do_action('wpml_tm_save_po...', 2662, Object(WP_Post), false)
#9 /.../wp-content/plugins/sitepress-multilingual-cms/inc/post-translation/wpml-admin-post-actions.class.php(123): WPML_Post_Translation->after_save_post('56', Array, 'ro', 'en')
#10 /.../wp-includes/class-wp-hook.php(312): WPML_Admin_Post_Actions->save_post_actions(2662, Object(WP_Post))
#11 /.../wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#12 /.../wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#13 /.../wp-includes/post.php(4751): do_action('save_post', 2662, Object(WP_Post), true)
#14 /.../wp-includes/post.php(4853): wp_insert_post(Array, false, true)
#15 /.../wp-content/plugins/elementor/core/settings/page/manager.php(353): wp_update_post(Array)
#16 /.../wp-content/plugins/elementor/core/settings/page/manager.php(122): Elementor\Core\Settings\Page\Manager->save_post_status(2662, 'publish')
#17 /.../wp-content/plugins/elementor/core/base/document.php(1688): Elementor\Core\Settings\Page\Manager->ajax_before_save_settings(Array, 2662)
#18 /.../wp-content/plugins/elementor/core/base/document.php(746): Elementor\Core\Base\Document->save_settings(Array)
#19 /.../wp-content/plugins/elementor/core/documents-manager.php(545): Elementor\Core\Base\Document->save(Array)
#20 [internal function]: Elementor\Core\Documents_Manager->ajax_save(Array, Object(Elementor\Core\Common\Modules\Ajax\Module))
#21 /.../wp-content/plugins/elementor/core/common/modules/ajax/module.php(175): call_user_func(Array, Array, Object(Elementor\Core\Common\Modules\Ajax\Module))
#22 /.../wp-includes/class-wp-hook.php(310): Elementor\Core\Common\Modules\Ajax\Module->handle_ajax_request('')
#23 /.../wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#24 /.../wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#25 /.../wp-admin/admin-ajax.php(188): do_action('wp_ajax_element...')
#26 {main}
thrown in /.../wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/class-wpml-element-translation-package.php on line 319

September 11, 2023 at 6:30 pm #14379173

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Could you please update your WPML plugin to the latest version 4.6.6 and add-ons to benefit from the latest bug fixes and improvements? This may not necessarily resolve your problem, however, in order to troubleshoot the issue best we need to work on the latest code available.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

Please remember to backup your database first before you proceed! You can use a plugin for this if you like (example: http://wordpress.org/plugins/duplicator/)

Let me know if the issue persists after an update has been done.

I would strongly recommend updating the PHP version on your server to meet the minimum requirements.
https://wordpress.org/about/requirements/