Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 Today 08:41:26
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,330
TXP 4.9: Fatal error under diagnostic tab
Fatal error: Uncaught TypeError: Unsupported operand types: string - int in
/www/apache/domains/www.varaleidja.ee/htdocs/textpattern/include/txp_diag.php:505 Stack trace: #0
/www/apache/domains/www.varaleidja.ee/htdocs/textpattern/include/txp_diag.php(85): doDiagnostics() #1
/www/apache/domains/www.varaleidja.ee/htdocs/textpattern/index.php(220): include('/www/apache/dom...') #2 {main} thrown in
/www/apache/domains/www.varaleidja.ee/htdocs/textpattern/include/txp_diag.php on line 505
Everything else on admin side is working correctly. Switched to the debug mode – no errors on the site, but almost all images are gone (they were gone on live status also)! on the admin side all images have the same date – 16 Jan 2026.
It’s a real estate website, over 10K images has already uploaded – could be this a reason?
Last edited by Gallex (Today 08:54:38)
Offline
Offline
Re: TXP 4.9: Fatal error under diagnostic tab
Aside: you may be able to silence the deprecation notices about smd_lately by replacing all instances of the strftime function in the plugin code for smd_lately with safe_strftime.
TXP Builders – finely-crafted code, design and txp
Online
#4 Today 10:54:04
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,330
Re: TXP 4.9: Fatal error under diagnostic tab
Offline
Re: TXP 4.9: Fatal error under diagnostic tab
Gallex wrote #342250:
Yeah, it does 11.8.5… :( I have plenty of sites with this database.
But 4.8.8 is working with this database
The bug was not manifesting itself in 4.8.8, we have only discovered it after 4.9.0 release. Unfortunately, the only options I can see atm are
- downgrade to txp 4.8.8
- or to mariadb 11.4
- or replace all 100 occurrences of
FROM_UNIXTIME(0)in txp code (21 files) byFROM_UNIXTIME(1). This would shift dates by 1 second, but, hopefully, have no other weird effects.
Offline
#6 Today 11:50:03
- Gallex
- Member
- Registered: 2006-10-08
- Posts: 1,330
Re: TXP 4.9: Fatal error under diagnostic tab
etc wrote #342251:
The bug was not manifesting itself in 4.8.8, we have only discovered it after 4.9.0 release. Unfortunately, the only options I can see atm are
- downgrade to txp 4.8.8
- or to mariadb 11.4
- or replace all 100 occurrences of
FROM_UNIXTIME(0)in txp code (21 files) byFROM_UNIXTIME(1). This would shift dates by 1 second, but, hopefully, have no other weird effects.
I will downgrade. Any idea, how fast you could fix it?
Offline