Critical error after PHP upgrading

Posted in: Newspaper
Post count: 8

The site was working without any issues on PHP version 7.4. When I switched to PHP 8.2, I started getting a critical error whenever I try to preview a post:
There has been a critical error on this website.

If I revert PHP back to 7.4, the error disappears and everything works normally. I’ve tried other PHP 8.x versions as well, but every 8.x version causes the same critical error.

All my plugins are up to date, and I’m using the latest version of the Newspaper theme — 12.7.1.

When I disable all other plugins, the error still appears. Only the following plugins are active, and the problem still occurs during post preview:

active plugins

My site address is https://breakingthesilence.rs/

Post count: 8

I just noticed that only the homepage works without any issues, while every post actually leads to the same critical error. So it’s not just the preview — the issue affects all single posts.
I had to change PHP back to 7.4.

  • This reply was modified 1 year by bts026.
Post count: 35449

Hi,
If everything is up to date, please enable the debug mode so it will display on which elements/code is causing the fatal error. https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
Please the errors that will be displayed.
Thank you!

Post count: 8

This is what I get:

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the media-library-organizer 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 /home/milosbts/public_html/wp-includes/functions.php on line 6121

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the td-cloud-library 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 /home/milosbts/public_html/wp-includes/functions.php on line 6121

Logo

VESTI
BTS PODCAST
KONCERTI I DOGAĐAJI
RECENZIJE
RAZBIJANJE TIŠINE
O NAMA

More

Fatal error: Uncaught ValueError: Unknown format specifier ” ” in /home/milosbts/public_html/wp-content/plugins/td-cloud-library/parts/tdb-comments.php:353 Stack trace: #0 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/parts/tdb-comments.php(353): sprintf() #1 /home/milosbts/public_html/wp-includes/comment-template.php(1629): require(‘/home/milosbts/…’) #2 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php(2110): comments_template() #3 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_comments.php(470): tdb_state_single->{closure}() #4 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_comments.php(470): Closure->__invoke() #5 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_comments->render() #6 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #7 [internal function]: do_shortcode_tag() #8 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #9 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(222): do_shortcode() #10 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php(440): tdc_composer_block->do_shortcode() #11 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): vc_column->render() #12 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #13 [internal function]: do_shortcode_tag() #14 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #15 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(222): do_shortcode() #16 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php(1204): tdc_composer_block->do_shortcode() #17 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): vc_row->render() #18 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #19 [internal function]: do_shortcode_tag() #20 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #21 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(222): do_shortcode() #22 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php(771): tdc_composer_block->do_shortcode() #23 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdc_zone->render() #24 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #25 [internal function]: do_shortcode_tag() #26 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #27 /home/milosbts/public_html/wp-includes/class-wp-hook.php(324): do_shortcode() #28 /home/milosbts/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #29 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(189): apply_filters() #30 /home/milosbts/public_html/wp-includes/template-loader.php(106): include(‘/home/milosbts/…’) #31 /home/milosbts/public_html/wp-blog-header.php(19): require_once(‘/home/milosbts/…’) #32 /home/milosbts/public_html/index.php(17): require(‘/home/milosbts/…’) #33 {main} thrown in /home/milosbts/public_html/wp-content/plugins/td-cloud-library/parts/tdb-comments.php on line 353

There has been a critical error on this website.

Post count: 8

This is line 353 of tdb-comments.php:
esc_attr( sprintf( __td( 'Logged in as %s. Edit your profile.' , TD_THEME_NAME), $user_identity ) ),

Post count: 35449

Hi,
This Notice: Function _load_textdomain_just_in_time was called incorrectly…. please get the plugin from here – https://cdn.tagdiv.com/wp-content/uploads/2025/07/td-cloud-library.zip this should be used only with Newspaper v12.7.1 and will resolve that notice.
Let me know the results!

Post count: 8

I have copied files from zip and this is the new error message:

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the media-library-organizer 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 /home/milosbts/public_html/wp-includes/functions.php on line 6121

Logo

VESTI
BTS PODCAST
KONCERTI I DOGAĐAJI
RECENZIJE
RAZBIJANJE TIŠINE
O NAMA

More

Fatal error: Uncaught ValueError: Unknown format specifier ” ” in /home/milosbts/public_html/wp-content/plugins/td-cloud-library/parts/tdb-comments.php:177 Stack trace: #0 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/parts/tdb-comments.php(177): sprintf() #1 /home/milosbts/public_html/wp-includes/comment-template.php(1629): require(‘/home/milosbts/…’) #2 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php(2110): comments_template() #3 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_comments.php(470): tdb_state_single->{closure}() #4 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_comments.php(470): Closure->__invoke() #5 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_comments->render() #6 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #7 [internal function]: do_shortcode_tag() #8 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #9 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(222): do_shortcode() #10 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php(440): tdc_composer_block->do_shortcode() #11 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): vc_column->render() #12 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #13 [internal function]: do_shortcode_tag() #14 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #15 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(222): do_shortcode() #16 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php(1204): tdc_composer_block->do_shortcode() #17 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): vc_row->render() #18 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #19 [internal function]: do_shortcode_tag() #20 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #21 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(222): do_shortcode() #22 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php(771): tdc_composer_block->do_shortcode() #23 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdc_zone->render() #24 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #25 [internal function]: do_shortcode_tag() #26 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #27 /home/milosbts/public_html/wp-includes/class-wp-hook.php(324): do_shortcode() #28 /home/milosbts/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #29 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(189): apply_filters() #30 /home/milosbts/public_html/wp-includes/template-loader.php(106): include(‘/home/milosbts/…’) #31 /home/milosbts/public_html/wp-blog-header.php(19): require_once(‘/home/milosbts/…’) #32 /home/milosbts/public_html/index.php(17): require(‘/home/milosbts/…’) #33 {main} thrown in /home/milosbts/public_html/wp-content/plugins/td-cloud-library/parts/tdb-comments.php on line 177

There has been a critical error on this website.

Line 177 looks the same as the previous error:
esc_attr( sprintf( __td( 'Logged in as %s. Edit your profile.' , TD_THEME_NAME), $user_identity ) ),

  • This reply was modified 1 year by bts026.
Post count: 35449

Hi,
Normally, with the provided version of tagDiv Cloud Library, the notice _load_textdomain_just_in_time should no longer be displayed.
Also, the fatal error “Fatal error: Uncaught ValueErro” is coming from the comment element, do you use any extra plugins for comments?
Can you please replace the tagDiv Composer too with the one from here – https://cdn.tagdiv.com/wp-content/uploads/2025/05/td-composer.zip
And please make a test using only tagDiv plugins to see if the problems persist.
Thank you!

Post count: 8

All plugins are deactivated (except tagDiv plugins) and after replacing td composer and td cloud library I am getting this:

Logo

VESTI
BTS PODCAST
KONCERTI I DOGAĐAJI
RECENZIJE
RAZBIJANJE TIŠINE
O NAMA

More

Fatal error: Uncaught ValueError: Unknown format specifier ” ” in /home/milosbts/public_html/wp-content/plugins/td-cloud-library/parts/tdb-comments.php:177 Stack trace: #0 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/parts/tdb-comments.php(177): sprintf() #1 /home/milosbts/public_html/wp-includes/comment-template.php(1629): require(‘/home/milosbts/…’) #2 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/state/single/tdb_state_single.php(2110): comments_template() #3 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_comments.php(470): tdb_state_single->{closure}() #4 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/shortcodes/single/tdb_single_comments.php(470): Closure->__invoke() #5 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdb_single_comments->render() #6 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #7 [internal function]: do_shortcode_tag() #8 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #9 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(222): do_shortcode() #10 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_column.php(440): tdc_composer_block->do_shortcode() #11 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): vc_column->render() #12 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #13 [internal function]: do_shortcode_tag() #14 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #15 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(222): do_shortcode() #16 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/shortcodes/vc_row.php(1204): tdc_composer_block->do_shortcode() #17 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): vc_row->render() #18 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #19 [internal function]: do_shortcode_tag() #20 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #21 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/tdc_composer_block.php(222): do_shortcode() #22 /home/milosbts/public_html/wp-content/plugins/td-composer/includes/shortcodes/tdc_zone.php(771): tdc_composer_block->do_shortcode() #23 /home/milosbts/public_html/wp-content/plugins/td-composer/legacy/common/wp_booster/td_global_blocks.php(27): tdc_zone->render() #24 /home/milosbts/public_html/wp-includes/shortcodes.php(434): td_global_blocks::proxy_function() #25 [internal function]: do_shortcode_tag() #26 /home/milosbts/public_html/wp-includes/shortcodes.php(273): preg_replace_callback() #27 /home/milosbts/public_html/wp-includes/class-wp-hook.php(324): do_shortcode() #28 /home/milosbts/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #29 /home/milosbts/public_html/wp-content/plugins/td-cloud-library/wp_templates/tdb_view_single.php(189): apply_filters() #30 /home/milosbts/public_html/wp-includes/template-loader.php(106): include(‘/home/milosbts/…’) #31 /home/milosbts/public_html/wp-blog-header.php(19): require_once(‘/home/milosbts/…’) #32 /home/milosbts/public_html/index.php(17): require(‘/home/milosbts/…’) #33 {main} thrown in /home/milosbts/public_html/wp-content/plugins/td-cloud-library/parts/tdb-comments.php on line 177

There has been a critical error on this website.

As soon as I move back from any php 8.x version to php 7.4 the error message is gone.

Post count: 35449

Hi,
Can you make a full backup for the website and contact us via email at contact @tagdiv.com and provide temporary wp-admin and cPanel access to investigate the problem? Also, include the link to this topic so that you can identify yourself.
Thank you!

Post count: 8

Email has been sent with the credentials.

Post count: 35449

Hi,
The problem should be resolved.
Thank you!

Post count: 8

Thank you so much, it is resolved.

Post count: 162

Hello @Calin I seem to have the same issue. Since PHP updates cause some errors with different plugins, I am testing it on the Staging site. The only error I am getting is this:

Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the td-cloud-library 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 /home/customer/www/staging3….in/public_html/wp-includes/functions.php on line 6121 – which is basically:

if ( E_USER_ERROR === $error_level ) {
throw new WP_Exception( $message );
}

trigger_error( $message, $error_level );
}

May I ask how you all solved this?

Post count: 35449

Hi theheritagelab, to resolve the problem with _load_textdomain_just_in_time from td-cloud-library, please download and reinstall the plugin from here -> https://cdn.tagdiv.com/wp-content/uploads/2025/07/td-cloud-library.zip
I hope this will help you!

Post count: 162

Hey @Calin, yes, I did this but it didn’t help but I also read your response to a similar question regarding the author-plugin. Removed Publish Press’ multi author plugin and then re-installed this zip file and it worked. All is good. I have another issue, but will write a new post on it! Thanks for your help 🙂

Post count: 5

Hi @Calin, may I join the queue? 🙂

My messages are referring to Newsmag and healt-check – see below.
Are there any updates for me?
BTW, everything seems to work fine, I would just like to get rid of those messages cluttering my debug.log 🙂

Thanks!

[14-Aug-2025 20:38:54 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the Newsmag 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 /var/www/vhosts/h093596.server63.campusspeicher.de/rasejanje.info/wp-includes/functions.php on line 6121
[14-Aug-2025 20:38:54 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the health-check 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 /var/www/vhosts/h093596.server63.campusspeicher.de/rasejanje.info/wp-includes/functions.php on line 6121

Post count: 5

I am also facing a similar issue, I get the below message

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the td-cloud-library 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 /home/***/public_html/wp-includes/functions.php on line 6121

Post count: 5

Hi John,

your problem has a solution already, as Calin wrote in some other posts. Just install the newest version of plugin from https://cdn.tagdiv.com/wp-content/uploads/2025/07/td-cloud-library.zip

PS. I am not an expert, I just reposted the advice from Calin.

Regards,
Milan

Post count: 35449

Hi @Rase.Admin and @Abraham John,
Please try the version of the plugin from here https://cdn.tagdiv.com/wp-content/uploads/2025/07/td-cloud-library.zip the problem with _load_textdomain_just_in_time will be fixed.
Thank you!

Post count: 5

Hi Calin,

Thank you for your advice, I’ve read it already a couple of times.
I have one question: I am not using td-cloud-plugin and my error message says “Newsmag” and not “td-cloud…” as with other people who reported here.

PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the Newsmag domain was triggered too early.

Is td-cloud a part of Newsmag? In other words, I understand that you advise me to install td-cloud-library to solve Newsmag problem. Correct?

Thank you!

Post count: 35449

Hi Milan,
This means you are not using Newspaper theme and you are using Newsmag theme. Ok, to resolve this, please contact us via email at contact@tagdiv.com and please provide a temporary WP-Admin and cPanel access to the website. Also, make sure that you have a complete backup of the website. We’ll check it out as soon as possible.
Thank you!

Viewing 22 posts - 1 through 22 (of 22 total)
The forum ‘Newspaper’ is closed to new topics and replies.