News php 8 cms 1.8

A place for general not CMSimple related discussions
Post Reply
ustalo
Posts: 187
Joined: Mon Aug 16, 2010 7:42 am
Location: Russia
Contact:

News php 8 cms 1.8

Post by ustalo » Sun Jan 12, 2025 8:33 am

PHP 8
we get


Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /Users/sima/Sites/sima.spb.ru/plugins/news/index.php:143
Stack trace:
#0 /Users/sima/Sites/sima.spb.ru/plugins/news/index.php(143): date('d.m.Y', '')
#1 /Users/sima/Sites/sima.spb.ru/cmsimple/functions.php(203) : eval()'d code(1): news(Object(News_Category), 8)
#2 /Users/sima/Sites/sima.spb.ru/cmsimple/functions.php(203): eval()
#3 /Users/sima/Sites/sima.spb.ru/cmsimple/functions.php(162): XH_evaluateSinglePluginCall('news('\xD0\xA1\xD0\xBE\xD0\xB1\xD1\x8B\xD1...')
#4 /Users/sima/Sites/sima.spb.ru/cmsimple/functions.php(260): evaluate_plugincall('{{{PLUGIN:boile...')
#5 /Users/sima/Sites/sima.spb.ru/plugins/boilerplate/index.php(45): evaluate_scripting('{{{PLUGIN:boile...')
#6 /Users/sima/Sites/sima.spb.ru/cmsimple/functions.php(203) : eval()'d code(1): boilerplate('now')
#7 /Users/sima/Sites/sima.spb.ru/cmsimple/functions.php(203): eval()
#8 /Users/sima/Sites/sima.spb.ru/cmsimple/functions.php(162): XH_evaluateSinglePluginCall('boilerplate('no...')
#9 /Users/sima/Sites/sima.spb.ru/cmsimple/functions.php(260): evaluate_plugincall('

php 7 is ok
solution?
Aleksei

olape
Posts: 3346
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: News php 8 cms 1.8

Post by olape » Mon Jan 13, 2025 10:57 am

stay with php 7.

I can't find the plugin.
So unfortunately I can't help either.
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

lck
Posts: 3419
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: News php 8 cms 1.8

Post by lck » Mon Jan 13, 2025 11:46 am

olape wrote:
Mon Jan 13, 2025 10:57 am
I can't find the plugin.
https://pluginxh.iseye.de/?Plugins/NEWSPlugin
👉 Ludwig's Templates for MultiPage & OnePage.   „Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“

lck
Posts: 3419
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: News php 8 cms 1.8

Post by lck » Mon Jan 13, 2025 11:50 am

ustalo wrote:
Sun Jan 12, 2025 8:33 am
PHP 8
we get

Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /Users/sima/Sites/sima.spb.ru/plugins/news/index.php:143
Which exact version is used PH 8.3.x, PHP 8.4.x?
I can't reproduce the error at all, neither under PHP 8.2.12, 8.3.11 nor under PHP 8.4.1. Tested locally under Xampp.
@Olaf: Or are there other factors at play?
👉 Ludwig's Templates for MultiPage & OnePage.   „Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“

olape
Posts: 3346
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: News php 8 cms 1.8

Post by olape » Mon Jan 13, 2025 11:59 am

It is either a different plugin, or at least a different version.
is in line 143: $o .= '</div>';
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

lck
Posts: 3419
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: News php 8 cms 1.8

Post by lck » Mon Jan 13, 2025 12:42 pm

olape wrote:
Mon Jan 13, 2025 11:59 am
It is either a different plugin, or at least a different version.
is in line 143: $o .= '</div>';
The question goes to ustalo.
👉 Ludwig's Templates for MultiPage & OnePage.   „Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“

ustalo
Posts: 187
Joined: Mon Aug 16, 2010 7:42 am
Location: Russia
Contact:

Re: News php 8 cms 1.8

Post by ustalo » Wed Jan 22, 2025 1:29 pm

looks like this plug-in from some resourse. I will look for
Aleksei

Post Reply