- NewsmagHow to update a plugin
- NewspaperHow to update a plugin
- NewsmagHow to update the theme
- NewsmagHow to update the WPBakery plugin
- NewspaperHow to update the WPBakery Page Builder plugin
- NewspaperHow to Update the Newspaper Theme
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
- Apitd_api_category_top_posts_style::update_key
- Apitd_api_category_top_posts_style::update
- Apitd_api_category_template::update_key
- Apitd_api_category_template::update
Category Description appears as if it was on mobile even that I am on a desktop. After the last update.
Dear TagDiv Support,
I am writing to report several critical issues affecting the Newspaper theme and its bundled plugin td-cloud-library, which are causing instability and performance problems on my website (europeantimes.news).
After thorough debugging, I’ve identified key areas that require immediate attention from your development team.
🔧 1. Translation Loading Triggered Too Early
Error Message:
“Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ‘td-cloud-library’ domain was triggered too early.”
Location:
tdb_config::on_tdc_loaded() in /wp-content/plugins/td-cloud-library/includes/tdb_config.php
Issue:
The theme loads translation strings before WordPress is fully initialized. According to WordPress Codex , translations should be loaded at the init action or later.
Currently, this causes repeated “doing it wrong” notices and impacts system stability under high load.
Request:
Please ensure all text domains are loaded properly via the init hook:
php
1
2
3
add_action(‘init’, function() {
load_plugin_textdomain(‘td-cloud-library’, false, dirname(plugin_basename(__FILE__)) . ‘/languages’);
});
🔧 2. Deprecated Constructor in Mobile_Detect Class
File:
/wp-content/plugins/td-cloud-library/includes/Mobile_Detect.php
Issue:
The constructor uses outdated syntax that triggers deprecation warnings in modern PHP environments.
This affects compatibility and indicates code maintenance is needed.
Request:
Update the constructor to follow current PHP standards:
php
1
function __construct(?string $userAgent = null, ?array $httpHeaders = null)
🔧 3. Excessive Database Queries Due to Empty Email Lookups
Observed Behavior:
Repeated queries like:
sql
1
SELECT * FROM wp_users WHERE user_email = ‘d41d8cd98f00b204e9800998ecf8427e’
(This is the MD5 hash of an empty string.)
Cause:
Avatar functions call get_user_by(’email’) without validating that the email exists.
Impact:
Unnecessary database load, especially under automation or bot traffic.
Request:
Add validation before querying:
php
1
2
3
if ( ! empty($email) && is_email($email) ) {
$user = get_user_by(’email’, $email);
}
🔧 4. Aggressive Hook Execution Before Initialization
In tdb_config.php, translatable strings are used inside on_tdc_loaded(), which fires before init. This forces premature loading of language files and violates WordPress best practices.
Example Line:
tdb_config::on_tdc_loaded() → calls __() too early
Recommended Fix:
Defer any logic involving translation functions until after the init action.
✅ Environment Summary
Theme: Newspaper (latest version)
Plugin: td-cloud-library (bundled)
WordPress: 6.8.2
Caching: Redis Object Cache + Hummingbird
Traffic Type: High-volume, automated content publishing
🛠 Requested Actions
Please:
Acknowledge these issues
Confirm if fixes are planned in an upcoming release
Provide guidance on running the theme reliably at scale
These are not minor notices — they directly impact performance, scalability, and long-term compatibility with WordPress core.
Thank you for your time and support. I look forward to your response.
Best regards,
our page https://www.franke-raumwert.de/aktuelles/ is broken after the latest update.
We tried clearing the cache, deactivating all other plug-ins but the theme styles and builder shortcodes aren’t working at all. The client is furious. what can we do about this?
Thanks Calin. Maybe in the next update the link can point directly to the changelog instead of the homepage? It a big changelog this time. You all have done a lot of work. Thanks for that.
Topic can be closed.
Critical Bug in td_util.php Line 1196 – Search Functionality Broken (Array to String Conversion)
Description:
I’ve encountered a critical bug in the Newspaper theme that completely breaks the WordPress search functionality. The issue is located in /wp-content/plugins/td-composer/legacy/common/td_util.php at line 1196.
Symptoms:
- Search returns “Critical Error” message
- Site becomes inaccessible when performing searches
- Error occurs both on frontend search and AJAX search
- Debug log shows:
PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given
Root Cause:
Line 1196 in td_util.php contains:
$buffer .= implode(' ', $value);
The function implode() expects $value to be an array, but in some cases (particularly with custom post meta or complex search queries), $value can be a string, causing a fatal TypeError.
Temporary Fix/Workaround:
Replace line 1196 with proper type checking:
// Line 1196 - Fixed version with type checking
if (is_array($value)) {
$buffer .= implode(' ', $value);
} else {
$buffer .= (string)$value;
}
This fix checks if $value is an array before using implode(), and converts it to a string if it’s not an array.
Steps to Reproduce:
- Install Newspaper theme with td-composer plugin
- Use WordPress search with complex queries or custom post meta
- Search function triggers fatal error
Environment:
- Newspaper Theme (latest version)
- td-composer plugin (included with theme)
- PHP 8.0+
- WordPress 6.x
Request:
Could you please include this fix in the next update of td-composer? This is a critical bug that breaks essential site functionality. The type checking ensures compatibility with all data types that might be passed to this function.
Affected File:
/wp-content/plugins/td-composer/legacy/common/td_util.php – Line 1196
Thank you for your attention to this matter!
Hi,
We are aware of this issue and right now a developer is working on it, when it is ready an update will be made to the plugin or maybe even to the theme.
Thank you for your understanding!
Hi Calin, we did update to 12.7.2 but the plugin updated to 5.4.1 not 5.4.2. Now when we trying to update the system says we already are on the most updated version so it doesn’t update. Please let me know how we can get 5.4.2 for TagDiv Composer (the one with the patch)
Hi,
In case you didn’t get the notice for the theme version 12.7.2, please connect to your website and go to Newspaper > update and click on check for updates.
Make sure that you have a full backup before making the theme update.
– https://forum.tagdiv.com/how-to-update-the-theme-2/
Hi,
You need to create a full backup for your website and update the theme to the latest version 12.7.2 and make sure that all theme plugins you are using now are updated.
https://forum.tagdiv.com/how-to-update-the-theme-2/
Thank you!
Hello,
I have a valid license yet I have not received notification of an available update from 12.7.1. My concern are the xxs vulnerabilities related to td-cloud-library and td-composer.
Please advise.
Thank you.
can you urgently advice how we can download 5.4.2 as in the recent update the 5.4.1 was only available?
Thanks
Hi Davidpinto,
Did you check if the theme plugins were updated after the theme itself was updated? It’s possible that only the theme was updated, but the previous theme plugins weren’t.
In these situations, you should go to Newspaper > Plugins and install or update the theme plugins you’re using on your website.
Thank you!
Hi, I just updated the AMP on my blog as the new version of Newspaper requires, but some Pages have now a wierd view.
https://www.trolleygirl.it/iscrizione-newsletter/ –> empty on mobile
https://www.trolleygirl.it/ –> different view on mobile
Menu –> not working on mobile!
And all the pages! (not articles)
THe problem is that those are the most important pages on my site.. could you please help me?
Thank you
Hi,
Here is the link https://tagdiv.com/newspaper-changelog/?utm_source=forum&utm_medium=menu&utm_campaign=forum_loggedin&utm_content=52878 with what this theme update includes. Also, on the themeforest in changelog, you can see the same release notes.
Thank you!
I had the same problem and I contact my hosting provide to restore a backup of my website. After tried to install last update my header and footer have lost my edits. Now with the restore i resolved but for now i don’t update the theme. Any suggestions? thank you
Hi,
Before any update I like to review the changelog first. But with the Newspaper I noticed that the link that is given when an update is annouced in theme overview is https://tagdiv.com/Newspaper/. This doesn’t show the changelog.
Can you tell me where to find the changelog(s) and can the link inside the theme overview be corrected as such?
Thanks for your support!
Is there an update or solution to this? I have exactly the same problem!
Hello,
We apologize for the inconvenience. I’ve looked into the issue, and it appears that while a developer was assigned to address it, the fix was unintentionally left out of the recent update likely omitted during the packaging process.
I’ve informed the development team, and they’ve confirmed they will review the issue and provide either an official or unofficial update as soon as possible.
Thank you for your patience and understanding.
Hi,
The only problem in 12.7.2 was related to the table of contents from the theme, this indeed has some problems in some situations, but not on those reported.
If you do not want the option to expand the table of contents, just use the option to turn on / off expand toc – https://i.imgur.com/wNLSguh.png. If the option is disabled, the hide text will be removed and the toc will always be visible.
The other situation you are facing with the duplicate content is not related to the theme update, and I suggest keeping only one SPC and removing the second one.
Thank you!
Hello, I updated to the latest version, 12.7.2, hoping that you had fixed the issue with fake user registrations in td_ajax.php.
I had patched the file myself to avoid the problem… but after the update, it started happening again.
Haven’t you included the fix I reported? That’s not very professional — this is a serious security issue and it should be addressed.
Suddenly Table of Contents is not showing on live pages and Single Post Content is being duplicated. I updated to 12.7.2 yesterday. Could that be the problem?
Hi,
That was an example of what to do to resolve the situation you are facing, so there was no need to have that cpt, just a similar one.
But now there is no longer a need to do anything from above; just make a full backup of your website, update the theme and theme plugins after that, and the problem should be resolved.
Thank you!
Hi,
You need to manually update the Slider Revolution plugin with the version from the theme package.
Regarding the theme update, there’s only one issue so far, and it’s related to the Table of Contents element. If you are not using it, then you can make the theme update after you make a full backup of your website.
Thank you!
Thank you, will I need to do anything to Slider once the Newspaper theme is updated?
I was wondering, would you recommend updating the theme now or waiting? There seems to be issues following the update according to some of the forum entries.
Thanks again
Jude
Hello rumosdabolsa,
I’m sorry for the inconvenience, but it looks like this issue isn’t listed in the changelog for the current update. I’ve reached out to the developers to look into it and hopefully provide a temporary workaround in the meantime.
Thank you so much for your patience and understanding!