By edthenet on Monday, 05 June 2023
Replies 5
Likes 0
Views 793
Votes 0
I have updated a website to Joomla 4 and with that update i also want to switch to PHP8.1
But i get errors like this in the front-end and simular error on the back-end dashboard

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/fabriek/domains/fabriekske.be/public_html/mm4/components/com_jevents/libraries/dbmodel.php on line 522
I'm sorry for the late reaction. Normally i'm very willing to help. Now i just installed the latest version and everything seems to work great. Thanks
·
Wednesday, 05 July 2023 13:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Can you change line 515 of the referenced file to read


$jevtask = $input->getString("jevtask", "");

Does that resolve the deprecation message?
·
Tuesday, 06 June 2023 10:21
·
0 Likes
·
0 Votes
·
0 Comments
·
I have a similar problem with PHP 8.1 but not with the same file.

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/customer/www/eume.upf.org/public_html/components/com_jevents/views/default/helpers/defaultgetstartenddates.php on line 47

Can we expect the Jevents people to fix this?
·
Sunday, 27 August 2023 16:06
·
0 Likes
·
0 Votes
·
0 Comments
·
sillitoe

Can you disable error reporting in Joomla to hide this PHP notice. It will be resolved in the next release
·
Tuesday, 05 September 2023 11:40
·
0 Likes
·
0 Votes
·
0 Comments
·
No problem at all, if it's resolved soon. Thanks a lot.
·
Tuesday, 05 September 2023 13:57
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post