Site crash with php 8.0 Joomla 4.2.2 and Joomshopping 5.0.7

13.09.2022 10:34
#1
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Posts: 41
Quote
Site crash with php 8.0 Joomla 4.2.2 and Joomshopping 5.0.7

Hello again,
Still trying to migrate a live site using Joomla 3 and Joomshopping 4.x to Joomla 4 and Joomshopping 5.0.7.
As long as I stay with php 7.4 the site is OK. When I try to switch to php 8.0, the site crashes with the following error: "count(): Argument #1 ($value) must be of type Countable|array, null given".
The template producer apparently tracked this down to the login panel/operation but said he could not fix it due to copyright issues...
Is there anything you can do to help me out on this since end of life of php 7.4 is approaching quickly ?

Thanks and best regards

Philippe


Joomla: 4.2.2
JoomShopping: 5.0.7
PHP: 8.x
MySQL: 5.7
 
13.09.2022 11:17
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25934
Quote
Aw: Site crash with php 8.0 Joomla 4.2.2 and Joomshopping 5.0.7

Joomshopping 5.0.7 works with php 8

addon used?

--------
Enable debug mode Joomla
Error?

 
13.09.2022 12:04
#3
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Posts: 41
Quote
Aw: Site crash with php 8.0 Joomla 4.2.2 and Joomshopping 5.0.7

OK...Investigated a bit more. It seems that the crash is located in the Joomla login panel which is not your problem...
However, if I disable the login panel module, the site comes up with the following warning:

Warning: Attempt to read property "type" on null in /homepages/5/d614854052/htdocs/web/moi/components/com_jshopping/Service/Router.php on line 53

I'll try to touch base with the Joomla 4 devteam for the crash issue...

Thx to let me know about the Router warning...
Cheers,

Philippe

 
13.09.2022 12:10
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25934
Quote
Aw: Site crash with php 8.0 Joomla 4.2.2 and Joomshopping 5.0.7

components/com_jshopping/Service/Router.php on line 53

if ($menuItem->type == 'url') {

change to

if (isset($menuItem->type) && $menuItem->type == 'url') {


Last change: 13.09.2022 12:10
 
13.09.2022 12:31
#5
Philippe91
Joomshopping forum user no avatar
Name: Philippe
03.10.2020
Posts: 41
Quote
Aw: Site crash with php 8.0 Joomla 4.2.2 and Joomshopping 5.0.7

Thx a lot!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.