Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
Hi,

on a Couch 2.3 website with php 8.1.18 I got an fatal error in the tags
Code: Select all
Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /foo/bar/couch/tags.php:1231 Stack trace: #0 /foo/bar/couch/parser/parser.php(467): KTags->add(Array, Object(KNode)) #1 /foo/bar/couch/parser/parser.php(446): KNode->get_HTML() #2 /foo/bar/couch/functions.php(171): KNode->get_HTML() #3 /foo/bar/couch/parser/parser.php(460): KFuncs->resolve_parameters(Array) #4 /foo/bar/couch/tags.php(1089): KNode->get_HTML() #5 /foo/bar/couch/parser/parser.php(467): KTags->k_if(NULL, Object(KNode)) #6 /foo/bar/couch/tags.php(3039): KNode->get_HTML() #7 /foo/bar/couch/parser/parser.php(467): KTags->pages(Array, Object(KNode)) #8 /foo/bar/couch/parser/parser.php(446): KNode->get_HTML() #9 /foo/bar/couch/parser/parser.php(966): KNode->get_HTML() #10 /foo/bar/couch/parser/parser.php(1000): KParser->get_HTML() #11 /foo/bar/couch/tags.php(605): KParser->get_cached_HTML('/var/www/virtua...') #12 /foo/bar/couch/parser/parser.php(467): KTags->embed(Array, Object(KNode)) #13 /foo/bar/couch/addons/tiny-html-minifier/TinyMinify.php(24): KNode->get_HTML() #14 /foo/bar/couch/parser/parser.php(482): TinyMinify::minify(Array, Object(KNode)) #15 /foo/bar/couch/parser/parser.php(446): KNode->get_HTML() #16 /foo/bar/couch/parser/parser.php(966): KNode->get_HTML() #17 /foo/bar/couch/cms.php(239): KParser->get_HTML() #18 /foo/bar/index.php(23): COUCH::invoke() #19 {main} thrown in /foo/bar/couch/tags.php on line 1231


As I know its only allowed to use int with Operants like + or -.

Cheers
Hi,

It appears 'tinyminify' (viewtopic.php?f=8&t=12431) is involved in the operation.
Could you please post this issue in the mentioned thread so that the authors of the addon may look into it?
Unfortunatley tinyminify crahs on certain inline svg, because it is based on https://github.com/jenstornell/tiny-html-minifier. :(
SimonWpt wrote: Unfortunatley tinyminify crahs on certain inline svg, because it is based on https://github.com/jenstornell/tiny-html-minifier. :(

If OP's error about inline SVG?
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Hi,
I'm back with teh same error but a page where the minify is deleted.
You can see it on #13, there is no addon definied as in the opening post.
Code: Select all
Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /var/www/virtual/kdjfs/html/hillenbrand_new/couch/tags.php:1246 Stack trace: #0 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(467): KTags->add(Array, Object(KNode)) #1 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(446): KNode->get_HTML() #2 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/functions.php(171): KNode->get_HTML() #3 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(460): KFuncs->resolve_parameters(Array) #4 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/tags.php(1104): KNode->get_HTML() #5 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(467): KTags->k_if(NULL, Object(KNode)) #6 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/tags.php(3053): KNode->get_HTML() #7 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(467): KTags->pages(Array, Object(KNode)) #8 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(446): KNode->get_HTML() #9 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(966): KNode->get_HTML() #10 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(1000): KParser->get_HTML() #11 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/tags.php(620): KParser->get_cached_HTML('/var/www/virtua...') #12 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(467): KTags->embed(Array, Object(KNode)) #13 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(446): KNode->get_HTML() #14 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/parser/parser.php(966): KNode->get_HTML() #15 /var/www/virtual/kdjfs/html/hillenbrand_new/couch/cms.php(239): KParser->get_HTML() #16 /var/www/virtual/kdjfs/html/hillenbrand_new/index.php(23): COUCH::invoke() #17 {main} thrown in /var/www/virtual/kdjfs/html/hillenbrand_new/couch/tags.php on line 1246

I have try php 8.1 and 8.4 and it's Couch 2.4.

Have someone any idea what can I do?
5 posts Page 1 of 1