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 6 replies, has 0 voices.
Last updated by martinR-109 4 days ago.
Assisted by: Łukasz Rydygel.
| Author | Posts |
|---|---|
| January 30, 2026 at 10:53 am #17777281 | |
|
martinR-109 |
Cannot enable plugin, site breaks instantly: Ein Fehler vom Typ E_ERROR wurde in der Zeile 154 der Datei /var/www/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php verursacht. Fehlermeldung: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:154 |
| January 30, 2026 at 11:08 am #17777465 | |
|
Łukasz Rydygel Supporter Languages: English (English ) German (Deutsch ) Timezone: Europe/Warsaw (GMT+01:00) |
Hello Martin, thank you for reaching out. My name is Lukas and I am a developer at WPML. We’d be happy to help you further. To properly investigate the issue, we’ll need a bit more information from your side. If possible, please provide us with the following: We are currently experiencing some technical issues with one of our services, so it’s possible that this could be contributing to the behavior you’re seeing. However, we’d still like to take a closer look, which is why we need the data mentioned above. Also, if you prefer, we’re happy to continue the conversation in German. Looking forward to your reply. Best regards, |
| January 30, 2026 at 1:11 pm #17778264 | |
|
martinR-109 |
Is there a way to manually disable automatic translation? This should help me get back into the backend. |
| January 30, 2026 at 1:37 pm #17778427 | |
|
Łukasz Rydygel Supporter Languages: English (English ) German (Deutsch ) Timezone: Europe/Warsaw (GMT+01:00) |
Hallo Martin, zunächst ist uns aufgefallen, dass auf Ihrer Seite aktuell PHP in der Version 8.5.2 verwendet wird. Leider unterstützt WPML derzeit nur PHP-Versionen bis einschließlich 8.3. Falls möglich, bitten wir Sie daher, die PHP-Version auf 8.3 umzustellen und anschließend zu prüfen, ob das Problem weiterhin auftritt. Alternativ haben Sie auch die Möglichkeit, die automatischen Übersetzungen in den WPML-Einstellungen zu deaktivieren. In diesem Fall würden ausschließlich manuelle Übersetzungen verwendet. Bitte geben Sie uns Bescheid, ob eine der beiden Optionen für Sie umsetzbar ist oder falls Sie dabei Unterstützung benötigen. Viele Grüße, |
| January 30, 2026 at 1:47 pm #17778434 | |
|
martinR-109 |
Mit PHP 8.3 kommt der gleiche Fehler. Ich habe keinen Zugriff auf die WPML-Einstellungen, das Backend geht nicht, sobald das Plugin aktiv ist. Deshalb kann ich die Einstellungen nicht ändern. kann ich irgendwie manuell, ausserhalb von wp-admin den grossen Schieber für die automatische Übersetzung der ganzen Website deaktivieren? Ich denke das könnte das Problem sein. 2026-01-30T13:47:04+00:00 CRITICAL Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /var/www/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:154 CONTEXT: {"error":{"type":1,"file":"/var/www/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php","line":154},"remote-logging":true,"backtrace":["","#0 [internal function]: count(NULL)","#1 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array('count', Array)","#2 [internal function]: WPML\FP\Lst::WPML\FP\{closure}(NULL)","#3 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)","#4 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/automatic-translation/AutomaticTranslationJobCreationFailureNotice.php(91): WPML\FP\Lst::__callStatic('length', Array)","#5 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/automatic-translation/AutomaticTranslationJobCreationFailureNotice.php(64): WPML\TM\AutomaticTranslation\Actions\AutomaticTranslationJobCreationFailureNotice->deleteElementsThatHaveJobsCreated()","#6 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/automatic-translation/AutomaticTranslationJobCreationFailureNotice.php(43): WPML\TM\AutomaticTranslation\Actions\AutomaticTranslationJobCreationFailureNotice->updateNotice()","#7 [internal function]: WPML\TM\AutomaticTranslation\Actions\AutomaticTranslationJobCreationFailureNotice->__construct(Object(WPML_Translation_Element_Factory), Object(WPML_Notices))","#8 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/auryn/lib/Injector.php(415): ReflectionClass->newInstanceArgs(Array)","#9 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/vendor/otgs/auryn/lib/Injector.php(373): WPML\Auryn\Injector->provisionInstance('WPML\\TM\\Automat...', 'wpml\\tm\\automat...', Array)","#10 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/container/class-wpml-container.php(98): WPML\Auryn\Injector->make('WPML\\TM\\Automat...', Array)","#11 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/container/functions.php(29): WPML\Container\Container::make('WPML\\TM\\Automat...', Array)","#12 [internal function]: WPML\Container\{closure}('WPML\\TM\\Automat...')","#13 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)","#14 [internal function]: WPML\FP\{closure}('WPML\\TM\\Automat...')","#15 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/container/functions.php(35): call_user_func_array(Object(Closure), Array)","#16 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/automatic-translation/AutomaticTranslationJobCreationFailureNoticeFactory.php(11): WPML\Container\make('WPML\\TM\\Automat...')","#17 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(148): WPML\TM\AutomaticTranslation\Actions\AutomaticTranslationJobCreationFailureNoticeFactory->create()","#18 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(96): WPML_Action_Filter_Loader->run_factory(Object(WPML\TM\AutomaticTranslation\Actions\AutomaticTranslationJobCreationFailureNoticeFactory))","#19 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(80): WPML_Action_Filter_Loader->load_factory(Object(WPML\TM\AutomaticTranslation\Actions\AutomaticTranslationJobCreationFailureNoticeFactory))","#20 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/classes/action-filter-loader/class-wpml-action-filter-loader.php(51): WPML_Action_Filter_Loader->load_factory_or_action('WPML\\TM\\Automat...', false)","#21 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/tm.php(131): WPML_Action_Filter_Loader->load(Array)","#22 /var/www/html/wp-includes/class-wp-hook.php(341): wpml_tm_load(Object(SitePress))","#23 /var/www/html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)","#24 /var/www/html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)","#25 /var/www/html/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php(527): do_action('wpml_loaded', Object(SitePress))","#26 /var/www/html/wp-includes/class-wp-hook.php(341): SitePress->init('')","#27 /var/www/html/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters(NULL, Array)","#28 /var/www/html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)","#29 /var/www/html/wp-settings.php(593): do_action('plugins_loaded')","#30 /var/www/html/wp-config.php(120): require_once('/var/www/html/w...')","#31 /var/www/html/wp-load.php(50): require_once('/var/www/html/w...')","#32 /var/www/html/wp-admin/admin-ajax.php(22): require_once('/var/www/html/w...')","#33 {main}","thrown"]} |
| January 30, 2026 at 2:05 pm #17778470 | |
|
Łukasz Rydygel Supporter Languages: English (English ) German (Deutsch ) Timezone: Europe/Warsaw (GMT+01:00) |
Hallo Martin, vielen Dank für dein Update. Ich werde mir das Problem im Detail anschauen und melde mich so bald wie möglich mit einer Lösung bei dir. Ich danke dir bis dahin für deine Geduld. Viele Grüße, |
| January 30, 2026 at 3:56 pm #17778905 | |
|
Łukasz Rydygel Supporter Languages: English (English ) German (Deutsch ) Timezone: Europe/Warsaw (GMT+01:00) |
Hallo Martin, der von dir beschriebene Fehler wird aktuell im Code behoben. Damit er bis dahin nicht erneut auftritt, möchte ich dich bitten, folgende Anpassung im Code vorzunehmen. Bitte öffne dazu auf dem Server die folgende Datei: Ersetze dort in Zeile 37 den bisherigen Inhalt durch: $this->jobFailedElements = $optionVal ? json_decode( $optionVal, true ) : []; Gib uns gern Bescheid, falls wir dich dabei noch unterstützen können. Viele Grüße |
| January 30, 2026 at 4:11 pm #17778931 | |
|
martinR-109 |
Hallo Lukas, Besten Dank. Ich kann nun wieder auf das Backend zugreifen. Vielen Dank. |