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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 3 replies, has 0 voices.

Last updated by Prosenjit Barman 1 month, 2 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
December 17, 2024 at 9:17 am #16520479

marcH-16

Hintergrund des Themas:
I am trying to resolve a PHP error 'Fatal error: Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string' that occurs in WordPress, specifically in /wp-includes. This issue seems related to the combination of The Event Calendar (TEC), WPML, and WordPress version 6.7.x. Updating did not resolve the issue. The error occurs when trying to save a new event at the following URL: hidden link

Die Symptome:
The PHP error 'Fatal error: Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string' is produced by WordPress.

Fragen:
How can I resolve the PHP error related to strip_tags()?
Is there a known issue with TEC, WPML, and WordPress 6.7.x?

December 18, 2024 at 8:35 am #16524641

Prosenjit Barman
Supporter

Languages: English (English )

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

Hello There!
Thanks for contacting WPML Support.

I understand the issue you’re experiencing. Regarding The Events Calendar plugin, we are aware of an issue that is documented in the following Errata:

- https://wpml.org/errata/wp-6-7-translations-not-loaded-for-the-events-calendar-plugin/

Aside from that, no fatal errors have been reported to us with the latest versions of WPML, WordPress, and The Events Calendar plugin.

Since the error is occurring in the default language, it may be caused by a conflict. Please start by disabling the "WPML" plugin and check if the issue still persists.

If the issue continues, it could be related to another plugin on your site. In that case, try deactivating other plugins one by one to identify which plugin might be causing the problem.

However, if the issue is resolved after deactivating the WPML plugin, please reactivate it and try to reproduce the error. Once the error occurs again, check the Debug log for the latest error details, copy the relevant entries, and share them in your next response. This will help me better understand where the issue originates and provide more targeted assistance.

I hope you can understand. Let me know the update and I'll be happy to help if you need further assistance.

Best regards,
Prosenjit

December 19, 2024 at 7:26 am #16528545

marcH-16

Hi Prosenjit

Thank you for following up.

We've already tested, that the error is gone after deactivating WPML String Translations.

Tested again on hidden link

Looking forward to your feedback.

hidden link

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the the-events-calendar domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php on line 6114

Deprecated: Creation of dynamic property Tribe__Events__Pro__Integrations__WPML__Event_Listener::$wpml is deprecated in /home/aniadve1/staging.aniadvert.com/wp-content/plugins/events-calendar-pro/src/Tribe/Integrations/WPML/Event_Listener.php on line 52

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the Woocommerce-gateway-saferpay domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the woocommerce domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the shortpixel-image-optimiser domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the all-in-one-wp-migration domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php on line 6114

Deprecated: Creation of dynamic property Tribe\Extensions\External_Links_In_New_Tab\Main::$settings is deprecated in /home/aniadve1/staging.aniadvert.com/wp-content/plugins/tribe-ext-external-links-in-new-tab/tribe-ext-external-links-in-new-tab.php on line 115

Deprecated: Creation of dynamic property Tribe\Extensions\Relabeler\Main::$class_loader is deprecated in /home/aniadve1/staging.aniadvert.com/wp-content/plugins/tribe-ext-relabeler/tribe-ext-relabeler.php on line 149

Deprecated: Creation of dynamic property Tribe\Extensions\Relabeler\Main::$settings is deprecated in /home/aniadve1/staging.aniadvert.com/wp-content/plugins/tribe-ext-relabeler/tribe-ext-relabeler.php on line 73

Deprecated: Creation of dynamic property acfe_form_front::$fields is deprecated in /home/aniadve1/staging.aniadvert.com/wp-content/plugins/acf-extended-pro/includes/modules/forms-front.php on line 14

Deprecated: Creation of dynamic property WC_gateway_spgw_clicktopay::$currency is deprecated in /home/aniadve1/staging.aniadvert.com/wp-content/plugins/saferpay_woocommerce_gateway/includes/payment_gateways/class-wc-gateway-spgw-clicktopay.php on line 105

Deprecated: Creation of dynamic property WC_gateway_spgw_blik::$currency is deprecated in /home/aniadve1/staging.aniadvert.com/wp-content/plugins/saferpay_woocommerce_gateway/includes/payment_gateways/class-wc-gateway-spgw-blik.php on line 105

Deprecated: Die Funktion Template overrides should be moved to the correct subdirectory: /home/aniadve1/staging.aniadvert.com/wp-content/themes/Avada/tribe-events/default-template.php ist seit Version 3.2 veraltet! Verwende stattdessen community/default-template.php. in /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php on line 6114

Deprecated: Die Funktion Template overrides should be moved to the correct subdirectory: /home/aniadve1/staging.aniadvert.com/wp-content/themes/Avada/tribe-events/default-template.php ist seit Version 3.2 veraltet! Verwende stattdessen community/default-template.php. in /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php on line 6114

Deprecated: Die Funktion Template overrides should be moved to the correct subdirectory: /home/aniadve1/staging.aniadvert.com/wp-content/themes/Avada/tribe-events/default-template.php ist seit Version 3.2 veraltet! Verwende stattdessen community/default-template.php. in /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php on line 6114

Deprecated: Die Funktion Template overrides should be moved to the correct subdirectory: /home/aniadve1/staging.aniadvert.com/wp-content/themes/Avada/tribe-events/default-template.php ist seit Version 3.2 veraltet! Verwende stattdessen community/default-template.php. in /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php on line 6114

Deprecated: Die Funktion Template overrides should be moved to the correct subdirectory: /home/aniadve1/staging.aniadvert.com/wp-content/themes/Avada/tribe-events/default-template.php ist seit Version 3.2 veraltet! Verwende stattdessen community/default-template.php. in /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php on line 6114

Fatal error: Uncaught TypeError: strip_tags(): Argument #1 ($string) must be of type string, array given in /home/aniadve1/staging.aniadvert.com/wp-includes/formatting.php:2262 Stack trace: #0 /home/aniadve1/staging.aniadvert.com/wp-includes/formatting.php(2262): strip_tags() #1 /home/aniadve1/staging.aniadvert.com/wp-includes/class-wp-hook.php(324): sanitize_title_with_dashes() #2 /home/aniadve1/staging.aniadvert.com/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /home/aniadve1/staging.aniadvert.com/wp-includes/formatting.php(2223): apply_filters() #4 /home/aniadve1/staging.aniadvert.com/wp-includes/formatting.php(2243): sanitize_title() #5 /home/aniadve1/staging.aniadvert.com/wp-includes/class-wp-query.php(2139): sanitize_title_for_query() #6 /home/aniadve1/staging.aniadvert.com/wp-includes/class-wp-query.php(3852): WP_Query->get_posts() #7 /home/aniadve1/staging.aniadvert.com/wp-includes/class-wp.php(696): WP_Query->query() #8 /home/aniadve1/staging.aniadvert.com/wp-includes/class-wp.php(816): WP->query_posts() #9 /home/aniadve1/staging.aniadvert.com/wp-includes/functions.php(1336): WP->main() #10 /home/aniadve1/staging.aniadvert.com/wp-blog-header.php(16): wp() #11 /home/aniadve1/staging.aniadvert.com/index.php(17): require('/home/aniadve1/...') #12 {main} thrown in /home/aniadve1/staging.aniadvert.com/wp-includes/formatting.php on line 2262

December 20, 2024 at 3:44 am #16532052

Prosenjit Barman
Supporter

Languages: English (English )

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

Hi There!
Thank you for the update.

It seems that an array from String Translation is being passed to the `strip_tags` function. We have recently released an update for the String Translation plugin. Could you please update it to the latest version, 3.2.18, and check if the issue persists? You can download the latest version from the following link.

- https://wpml.org/download/wpml-string-translation/?section=changelog

If the issue persists, a closer inspection will be required to understand the root cause of the issue.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

The topic ‘[Closed] The Event Calender Translation’ is closed to new replies.