Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
europeantimes
tagDiv Member

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,

europeantimes
tagDiv Member

I have even activade the cache of the Flex blocks to 1 day and 1 week… but still get the same problems

europeantimes
tagDiv Member

I’m experiencing severe performance and stability issues with the Newspaper theme and the TagDiv Composer. Even with proper caching enabled — Redis Object Cache plus WP Super Cache — the server load rises very quickly after only a few editing or viewing actions.

My site runs on an Infomaniak CloudServer (4 vCPU, 12 GB RAM), and yet PHP memory usage spikes drastically whenever multiple posts are opened or edited, or just visited by users, which results in 503 and 429 errors.

Additionally, I’ve observed that multiple duplicated MySQL queries are being sent to the database for a single page load, which suggests there’s room for optimization in the theme’s database handling.

I’ve also seen several other users report the same issue with the Newspaper theme after their sites have grown large over time.

Could you please clarify what exact details or logs you need from me to investigate this issue properly?
Once I know what information is required, I can provide it precisely to help you diagnose and resolve the problem.

Thank you,

europeantimes
tagDiv Member

Hello TagDiv Support,

I’m reaching out regarding two critical PHP 8.4 compatibility issues in the td-cloud-library plugin bundled with the Newspaper theme. These are causing repeated deprecation warnings and notices on my site (europeantimes.news), even though the site functions partially.

After thorough debugging, I’ve identified the following issues:

### 1. **Deprecated Constructor in Mobile_Detect.php**

**File:**
/wp-content/plugins/td-cloud-library/includes/Mobile_Detect.php (line 684)

**Issue:**
The constructor uses implicitly nullable parameters, which is deprecated in PHP 8.4:

`php
function __construct($userAgent = null, $httpHeaders = null)
`

This triggers the following error:
`
PHP Deprecated: Mobile_Detect::__construct(): Implicitly marking parameter $headers as nullable is deprecated, the explicit nullable type must be used instead
`

**Recommended Fix:**
Update the constructor to use explicit nullable types:

`php
function __construct(?string $userAgent = null, ?array $httpHeaders = null)
`

### 2. **Text Domain Loaded Too Early**

**Issue:**
The td-cloud-library plugin loads its translations **before the init action**, which triggers a WordPress 6.7+ deprecation notice:

`
PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ‘td-cloud-library’ domain was triggered too early.
`

**Cause:**
load_plugin_textdomain() is called directly when the plugin loads, not within the init hook.

**Recommended Fix:**
Move the translation loading to the init action:

`php
add_action(‘init’, function() {
load_plugin_textdomain(‘td-cloud-library’, false, dirname(plugin_basename(__FILE__)) . ‘/languages’);
});
`

### Environment
– WordPress: 6.8.2
– PHP: 8.4.6
– Theme: Newspaper (latest version)
– Plugin: td-cloud-library (bundled)
– Redis: Active (Redis Object Cache Pro)

### Request
Could you please:
1. Confirm if these issues are known and if a fix is already available?
2. Provide an updated version of td-cloud-library with full PHP 8.4 support?
3. Advise on any known conflicts with Redis or high-traffic automated sites?

These notices are not just noise — they impact performance and indicate deeper compatibility issues.

Thank you for your time and support. I look forward to your response.

Best regards,

europeantimes
tagDiv Member

Solved. When the update of the version was done, the tagDiv Standard Pack had not been updated or installed automatically. So I found it, installed it, activate it, and now it works well.

europeantimes
tagDiv Member

Info sent to you.

europeantimes
tagDiv Member

It only happens with the homepage. And I have no revisions (don’t know why).

europeantimes
tagDiv Member

Thank you.
I keep getting:
Error at zones: 6(models) : 5(dom). The model does not match the content Current state has involved an issue. You could try an UNDO operation (CTRL+Z / CTRL+SHIFT+Z)

I have tried to follow all the different articles that have been published and that you have suggested, BUT I have been unsuccessful.

europeantimes
tagDiv Member

I have the same problem, and I don’t have Elementor nor any other page editor.

europeantimes
tagDiv Member

Hello,

this link is not working for me
https://forum.tagdiv.com/weather-widget/

What I am trying to find is if the weather widget of the header can be set to automatically show the location of the visitor.

Best

Ivan

Viewing 10 posts - 1 through 10 (of 10 total)