Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Recents error messages...
@Devs:
Since the last commits (a few weeks ago), I’ve been getting annoying error messages on my local installation synchronized within Github (dev branch). These messages appear when I access to an individual article from the administration interface…
Fatal error: Uncaught TypeError: Unsupported operand types: array + bool in C:\MAMP\htdocs\textpattern\textpattern\include\txp_article.php:1098 Stack trace: #0 C:\MAMP\htdocs\textpattern\textpattern\lib\txplib_admin.php(233): article_partial_extended_column(Array, 'extended_column') #1 C:\MAMP\htdocs\textpattern\textpattern\include\txp_article.php(783): updatePartials(Array, Array, Array) #2 C:\MAMP\htdocs\textpattern\textpattern\include\txp_article.php(124): article_edit() #3 C:\MAMP\htdocs\textpattern\textpattern\index.php(218): include('C:\\MAMP\\htdocs\\...') #4 {main} thrown in C:\MAMP\htdocs\textpattern\textpattern\include\txp_article.php on line 1098
Coz the final 4.9 is now very close, that could be important for your interest.
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: Recents error messages...
Hmm. I’m not even sure what line 1098 does. Lag and Lead are new to me. Oleg might be able to shed some light on it.
Thanks for the report.
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: Recents error messages...
Thanks for the report. These are MySQL 8 only optimisations, that I thought would be caught by try...catch block, but they seemingly are not. Should be quickly patched now, please test, though I’m not sure any more whether pre-8 mysql versions access to the next/prev article functionality on the admin side.
Offline
Re: Recents error messages...
Ya. That’s better now. I can display an article content. But after this warning message (twice): Warning "Undefined array key "prev_id"".
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: Recents error messages...
Thanks! Better, but still bad. Okay, will code it more defensively, but won’t be able to test, since the issue is not reproducible on my side.
Offline
Offline
Re: Recents error messages...
That’s absolutely perfect! 👌
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
#8 Today 06:54:36
- ax
- Plugin Author
- From: Germany
- Registered: 2009-08-19
- Posts: 166
Re: Recents error messages...
A similar error occurs with a fresh installation of TXP 4.9 and PHP version 8.4.16 (Debian 13):
Uncaught TypeError: Unsupported operand types: string - int in ... textpattern/include/txp_diag.php:505
referring to this line:
$db_server_timeoffset = $db_server_timestamp - $now;
However, I’m not sure if it has anything to do with my installation, because it doesn’t appear on the demo site.
EDIT: Apparently, this is an upgrade issue, caused by upgrading an old TXP site from 2021 to version 4.9.
On a different note: For Textile help, there is this new referrer now: textile.help. I grabbed this domain on Black Friday :)
Last edited by ax (Today 07:25:29)
Offline
Pages: 1