Skip Navigation

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

Problem:
The client reported a critical error on the Swedish translation of their website, preventing it from displaying correctly in the frontend.
Solution:
We identified that the issue was due to incorrect translation of placeholders in strings. Here are the steps we recommended and implemented to resolve the issue:
1. Navigate to WPML >> String Translation.
2. Search for strings containing the placeholder %s.
3. Correct the translation in the Swedish language.
For example, we changed the string:

Använd %1$anpassad CSS%3$ för att styla ditt innehåll eller lägg till %2$prefixet "selector"%3$ för att rikta in dig på specifika element.

To:

Använd %1$s anpassad CSS%3$ för att styla ditt innehåll eller lägg till %2$s prefixet "selector"%3$ för att rikta in dig på specifika element.

After making these corrections, the Swedish pages loaded correctly.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable 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 the problem persists, please open a new support ticket.

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.

This topic contains 7 replies, has 0 voices.

Last updated by rubenK-8 2 weeks, 4 days ago.

Assisted by: Noman.

Author Posts
May 11, 2025 at 5:15 pm #17020528

rubenK-8

Background of the issue:
I have 2 translations (Dutch & Swedish) alongside the default language (English). The Dutch language works fine. I am trying to get the Swedish translation to show up in the frontend. Link to a page where the issue can be seen: hidden link

Symptoms:
The Swedish language shows an error in the frontend of the website: "A critical error has occurred on the website. Learn more about troubleshooting WordPress."

Questions:
Why is the Swedish translation showing a critical error on the frontend?
How can I resolve the critical error to display the Swedish translation correctly?

May 11, 2025 at 5:32 pm #17020552

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. I can see the issue on your site. Could you please enable error reporting on your site as I need to see the details of the latest error log to understand the cause of the issue better. To enable it, open your ‘wp-config.php’ file and look for ‘define(‘WP_DEBUG’, false);’. Change it to:

// Enable WP_DEBUG mode
define( 'WP_DEBUG', true );
 
// Enable Debug logging to the /wp-content/debug.log file
define( 'WP_DEBUG_LOG', true );
 
// Disable display of errors and warnings
define( 'WP_DEBUG_DISPLAY', false );
@ini_set( 'display_errors', 0 );
 
define( 'SCRIPT_DEBUG', true );

After adding the above code, please try visiting the problematic page again, and if this will create a debug.log file in your site's wp-content directory. Please send me its contents.

Please let me know the results,
Thank you

May 12, 2025 at 2:07 am #17020883

rubenK-8

I send the debug through a reply

May 12, 2025 at 8:43 am #17021516

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for sharing the debug info. That part looks fine, but what I actually need is the debug.log file. The debug info you shared shows details about themes and plugins, while the debug.log file records any errors that happen when you visit a page like this one: hidden link, which is currently showing a blank/critical error.

Could you please check if there's a debug.log file in your /wp-content/ folder after adding the above provided code in wp-config.php file and share its contents?

Here is a doc for more details:
https://wpml.org/documentation/support/debugging-wpml/

Thank you for your cooperation

May 13, 2025 at 10:49 am #17026606

rubenK-8

[13-May-2025 10:45:34 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:45:35 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:45:35 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:45:35 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:45:35 UTC] PHP Warning: session_start(): Session cannot be started after headers have already been sent in /data/sites/web/slowlifeswedencom/www/wp-content/plugins/wp-event-manager/includes/wp-event-manager-post-types.php on line 805
[13-May-2025 10:45:35 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:45:35 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:45:35 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:45:36 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:45:36 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:45:36 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:02 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:02 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:02 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:17 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:17 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:17 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:17 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:17 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:17 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:17 UTC] PHP Warning: session_start(): Session cannot be started after headers have already been sent in /data/sites/web/slowlifeswedencom/www/wp-content/plugins/wp-event-manager/includes/wp-event-manager-post-types.php on line 805
[13-May-2025 10:46:22 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:22 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:22 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:24 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:24 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:24 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:43 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:43 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:43 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:43 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:44 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:44 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:45 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:45 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:45 UTC] PHP Fatal error: Uncaught ValueError: Unknown format specifier "a" in /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor-pro/modules/custom-css/module.php:141
Stack trace:
#0 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor-pro/modules/custom-css/module.php(141): sprintf('Anv\xC3\xA4nd %1$anpa...', '')
#1 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor-pro/modules/custom-css/module.php(63): ElementorPro\Modules\CustomCss\Module->replace_go_pro_custom_css_controls(Object(Elementor\Core\Kits\Documents\Kit))
#2 /data/sites/web/slowlifeswedencom/www/wp-includes/class-wp-hook.php(326): ElementorPro\Modules\CustomCss\Module->register_controls(Object(Elementor\Core\Kits\Documents\Kit), 'section_custom_...')
#3 /data/sites/web/slowlifeswedencom/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#4 /data/sites/web/slowlifeswedencom/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(1696): do_action('elementor/eleme...', Object(Elementor\Core\Kits\Documents\Kit), 'section_custom_...', Array)
#6 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/managers/controls.php(1100): Elementor\Controls_Stack->end_controls_section()
#7 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/kits/documents/tabs/settings-custom-css.php(33): Elementor\Controls_Manager->add_custom_css_controls(Object(Elementor\Core\Kits\Documents\Kit), 'settings-custom...')
#8 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/kits/documents/tabs/tab-base.php(43): Elementor\Core\Kits\Documents\Tabs\Settings_Custom_CSS->register_tab_controls()
#9 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/kits/documents/kit.php(148): Elementor\Core\Kits\Documents\Tabs\Tab_Base->register_controls()
#10 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(2435): Elementor\Core\Kits\Documents\Kit->register_controls()
#11 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(570): Elementor\Controls_Stack->init_controls()
#12 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(315): Elementor\Controls_Stack->get_stack()
#13 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(2524): Elementor\Controls_Stack->get_controls()
#14 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(1161): Elementor\Controls_Stack->sanitize_settings(Array)
#15 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(2267): Elementor\Controls_Stack->get_data('settings')
#16 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/base/base-object.php(143): Elementor\Controls_Stack->get_init_settings()
#17 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/base/base-object.php(40): Elementor\Core\Base\Base_Object->ensure_settings()
#18 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/kits/manager.php(117): Elementor\Core\Base\Base_Object->get_settings('default_page_te...')
#19 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/modules/page-templates/module.php(92): Elementor\Core\Kits\Manager->get_current_settings('default_page_te...')
#20 /data/sites/web/slowlifeswedencom/www/wp-includes/class-wp-hook.php(324): Elementor\Modules\PageTemplates\Module->template_include('/data/sites/web...')
#21 /data/sites/web/slowlifeswedencom/www/wp-includes/plugin.php(205): WP_Hook->apply_filters('/data/sites/web...', Array)
#22 /data/sites/web/slowlifeswedencom/www/wp-includes/template-loader.php(104): apply_filters('template_includ...', '/data/sites/web...')
#23 /data/sites/web/slowlifeswedencom/www/wp-blog-header.php(19): require_once('/data/sites/web...')
#24 /data/sites/web/slowlifeswedencom/www/index.php(17): require('/data/sites/web...')
#25 {main}
thrown in /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor-pro/modules/custom-css/module.php on line 141
[13-May-2025 10:46:47 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:47 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:47 UTC] PHP Fatal error: Uncaught ValueError: Unknown format specifier "a" in /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor-pro/modules/custom-css/module.php:141
Stack trace:
#0 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor-pro/modules/custom-css/module.php(141): sprintf('Anv\xC3\xA4nd %1$anpa...', '')
#1 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor-pro/modules/custom-css/module.php(63): ElementorPro\Modules\CustomCss\Module->replace_go_pro_custom_css_controls(Object(Elementor\Core\Kits\Documents\Kit))
#2 /data/sites/web/slowlifeswedencom/www/wp-includes/class-wp-hook.php(326): ElementorPro\Modules\CustomCss\Module->register_controls(Object(Elementor\Core\Kits\Documents\Kit), 'section_custom_...')
#3 /data/sites/web/slowlifeswedencom/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#4 /data/sites/web/slowlifeswedencom/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(1696): do_action('elementor/eleme...', Object(Elementor\Core\Kits\Documents\Kit), 'section_custom_...', Array)
#6 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/managers/controls.php(1100): Elementor\Controls_Stack->end_controls_section()
#7 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/kits/documents/tabs/settings-custom-css.php(33): Elementor\Controls_Manager->add_custom_css_controls(Object(Elementor\Core\Kits\Documents\Kit), 'settings-custom...')
#8 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/kits/documents/tabs/tab-base.php(43): Elementor\Core\Kits\Documents\Tabs\Settings_Custom_CSS->register_tab_controls()
#9 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/kits/documents/kit.php(148): Elementor\Core\Kits\Documents\Tabs\Tab_Base->register_controls()
#10 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(2435): Elementor\Core\Kits\Documents\Kit->register_controls()
#11 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(570): Elementor\Controls_Stack->init_controls()
#12 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(315): Elementor\Controls_Stack->get_stack()
#13 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(2524): Elementor\Controls_Stack->get_controls()
#14 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(1161): Elementor\Controls_Stack->sanitize_settings(Array)
#15 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/includes/base/controls-stack.php(2267): Elementor\Controls_Stack->get_data('settings')
#16 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/base/base-object.php(143): Elementor\Controls_Stack->get_init_settings()
#17 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/base/base-object.php(40): Elementor\Core\Base\Base_Object->ensure_settings()
#18 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/core/kits/manager.php(117): Elementor\Core\Base\Base_Object->get_settings('default_page_te...')
#19 /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor/modules/page-templates/module.php(92): Elementor\Core\Kits\Manager->get_current_settings('default_page_te...')
#20 /data/sites/web/slowlifeswedencom/www/wp-includes/class-wp-hook.php(324): Elementor\Modules\PageTemplates\Module->template_include('/data/sites/web...')
#21 /data/sites/web/slowlifeswedencom/www/wp-includes/plugin.php(205): WP_Hook->apply_filters('/data/sites/web...', Array)
#22 /data/sites/web/slowlifeswedencom/www/wp-includes/template-loader.php(104): apply_filters('template_includ...', '/data/sites/web...')
#23 /data/sites/web/slowlifeswedencom/www/wp-blog-header.php(19): require_once('/data/sites/web...')
#24 /data/sites/web/slowlifeswedencom/www/index.php(17): require('/data/sites/web...')
#25 {main}
thrown in /data/sites/web/slowlifeswedencom/www/wp-content/plugins/elementor-pro/modules/custom-css/module.php on line 141
[13-May-2025 10:46:48 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:48 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:46:48 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:22 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:22 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:22 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:22 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:22 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:23 UTC] PHP Warning: session_start(): Session cannot be started after headers have already been sent in /data/sites/web/slowlifeswedencom/www/wp-content/plugins/wp-event-manager/includes/wp-event-manager-post-types.php on line 805
[13-May-2025 10:47:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-notifier

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mphb-styles

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121
[13-May-2025 10:47:23 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the

mailpoet

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 /data/sites/web/slowlifeswedencom/www/wp-includes/functions.php on line 6121

May 13, 2025 at 3:32 pm #17028867

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for sharing the error details. This type of usually occur when placeholder(%s) string is wrongly translated somehow as mentioned here: https://wpml.org/errata/php-8-php-fatal-error-uncaught-valueerror-unknown-format-specifier-in/

To fix this issue, could you please try the below steps:

1. Go to the WPML >> String Translation.
2. Search for strings which have %s.
3. Try to correct it’s translation in Swedish language

And see if this resolves the issue.

If the issue persists, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private, meaning only you and I can access it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you for your cooperation

May 19, 2025 at 8:45 am #17047259

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for providing the login details. I’m debugging this issue on your site and get back to you with an update soon.

Thank you for your cooperation

May 19, 2025 at 12:42 pm #17048461

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

I found the problematic string and corrected the placeholder by replacing:

Använd %1$anpassad CSS%3$ för att styla ditt innehåll eller lägg till %2$prefixet "selector"%3$ för att rikta in dig på specifika element.

With:

Använd %1$s anpassad CSS%3$ för att styla ditt innehåll eller lägg till %2$s prefixet "selector"%3$ för att rikta in dig på specifika element.

via WPML >> String Translation. The Swedish pages now load correctly.

Could you please check and confirm on your side?

Thank you for your cooperation and patience

May 19, 2025 at 7:18 pm #17050347

rubenK-8

Thank you