Page 1 of 1
Error after php-update
Posted: Thu Dec 28, 2023 1:27 pm
by roze
I've made a php update in the admin-space of my web-hoster
now I get this:
Uncaught TypeError: Unsupported operand types: string - int in /home/sanjoy-arte.nl/perfectsound.org/cmsimple/classes/Li.php:77
Stack trace:
#0 /home/sanjoy-arte.nl/perfectsound.org/cmsimple/tplfuncs.php(191): XH\Li->render()
#1 /home/sanjoy-arte.nl/perfectsound.org/cmsimple/tplfuncs.php(460): li()
#2 /home/sanjoy-arte.nl/perfectsound.org/templates/fhs-whitespace/template.htm(65): submenu()
#3 /home/sanjoy-arte.nl/perfectsound.org/cmsimple/cms.php(1335): include('...')
#4 /home/sanjoy-arte.nl/perfectsound.org/index.php(6): include('...')
#5 {main}
thrown in /home/sanjoy-arte.nl/perfectsound.org/cmsimple/classes/Li.php on line 77
How can I solve this?
www.perfectsound.org
Re: Error after php-update
Posted: Thu Dec 28, 2023 1:38 pm
by roze
And this in the debug mode of another website of myself:
Code: Select all
Uncaught TypeError: Unsupported operand types: string - int in /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/templates/slimmenu02/slimmenu/slimmenu.php:21
Stack trace:
#0 /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/templates/slimmenu02/slimmenu/slimmenu.php(6): liSlimMenu()
#1 /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/templates/slimmenu02/template.htm(124): tocSlimMenu()
#2 /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/cmsimple/cms.php(1335): include('...')
#3 /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/index.php(6): include('...')
#4 {main}
thrown in /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/templates/slimmenu02/slimmenu/slimmenu.php on line 21
www.podologiedommelen.nl
Re: Error after php-update
Posted: Thu Dec 28, 2023 2:47 pm
by olape
roze wrote: ↑Thu Dec 28, 2023 1:27 pm
I've made a php update in the admin-space of my web-hoster
now I get this:
Uncaught TypeError: Unsupported operand types: string - int in /home/sanjoy-arte.nl/perfectsound.org/cmsimple/classes/Li.php:77
Stack trace:
#0 /home/sanjoy-arte.nl/perfectsound.org/cmsimple/tplfuncs.php(191): XH\Li->render()
#1 /home/sanjoy-arte.nl/perfectsound.org/cmsimple/tplfuncs.php(460): li()
#2 /home/sanjoy-arte.nl/perfectsound.org/templates/fhs-whitespace/template.htm(65): submenu()
#3 /home/sanjoy-arte.nl/perfectsound.org/cmsimple/cms.php(1335): include('...')
#4 /home/sanjoy-arte.nl/perfectsound.org/index.php(6): include('...')
#5 {main}
thrown in /home/sanjoy-arte.nl/perfectsound.org/cmsimple/classes/Li.php on line 77
How can I solve this?
www.perfectsound.org
Which PHP versions? Before and after.
Let me guess:
The new PHP version is 8.xx ? Then update CMSimple_XH 1.7.3 --> 1.7.6 first.
Re: Error after php-update
Posted: Thu Dec 28, 2023 3:54 pm
by roze
Olaf:
for the website
www.perfectsound.org: I updated to the version CMSimple_XH 1.7.6 and that works fine, Thanks!
But for the website
www.podologiedommelen.nl I've also made the same update to CMSimple_XH 1.7.6 but again I get this error as before"
Uncaught TypeError: Unsupported operand types: string - int in /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/templates/slimmenu02/slimmenu/slimmenu.php:21
Stack trace:
#0 /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/templates/slimmenu02/slimmenu/slimmenu.php(6): liSlimMenu()
#1 /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/templates/slimmenu02/template.htm(124): tocSlimMenu()
#2 /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/cmsimple/cms.php(1344): include('...')
#3 /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/index.php(6): include('...')
#4 {main}
thrown in /home/sanjoy-arte.nl/public_html/podologiedommelen.nl/templates/slimmenu02/slimmenu/slimmenu.php on line 21
What do I have to do?
Greetings Rob
Re: Error after php-update
Posted: Thu Dec 28, 2023 4:04 pm
by Gert
Hello,
your template is from 2017, made for php 5 ...
Download this and unzip it:
https://www.ge-webdesign.de/downloadcou ... php?id=537
Take the slimmenu.php from one of the templates, you will find it here:
.../templatefuncs/scripts/slimmenu.php
and overwrite the slimmenu.php of your template, located here:
.../slimmenu/slimmenu.php
with the new slimmenu.php.
For the future, you should look for another template, because SlimMenu will not longer be supported anymore,
Gert
Re: Error after php-update
Posted: Thu Dec 28, 2023 4:15 pm
by roze
Gert,
Thank you for your help again.
It works fine now. I will go and look for another suitable template.
Greetz