Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are experiencing a fatal error when trying to view a normal post or page on your WordPress site. The error message indicates a TypeError related to WPML and WP_Post.
Solution:
We recommend you follow these steps to isolate and potentially resolve the issue:
1. Create a full site backup or set up a staging site using a plugin like WP Staging.
2. Update any outdated plugins or themes.
3. Flush any existing cache memory.
4. Deactivate all plugins, including WPML ones.
5. Activate a default WordPress theme, such as Twenty Twenty.
6. Reactivate the WPML plugins.
7. If the error disappears, reactivate your theme and then other plugins one by one to identify the culprit.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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 1 month, 4 weeks 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+01: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