Error after changing to PHP 8.0

12.02.2023 16:25
#1
heinzm
Joomshopping forum user no avatar
Name: heinz
11.02.2012
Posts: 84
Quote
Error after changing to PHP 8.0

After switching from PHP 7.4.33 to PHP 8.0 when clicking on some - only some - categories in the frontend, an error page appears with the message: "0 - count(): Argument #1 ($value) must be of type Countable|array, zero given".

All other functions in the shop and on the normal website outside the shop are working normally.
Error after changing to PHP 8.0


Joomla: 3.10.11
JoomShopping: 4.18.9
PHP: 7.4.33
MySQL: 8.0.32
Website Url: www.juwelen-binder.at
 
12.02.2023 16:41
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25936
Quote
Aw: Error after changing to PHP 8.0

- Enable Debug System
Joomla / configuration
Debug System: Yes

---------------------------------------
Many addons not works for php 8


Last change: 12.02.2023 16:42
 
06.03.2023 14:15
#3
heinzm
Joomshopping forum user no avatar
Name: heinz
11.02.2012
Posts: 84
Quote
Aw: Error after changing to PHP 8.0

In debug mode the following is displayed ( at the moment only on the shipping page). Plugins are up to date and those not needed are disabled:

count(): Argument #1 ($value) must be of type Countable|array, null given

/var/home/juwelen-binder_at/www/components/com_jshopping/shippings/sm_depend_price/sm_depend_price.php:32
Call stack
# Function Location
1 () JROOT/components/com_jshopping/shippings/sm_depend_price/sm_depend_price.php:32
2 sm_depend_price->getPrices() JROOT/components/com_jshopping/tables/shippingmethodprice.php:87
3 jshopShippingMethodPrice->calculateSum() JROOT/components/com_jshopping/models/checkoutshipping.php:47
4 jshopCheckoutShipping->getCheckoutListShippings() JROOT/components/com_jshopping/controllers/checkout.php:250
5 JshoppingControllerCheckout->step4() JROOT/libraries/src/MVC/Controller/BaseController.php:702
6 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/components/com_jshopping/jshopping.php:25
7 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
8 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
9 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:194
10 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:233
11 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
12 Joomla\CMS\Application\CMSApplication->execute() JROOT/index.php:49

All other works fine in PHP 7.4.33
Aw: Error after changing to PHP 8.0

 
06.03.2023 15:33
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25936
Quote
Aw: Error after changing to PHP 8.0

Install
Calculate for price 1.3.1
-----------------------------------------
after install
Options / Shipping / Extensions for price calculation

delete 1 DependPrice


Last change: 06.03.2023 15:33
 
06.03.2023 20:02
#5
heinzm
Joomshopping forum user no avatar
Name: heinz
11.02.2012
Posts: 84
Quote
Aw: Error after changing to PHP 8.0

Great! It works!
Many thanks for quick and perfect support!

 


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.