Status PHP 8 compatibility

  • Posts: 43
  • Thank you received: 1
3 years 3 months ago #335096

-- url of the page with the problem -- : www.industrialgarden.nl
-- Joomla version -- : 3.10.0

Can you give an update on compatibility of Hikashop with:
-php 8

Last edit: 3 years 3 months ago by hmd.

Please Log in or Create an account to join the conversation.

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
3 years 3 months ago #335104

Hello,

Yes, since HikaShop 4.4.3, php8 is filly supported by HikaShop.
You can have these kind of informations (and many other) in the HikaShop changelog .



Hope this will answer you.
Regards

Last edit: 3 years 3 months ago by Philip.

Please Log in or Create an account to join the conversation.

  • Posts: 50
  • Thank you received: 3
2 years 7 months ago #340655

Hi,

it seems that there is a bug when using PHP8:

I cannot open a basket with Customer/Basket in the backend. (administrator/index.php?option=com_hikashop&ctrl=cart&task=edit&cart_type=cart&cart_id=36922&cid[]=36922)
I get this error:
0 htmlspecialchars(): Argument #1 ($string) must be of type string, array given

Whe using PHP7.4 all is ok.

Thanks for help.

Regards,
Stefan

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 7 months ago #340660

Hi,

I'm not able to reproduce the problem on my end.
It must happen only with something specific.
Could you activate the "debug system" setting of the Joomla configuration and try again ?
It should display an error message with more information, which will allow us to better understand where is the problem to be able to fix it.

Please Log in or Create an account to join the conversation.

  • Posts: 50
  • Thank you received: 3
2 years 7 months ago #340661

Here is the debug message:

Es ist ein Fehler aufgetreten!

0 htmlspecialchars(): Argument #1 ($string) must be of type string, array given
/data/web/e133867/html/weingut-frei.at/libraries/src/MVC/View/HtmlView.php:387

Call stack
# Function Location
1 () JROOT/libraries/src/MVC/View/HtmlView.php:387
2 htmlspecialchars()
3 call_user_func() JROOT/libraries/src/MVC/View/HtmlView.php:387
4 Joomla\CMS\MVC\View\HtmlView->escape() JROOT/administrator/components/com_hikashop/views/cart/tmpl/form.php:59
5 include() JROOT/libraries/src/MVC/View/HtmlView.php:701
6 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/administrator/components/com_hikashop/helpers/helper.php:2623
7 hikashopView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:230
8 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2578
9 hikashopView->display() JROOT/administrator/components/com_hikashop/views/cart/view.html.php:22
10 CartViewCart->display() JROOT/libraries/src/MVC/Controller/BaseController.php:664
11 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2315
12 hikashopController->display() JROOT/administrator/components/com_hikashop/helpers/helper.php:2059
13 hikashopController->edit() JROOT/administrator/components/com_hikashop/controllers/cart.php:56
14 CartController->edit() JROOT/libraries/src/MVC/Controller/BaseController.php:702
15 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/administrator/components/com_hikashop/helpers/helper.php:2293
16 hikashopController->execute() JROOT/administrator/components/com_hikashop/hikashop.php:73
17 require_once() JROOT/libraries/src/Component/ComponentHelper.php:402
18 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT/libraries/src/Component/ComponentHelper.php:377
19 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:101
20 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:159
21 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:225
22 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/index.php:51

Zurück zum Kontrollzentrum

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
2 years 7 months ago #340664

Hi,

Thank you for that. It actually only happens if you have a coupon added to the cart. That's why I didn't get the error on my end.
I've made a patch for this.
Download the install package of HikaShop on our website and install it on yours and it will add that patch and fix the problem.

Please Log in or Create an account to join the conversation.

  • Posts: 50
  • Thank you received: 3
2 years 7 months ago #340727

Thank you for your fast solution.
Works fine!

The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.080 seconds
Powered by Kunena Forum