Vai al contenuto Vai alla barra laterale

Etichettato: 

Questo ticket contiene 0 risposta, ha 0 voci.

Ultimo aggiornamento da Craig 10 mese, 3 settimana fa.

Assistito da: Lauren.

Autore Post
Giugno 10, 2025 alle 16:57 #17123071

Craig

Background of the issue:
I am trying to add a new page or post in WordPress. Every time I attempt this, I encounter a critical error. I checked the error logs, and it seems the fatal error is related to a WPML issue. Here is the link to a page where the issue can be seen: link nascosto.

Symptoms:
I receive a critical error message when trying to add a new page. The error log shows: PHP Fatal error: Uncaught TypeError: WPMLUserInterfaceWebInfrastructureWordPressCompositionRootConfigEventTranslationLinksItemUpdateEvent::WPMLUserInterfaceWebInfrastructureWordPressCompositionRootConfigEventTranslationLinks{closure}(): Argument #2 ($post) must be of type WP_Post, null given, called in /home/ipss/public_html/wp-includes/class-wp-hook.php on line 326 and defined in /home/ipss/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/UserInterface/Web/Infrastructure/WordPress/CompositionRoot/Config/Event/Translation/Links/ItemUpdateEvent.php:55.

Questions:
What is causing the critical error when adding a new page?
How can I resolve the WPML-related fatal error?