Navigation überspringen

Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.

Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.

Schlagwörter: 

Dieses Thema enthält 3 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Prosenjit Barman Vor 1 Jahr, 8 Monaten.

Assistiert von: Prosenjit Barman.

Autor Beiträge
Oktober 2, 2023 um 8:04 am #14495223

danielB-259

Ich versuche: Eine neue Übersetzung für eine Seite zu erstellen, die Bricks als Grundlage nutzt.

URL der/meiner Website, auf der das Problem auftritt: versteckter Link

Erwartet hatte ich zu sehen: Eine Eingabemaske zum Erstellen von Übersetzungen

Stattdessen bekam ich: Einen kritischen Fehler

Bildschirmfoto 2023-10-02 um 10.01.50.png
Bildschirmfoto 2023-10-02 um 09.58.44.png
Oktober 2, 2023 um 9:04 am #14496213

Prosenjit Barman
WPML-Unterstützer seit 03/2023

Sprachen: Englisch (English )

Zeitzone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support. I will try my best to assist you in this matter.

As we currently have a high volume of tickets in the German support forum, I took this ticket and responded in English to reduce the queue. Please let me know if you're okay with it or want me to assign this ticket to one of my German-speaking colleagues. I will be happy to do that for you.

Could you please enable the WordPress debug log on your site and check if any errors are getting recorded there? You can check the documentation below to understand the process-

- https://wpml.org/documentation/support/debugging-wpml/

After enabling the debug log, try to translate the page once more so that the error gets recorded in the log file.

Then, navigate to your site's directory using the File Manager, and you should find a "debug.log" file in the "/wp-content" directory. Please copy the content from this file and share it in your next message. I'll review it and guide you on the next steps.

Looking forward to your response.

Best regards,
Prosenjit

Oktober 2, 2023 um 9:17 am #14496303

danielB-259

Thank you for your quick response.

Here's the debug.log:

[02-Oct-2023 09:13:52 UTC] PHP Fatal error: Uncaught TypeError: strlen(): Argument #1 ($string) must be of type string, array given in /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/wpml-string-translation/classes/filters/strings-filter/class-wpml-register-string-filter.php:205
Stack trace:
#0 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/wpml-string-translation/classes/filters/strings-filter/class-wpml-register-string-filter.php(184): WPML_Register_String_Filter->save_string(Array, false, 'de', 'bricks-9', '', 'tyjpbd_link')
#1 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/wpml-string-translation/inc/functions.php(214): WPML_Register_String_Filter->register_string('', 'tyjpbd_link', Array, false, 'de')
#2 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/wpml-string-translation/inc/package-translation/inc/wpml-package.class.php(313): icl_register_string('bricks-9', 'tyjpbd_link', Array, false, 'de')
#3 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/wpml-string-translation/inc/package-translation/inc/wpml-package-translation-helper.class.php(532): WPML_Package->get_string_id_from_package('tyjpbd_link', Array)
#4 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/wpml-string-translation/inc/package-translation/inc/wpml-package-translation-helper.class.php(176): WPML_Package_Helper->get_string_id_from_package(Object(WPML_Package), 'tyjpbd_link', Array)
#5 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/wpml-string-translation/inc/package-translation/inc/wpml-package-translation-helper.class.php(148): WPML_Package_Helper->register_string_with_wpml(Object(WPML_Package), 'tyjpbd_link', 'Bricks (Button)', 'LINE', Array)
#6 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/wpml-string-translation/inc/package-translation/inc/wpml-package-translation-helper.class.php(82): WPML_Package_Helper->register_string_for_translation(Array, 'tyjpbd_link', Object(WPML_Package), 'Bricks (Button)', 'LINE')
#7 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/class-wp-hook.php(310): WPML_Package_Helper->register_string_action(Array, 'tyjpbd_link', Array, 'Bricks (Button)', 'LINE')
#8 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#9 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#10 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/themes/bricks/includes/integrations/wpml/wpml.php(257): do_action('wpml_register_s...', Array, 'tyjpbd_link', Array, 'Bricks (Button)', 'LINE')
#11 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/themes/bricks/includes/integrations/wpml/wpml.php(198): Bricks\Integrations\Wpml\Wpml->register_wpml_string(Array, 'tyjpbd_link', 'Button', Object(WP_Post), 'link')
#12 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/themes/bricks/includes/integrations/wpml/wpml.php(173): Bricks\Integrations\Wpml\Wpml->process_control('link', Array, Array, Array, 'Button', Array, Object(WP_Post))
#13 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/themes/bricks/includes/integrations/wpml/wpml.php(154): Bricks\Integrations\Wpml\Wpml->process_element(Array, Object(WP_Post))
#14 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/class-wp-hook.php(310): Bricks\Integrations\Wpml\Wpml->wpml_page_builder_register_strings(Object(WP_Post), Array)
#15 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
#16 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#17 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/strategy/api-hooks/class-wpml-pb-api-hooks-strategy.php(17): do_action('wpml_page_build...', Object(WP_Post), Array)
#18 [internal function]: WPML_PB_API_Hooks_Strategy->register_strings(Object(WP_Post))
#19 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Invoker/Invoker.php(41): call_user_func_array(Array, Array)
#20 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(175): WPML\FP\Invoker\_Invoker->__invoke(Object(WPML_PB_API_Hooks_Strategy))
#21 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(WPML\FP\Invoker\_Invoker), Object(WPML_PB_API_Hooks_Strategy), 0)
#22 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#23 [internal function]: WPML\FP\{closure}(Object(WPML_PB_API_Hooks_Strategy), 0)
#24 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(164): array_map(Object(Closure), Array, Array)
#25 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array)
#26 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#27 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array)
#28 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#29 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(169): WPML\FP\Fns::__callStatic('map', Array)
#30 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(WPML\FP\Invoker\_Invoker), Array)
#31 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#32 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(WPML\FP\Invoker\_Invoker), Array)
#33 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#34 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-integration.php(288): WPML\FP\Fns::__callStatic('each', Array)
#35 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Shared/st/class-wpml-pb-integration.php(218): WPML_PB_Integration->with_strategies(Object(WPML\FP\Invoker\_Invoker))
#36 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/class-wp-hook.php(310): WPML_PB_Integration->register_all_strings_for_translation(Object(WP_Post))
#37 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters('', Array)
#38 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#39 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(1346): do_action('wpml_pb_registe...', Object(WP_Post))
#40 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/classes/class-wpml-translation-job-factory.php(112): TranslationManagement->send_jobs(Object(WPML_TM_Translation_Batch), 'post', 1)
#41 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Manual.php(121): WPML_Translation_Job_Factory->create_local_job('9', 'fr', NULL, 'post_page', 1, 'de')
#42 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/classes/jobs/Manual.php(39): WPML\TM\Jobs\Manual->createLocalJob('9', 'de', 'fr', 'post_page')
#43 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPML\TM\Jobs\Manual->createOrReuse(Array)
#44 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/classes/editor/Editor.php(85): WPML\FP\Right->map(Array)
#45 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/sitepress-multilingual-cms/classes/menu/translation-queue/class-wpml-translations-queue.php(52): WPML\TM\Editor\Editor->open(Array)
#46 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/class-wp-hook.php(310): WPML_Translations_Queue->load(Object(WP_Screen))
#47 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
#48 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#49 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-admin/includes/class-wp-screen.php(424): do_action('current_screen', Object(WP_Screen))
#50 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-admin/includes/screen.php(243): WP_Screen->set_current_screen()
#51 /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-admin/admin.php(212): set_current_screen()
#52 {main}
thrown in /www/htdocs/w011c1f1/taff.bukowski-studio.com/wp-content/plugins/wpml-string-translation/classes/filters/strings-filter/class-wpml-register-string-filter.php on line 205

Oktober 3, 2023 um 10:12 am #14503297

Prosenjit Barman
WPML-Unterstützer seit 03/2023

Sprachen: Englisch (English )

Zeitzone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for sharing the Debug log.

I was searching for a similar case and found that someone reported the same error in the support forum of the Bricks theme. Please check the thread below.

- versteckter Link

For your information, the Bricks theme team has identified the bug and also mentioned that the fix will be included. [ Reference: versteckter Link ]

As far as I understood, this issue is related to PHP compatibility as changing the PHP version to 7.4 would solve the issue.

Could you please change the PHP version to 7.4 and check if that helps to fix the issue? You can consult with the Hosting administrator regarding this matter. If everything works fine after changing the PHP version, please keep that till the Bricks theme team releases an update for their team.

I'd also like to point out that PHP 7.4 is currently the most stable version for WordPress sites. For that reason, switching the PHP version shouldn't cause any issues. But, it is always better to take a full backup of the site before changing the PHP version.

For more information about the PHP compatibility with WordPress, please check this link: https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

Please let me know if that helps or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit