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.

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Carlos Rojas 6 days, 20 hours ago.

Assisted by: Carlos Rojas.

Author Posts
September 27, 2025 at 7:34 am #17437657

jointP

Background of the issue:
I am trying to view a normal post or page on my WordPress site, but I encountered a fatal error. The issue can be seen on this page: hidden link. The error message is: Fatal error: Uncaught TypeError: Argument 2 passed to WPMLUserInterfaceWebInfrastructureWordPressCompositionRootConfigEventTranslationLinksItemUpdateEvent::WPMLUserInterfaceWebInfrastructureWordPressCompositionRootConfigEventTranslationLinks{closure}() must be an instance of WP_Post, null given, called in /home/childrenlux25/public_html/wp-includes/class-wp-hook.php on line 326 and defined in /home/childrenlux25/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/UserInterface/Web/Infrastructure/WordPress/CompositionRoot/Config/Event/Translation/Links/ItemUpdateEvent.php:55.

Symptoms:
I received a fatal error message indicating a TypeError related to WPML and WP_Post when trying to view a page.

Questions:
How can I resolve the fatal error related to WPML and WP_Post?
What steps should I take to fix the TypeError on my WordPress site?

September 29, 2025 at 9:50 am #17440383

Carlos Rojas
WPML Supporter since 03/2017

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

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

Hello,
Thank you for contacting us

Please follow these steps to isolate the cause of the issue:
- Create a full site backup or create a staging site with a copy of the live site (you can use the WP Staging plugin for free)
- Update any outdated plugins or themes
- Flush any cache memory that might exist
- Deactivate all plugins, including the WPML ones
- Activate a default WordPress theme, like Twenty Twenty
- Activate the WPML plugins
- If the error disappeared, start by activating the theme and then the rest of the plugins, one by one, until the issue appears again and you find the culprit

Can you tell me the results of the steps described above?

Regards,
Carlos