Skip to content Skip to sidebar

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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Kyiv (GMT+03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Alejandro 1 year, 9 months ago.

Assisted by: Andrey.

Author Posts
November 14, 2023 at 8:46 pm #14802621

tomasT-12

I'm installing WPML Multilingual CMS and String Translation but it breaks the site and I'm receiving a email with the following error message:

Uppgifter om felet
==================
Ett fel av typen E_ERROR uppstod på rad 28 i följande fil: /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/sticky-posts/wpml-sticky-posts-lang-filter.php. Felorsak: Uncaught TypeError: WPML_Sticky_Posts_Lang_Filter::filter_by_language(): Argument #1 ($posts) must be of type array, string given, called in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/sticky-posts/wpml-sticky-posts-sync.php on line 45 and defined in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/sticky-posts/wpml-sticky-posts-lang-filter.php:28
Stack trace:
#0 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/sticky-posts/wpml-sticky-posts-sync.php(45): WPML_Sticky_Posts_Lang_Filter->filter_by_language()
#1 /var/www/html/wp-includes/class-wp-hook.php(322): WPML_Sticky_Posts_Sync->pre_option_sticky_posts_filter()
#2 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters()
#3 /var/www/html/wp-includes/option.php(132): apply_filters()
#4 /var/www/html/wp-includes/class-wp-query.php(3472): get_option()
#5 /var/www/html/wp-includes/class-wp-query.php(3824): WP_Query->get_posts()
#6 /var/www/html/wp-includes/post.php(2452): WP_Query->query()
#7 /var/www/html/wp-content/plugins/fusion-builder/shortcodes/fusion-contact-form7.php(26): get_posts()
#8 /var/www/html/wp-content/plugins/fusion-builder/shortcodes/fusion-contact-form7.php(69): fusion_builder_get_cf7_forms()
#9 /var/www/html/wp-includes/class-wp-hook.php(324): fusion_element_cf7()
#10 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#11 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()
#12 /var/www/html/wp-content/plugins/fusion-builder/inc/class-fusion-builder.php(357): do_action()
#13 /var/www/html/wp-content/plugins/fusion-builder/inc/class-fusion-builder.php(319): FusionBuilder->init()
#14 /var/www/html/wp-content/plugins/fusion-builder/inc/class-fusion-builder.php(286): FusionBuilder->__construct()
#15 /var/www/html/wp-content/plugins/fusion-builder/inc/bootstrap.php(41): FusionBuilder::get_instance()
#16 /var/www/html/wp-includes/class-wp-hook.php(324): fusion_builder_activate()
#17 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#18 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action()
#19 /var/www/html/wp-settings.php(621): do_action()
#20 /var/www/html/wp-config.php(82): require_once('...')
#21 /var/www/html/wp-load.php(50): require_once('...')
#22 /var/www/html/wp-admin/admin.php(34): require_once('...')
#23 /var/www/html/wp-admin/plugins.php(10): require_once('...')
#24 {main}
thrown

I'm not using Site Kit. I have thought - but it's uninstalled.

For info - have earlier used Polylang but have uninstalled it.

November 15, 2023 at 11:16 am #14807405

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello!

I'm going to help you get started while a supporter takes your case.

It seems this error came from the "sticky links" plugin which is not a required one (and in many cases it's not needed). you can disable and delete it if you are not using it, otherwise make sure WPML is correctly configured and then make sure sticky links is also configured: https://wpml.org/documentation/getting-started-guide/sticky-links/

------------------

In order to continue, i'd kindly ask you to send me the debug info, in case you manage to access your back-end with WPML enabled. here's a guide that shows you how you can do that: https://wpml.org/faq/provide-debug-information-faster-support/

Try it out and let us know how it goes.

The topic ‘[Closed] WPML breaks the site’ is closed to new replies.