Skip Navigation

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

Problem:
The client's website displays a blank page when navigating to a certain page. An error of type E_ERROR is reported, indicating an undefined function

wp_enqueue_block_style()

in the WPML Multilingual CMS plugin.
Solution:
1. We recommend checking the WPML errata page for known issues related to this error: WPML Errata page.
2. We have released a beta version of the WPML Multilingual CMS plugin that should resolve this issue. If you are willing to try it, you can download the beta version from the WPML changelog page: WPML Changelog page.

If this solution does not seem relevant to your situation, please open a new support ticket on our 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 2 replies, has 2 voices.

Last updated by Bruno Kos 1 year, 4 months ago.

Assisted by: Bruno Kos.

Author Posts
January 22, 2024 at 6:39 am #15209433

ejderK

WPML Multilingual CMS is making the website blank.
When we click on certain page, the site will be blanked: hidden link

Below is the error message from WordPress:

An error of type E_ERROR was caused in line 97 of the file /www/prestigewealthgroup_969/public/wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Loader.php. Error message: Uncaught Error: Call to undefined function WPML\BlockEditor\wp_enqueue_block_style() in /www/prestigewealthgroup_969/public/wp-content/plugins/sitepress-multilingual-cms/classes/block-editor/Loader.php:97 Stack trace: #0 /www/prestigewealthgroup_969/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(207): WPML\BlockEditor\Loader->maybeEnqueueNavigationBlockStyles(NULL) #1 /www/prestigewealthgroup_969/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php(257): WPML\FP\Right->map(Array) #2 /www/prestigewealthgroup_969/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(24): WPML\FP\Right->chain(Array) #3 /www/prestigewealthgroup_969/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php(30): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #4 /www/prestigewealthgroup_969/public/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php(50): WPML\FP\Promise->resolve(Object(WPML\FP\Right)) #5 /www/prestigewealthgroup_969/public/wp-includes/class-wp-hook.php(303): WPML\LIB\WP\Hooks::WPML\LIB\WP\{closure}('') #6 /www/prestigewealthgroup_969/public/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #7 /www/prestigewealthgroup_969/public/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #8 /www/prestigewealthgroup_969/public/wp-settings.php(578): do_action('init') #9 /www/prestigewealthgroup_969/public/wp-config.php(96): require_once('/www/prestigewe...') #10 /www/prestigewealthgroup_969/public/wp-load.php(50): require_once('/www/prestigewe...') #11 /www/prestigewealthgroup_969/public/wp-admin/admin.php(34): require_once('/www/prestigewe...') #12 /www/prestigewealthgroup_969/public/wp-admin/plugins.php(10): require_once('/www/prestigewe...') #13 {main} thrown

January 22, 2024 at 8:32 am #15209761

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

Thank you for contacting WPML support!

Can you check this?
https://wpml.org/errata/uncaught-error-call-to-undefined-function-wpmlblockeditorwp_enqueue_block_style/

Regards,
Bruno Kos

January 25, 2024 at 1:08 pm #15226225

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

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

We released a beta that should fix this, if you want to try it:
https://wpml.org/download/wpml-multilingual-cms/?section=changelog