[Skip to main content](#vessel-content)

#   Error cart and wishlist

##

- **[Dnsftl](/forum/user/68880-dnsftl "View Dnsftl's Profile")**
- [![Dnsftl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/68880-dnsftl "View Dnsftl's Profile") Topic Author
- [ Offline](/forum/user/68880-dnsftl)

Less More

- Posts: 21
- Thank you received: 2
-
- [](http://www.nvsp.nl)
-

4 years 4 weeks ago [\#346054](#346054) by [Dnsftl](/forum/user/68880-dnsftl "View Dnsftl's Profile")  *[Error cart and wishlist](/forum/33-customers/905256-error-cart-and-wishlist#346054 "-- url of the page with the problem -- : none -- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.4 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : firefox 106.0.2 -- Error-message(debug-mod must be tuned on) -- : Uncaught Throwable of type TypeError thrown with message &quot;count(): Argument #1 ($value) must be of type Countable|array, null given&quot;. Stack trace: #0 &#91;ROOT&#93;/libraries/src/MVC/View/HtmlView.php(410): include() #1 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2707): Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;loadTemplate() #2 &#91;ROOT&#93;/libraries/src/MVC/View/HtmlView.php(203): hikashopView-&gt;loadTemplate() #3 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2662): Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;display() #4 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/views/cart/view.html.php(22): hikashopView-&gt;display() #5 &#91;ROOT&#93;/libraries/src/MVC/Controller/BaseController.php(639): CartViewCart-&gt;display() #6 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2385): Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;display() #7 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2143): hikashopController-&gt;display() #8 &#91;ROOT&#93;/libraries/src/MVC/Controller/BaseController.php(672): hikashopController-&gt;add() #9 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2363): Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() #10 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/hikashop.php(73): hikashopController-&gt;execute() #11 &#91;ROOT&#93;/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require&#95;once('/home/id2787516...') #12 &#91;ROOT&#93;/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher::Joomla&#92;CMS&#92;Dispatcher&#92;{closure}() #13 &#91;ROOT&#93;/libraries/src/Component/ComponentHelper.php(355): Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher-&gt;dispatch() #14 &#91;ROOT&#93;/libraries/src/Application/AdministratorApplication.php(143): Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() #15 &#91;ROOT&#93;/libraries/src/Application/AdministratorApplication.php(186): Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;dispatch() #16 &#91;ROOT&#93;/libraries/src/Application/CMSApplication.php(294): Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;doExecute() #17 &#91;ROOT&#93;/administrator/includes/app.php(61): Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() #18 &#91;ROOT&#93;/administrator/index.php(32): require&#95;once('/home/id2787516...') #19 {main}  Hi,  Under customer --&gt; cart :I get the following message when I click on new: &quot;0 count(): Argument #1 ($value) must be of type Countable|array, null given&quot; when you click on make order, then you get a blank screen, the same happens with wishlist.  what is the cause of this and how can we solve it?  Regards,  Dennis")* was created by *[Dnsftl](/forum/user/68880-dnsftl "View Dnsftl's Profile")*

-- url of the page with the problem -- : none
-- HikaShop version -- : 4.6.2
-- Joomla version -- : 4.2.4
-- PHP version -- : 8.1.9
-- Browser(s) name and version -- : firefox 106.0.2
-- Error-message(debug-mod must be tuned on) -- : Uncaught Throwable of type TypeError thrown with message "count(): Argument #1 ($value) must be of type Countable&#124;array, null given". Stack trace: #0 [ROOT]/libraries/src/MVC/View/HtmlView.php(410): include()
\#1 [ROOT]/administrator/components/com_hikashop/helpers/helper.php(2707): Joomla\CMS\MVC\View\HtmlView-&gt;loadTemplate()
\#2 [ROOT]/libraries/src/MVC/View/HtmlView.php(203): hikashopView-&gt;loadTemplate()
\#3 [ROOT]/administrator/components/com_hikashop/helpers/helper.php(2662): Joomla\CMS\MVC\View\HtmlView-&gt;display()
\#4 [ROOT]/administrator/components/com_hikashop/views/cart/view.html.php(22): hikashopView-&gt;display()
\#5 [ROOT]/libraries/src/MVC/Controller/BaseController.php(639): CartViewCart-&gt;display()
\#6 [ROOT]/administrator/components/com_hikashop/helpers/helper.php(2385): Joomla\CMS\MVC\Controller\BaseController-&gt;display()
\#7 [ROOT]/administrator/components/com_hikashop/helpers/helper.php(2143): hikashopController-&gt;display()
\#8 [ROOT]/libraries/src/MVC/Controller/BaseController.php(672): hikashopController-&gt;add()
\#9 [ROOT]/administrator/components/com_hikashop/helpers/helper.php(2363): Joomla\CMS\MVC\Controller\BaseController-&gt;execute()
\#10 [ROOT]/administrator/components/com_hikashop/hikashop.php(73): hikashopController-&gt;execute()
\#11 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/home/id2787516...')
\#12 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()
\#13 [ROOT]/libraries/src/Component/ComponentHelper.php(355): Joomla\CMS\Dispatcher\LegacyComponentDispatcher-&gt;dispatch()
\#14 [ROOT]/libraries/src/Application/AdministratorApplication.php(143): Joomla\CMS\Component\ComponentHelper::renderComponent()
\#15 [ROOT]/libraries/src/Application/AdministratorApplication.php(186): Joomla\CMS\Application\AdministratorApplication-&gt;dispatch()
\#16 [ROOT]/libraries/src/Application/CMSApplication.php(294): Joomla\CMS\Application\AdministratorApplication-&gt;doExecute()
\#17 [ROOT]/administrator/includes/app.php(61): Joomla\CMS\Application\CMSApplication-&gt;execute()
\#18 [ROOT]/administrator/index.php(32): require_once('/home/id2787516...')
\#19 {main}

Hi,

Under customer --&gt; cart ![:I](/neutral.gif ":I") get the following message when I click on new: "0 count(): Argument #1 ($value) must be of type Countable&#124;array, null given" when you click on make order, then you get a blank screen, the same happens with wishlist.

what is the cause of this and how can we solve it?

Regards,

Dennis

- [ ![errornewcart&#95;2022-10-27.png](/forum/attachment/55801) ](/forum/attachment/55801 "...2022-10-27.png") [ ](/forum/attachment/55801?download=1 "...2022-10-27.png")
- [ ![error0.png](/forum/attachment/55802) ](/forum/attachment/55802 "error0.png") [ ](/forum/attachment/55802?download=1 "error0.png")
- [ ![makeordererror.png](/forum/attachment/55803) ](/forum/attachment/55803 "...ordererror.png") [ ](/forum/attachment/55803?download=1 "...ordererror.png")
- [ ![Blankpage.png](/forum/attachment/55804) ](/forum/attachment/55804 "Blankpage.png") [ ](/forum/attachment/55804?download=1 "Blankpage.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDUyNTYtZXJyb3ItY2FydC1hbmQtd2lzaGxpc3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

4 years 4 weeks ago -  4 years 4 weeks ago [\#346055](#346055) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error cart and wishlist](/forum/33-customers/905256-error-cart-and-wishlist#346055 "-- url of the page with the problem -- : none -- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.4 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : firefox 106.0.2 -- Error-message(debug-mod must be tuned on) -- : Uncaught Throwable of type TypeError thrown with message &quot;count(): Argument #1 ($value) must be of type Countable|array, null given&quot;. Stack trace: #0 &#91;ROOT&#93;/libraries/src/MVC/View/HtmlView.php(410): include() #1 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2707): Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;loadTemplate() #2 &#91;ROOT&#93;/libraries/src/MVC/View/HtmlView.php(203): hikashopView-&gt;loadTemplate() #3 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2662): Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;display() #4 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/views/cart/view.html.php(22): hikashopView-&gt;display() #5 &#91;ROOT&#93;/libraries/src/MVC/Controller/BaseController.php(639): CartViewCart-&gt;display() #6 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2385): Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;display() #7 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2143): hikashopController-&gt;display() #8 &#91;ROOT&#93;/libraries/src/MVC/Controller/BaseController.php(672): hikashopController-&gt;add() #9 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2363): Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() #10 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/hikashop.php(73): hikashopController-&gt;execute() #11 &#91;ROOT&#93;/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require&#95;once('/home/id2787516...') #12 &#91;ROOT&#93;/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher::Joomla&#92;CMS&#92;Dispatcher&#92;{closure}() #13 &#91;ROOT&#93;/libraries/src/Component/ComponentHelper.php(355): Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher-&gt;dispatch() #14 &#91;ROOT&#93;/libraries/src/Application/AdministratorApplication.php(143): Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() #15 &#91;ROOT&#93;/libraries/src/Application/AdministratorApplication.php(186): Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;dispatch() #16 &#91;ROOT&#93;/libraries/src/Application/CMSApplication.php(294): Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;doExecute() #17 &#91;ROOT&#93;/administrator/includes/app.php(61): Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() #18 &#91;ROOT&#93;/administrator/index.php(32): require&#95;once('/home/id2787516...') #19 {main}  Hi,  Under customer --&gt; cart :I get the following message when I click on new: &quot;0 count(): Argument #1 ($value) must be of type Countable|array, null given&quot; when you click on make order, then you get a blank screen, the same happens with wishlist.  what is the cause of this and how can we solve it?  Regards,  Dennis")*

Hi,

I'm not able to reproduce the issue with the same versions of HikaShop and Joomla on my end.

Your stack trace seems to indicate that the error comes from the line: Code:

include $this-&gt;_template;

in the file /libraries/src/MVC/View/HtmlView.php of Joomla because $this-&gt;_template is null.
However, reading the code there, $this-&gt;_template is set by the line: Code:

$this-&gt;_template = Path::find($this-&gt;_path['template'], $filetofind);

a few lines before at the same place.
And reading the code of the Path::find function ( in /libraries/src/Filesystem/Path.php ) it can only return false or a string. It can't return null like the error message says.
So even without going deeper into it, I don't see how that's possible.
It would seem to indicate that it can't find the cart / form.php view file (used when creating a new cart). But I don't see why.

We would need to do some debugging directly there to be able to understand what's going on.
Could you provide a backend and FTP access in order to look into it ?
If so, please use our contact form to provide them along with a link to this thread for reference:
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

Last edit: 4 years 4 weeks ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDUyNTYtZXJyb3ItY2FydC1hbmQtd2lzaGxpc3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Dnsftl](/forum/user/68880-dnsftl "View Dnsftl's Profile")**
- [![Dnsftl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/68880-dnsftl "View Dnsftl's Profile") Topic Author
- [ Offline](/forum/user/68880-dnsftl)

Less More

- Posts: 21
- Thank you received: 2
-
- [](http://www.nvsp.nl)
-

4 years 4 weeks ago [\#346096](#346096) by [Dnsftl](/forum/user/68880-dnsftl "View Dnsftl's Profile")  Replied by *[Dnsftl](/forum/user/68880-dnsftl "View Dnsftl's Profile")* on topic *[Error cart and wishlist](/forum/33-customers/905256-error-cart-and-wishlist#346096 "-- url of the page with the problem -- : none -- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.4 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : firefox 106.0.2 -- Error-message(debug-mod must be tuned on) -- : Uncaught Throwable of type TypeError thrown with message &quot;count(): Argument #1 ($value) must be of type Countable|array, null given&quot;. Stack trace: #0 &#91;ROOT&#93;/libraries/src/MVC/View/HtmlView.php(410): include() #1 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2707): Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;loadTemplate() #2 &#91;ROOT&#93;/libraries/src/MVC/View/HtmlView.php(203): hikashopView-&gt;loadTemplate() #3 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2662): Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;display() #4 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/views/cart/view.html.php(22): hikashopView-&gt;display() #5 &#91;ROOT&#93;/libraries/src/MVC/Controller/BaseController.php(639): CartViewCart-&gt;display() #6 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2385): Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;display() #7 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2143): hikashopController-&gt;display() #8 &#91;ROOT&#93;/libraries/src/MVC/Controller/BaseController.php(672): hikashopController-&gt;add() #9 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2363): Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() #10 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/hikashop.php(73): hikashopController-&gt;execute() #11 &#91;ROOT&#93;/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require&#95;once('/home/id2787516...') #12 &#91;ROOT&#93;/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher::Joomla&#92;CMS&#92;Dispatcher&#92;{closure}() #13 &#91;ROOT&#93;/libraries/src/Component/ComponentHelper.php(355): Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher-&gt;dispatch() #14 &#91;ROOT&#93;/libraries/src/Application/AdministratorApplication.php(143): Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() #15 &#91;ROOT&#93;/libraries/src/Application/AdministratorApplication.php(186): Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;dispatch() #16 &#91;ROOT&#93;/libraries/src/Application/CMSApplication.php(294): Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;doExecute() #17 &#91;ROOT&#93;/administrator/includes/app.php(61): Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() #18 &#91;ROOT&#93;/administrator/index.php(32): require&#95;once('/home/id2787516...') #19 {main}  Hi,  Under customer --&gt; cart :I get the following message when I click on new: &quot;0 count(): Argument #1 ($value) must be of type Countable|array, null given&quot; when you click on make order, then you get a blank screen, the same happens with wishlist.  what is the cause of this and how can we solve it?  Regards,  Dennis")*

Hi,

Nicolas,

The site details are sent.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDUyNTYtZXJyb3ItY2FydC1hbmQtd2lzaGxpc3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86584
- Thank you received: 14325
-
-

4 years 4 weeks ago [\#346100](#346100) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Error cart and wishlist](/forum/33-customers/905256-error-cart-and-wishlist#346100 "-- url of the page with the problem -- : none -- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.4 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : firefox 106.0.2 -- Error-message(debug-mod must be tuned on) -- : Uncaught Throwable of type TypeError thrown with message &quot;count(): Argument #1 ($value) must be of type Countable|array, null given&quot;. Stack trace: #0 &#91;ROOT&#93;/libraries/src/MVC/View/HtmlView.php(410): include() #1 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2707): Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;loadTemplate() #2 &#91;ROOT&#93;/libraries/src/MVC/View/HtmlView.php(203): hikashopView-&gt;loadTemplate() #3 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2662): Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;display() #4 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/views/cart/view.html.php(22): hikashopView-&gt;display() #5 &#91;ROOT&#93;/libraries/src/MVC/Controller/BaseController.php(639): CartViewCart-&gt;display() #6 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2385): Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;display() #7 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2143): hikashopController-&gt;display() #8 &#91;ROOT&#93;/libraries/src/MVC/Controller/BaseController.php(672): hikashopController-&gt;add() #9 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2363): Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() #10 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/hikashop.php(73): hikashopController-&gt;execute() #11 &#91;ROOT&#93;/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require&#95;once('/home/id2787516...') #12 &#91;ROOT&#93;/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher::Joomla&#92;CMS&#92;Dispatcher&#92;{closure}() #13 &#91;ROOT&#93;/libraries/src/Component/ComponentHelper.php(355): Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher-&gt;dispatch() #14 &#91;ROOT&#93;/libraries/src/Application/AdministratorApplication.php(143): Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() #15 &#91;ROOT&#93;/libraries/src/Application/AdministratorApplication.php(186): Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;dispatch() #16 &#91;ROOT&#93;/libraries/src/Application/CMSApplication.php(294): Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;doExecute() #17 &#91;ROOT&#93;/administrator/includes/app.php(61): Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() #18 &#91;ROOT&#93;/administrator/index.php(32): require&#95;once('/home/id2787516...') #19 {main}  Hi,  Under customer --&gt; cart :I get the following message when I click on new: &quot;0 count(): Argument #1 ($value) must be of type Countable|array, null given&quot; when you click on make order, then you get a blank screen, the same happens with wishlist.  what is the cause of this and how can we solve it?  Regards,  Dennis")*

Hi,

Thank you for the access. I actually got another call stack when reproducing the error on your website:
[ i.imgur.com/irkrxBy.png](https://i.imgur.com/irkrxBy.png)
And this is much more logical. I've made a patch for it on my end.
Download again the install package of HikaShop on our website and install it on yours and it will fix the problem.

The following user(s) said Thank You: [Dnsftl](/forum/user/68880-dnsftl "View Dnsftl's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDUyNTYtZXJyb3ItY2FydC1hbmQtd2lzaGxpc3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Dnsftl](/forum/user/68880-dnsftl "View Dnsftl's Profile")**
- [![Dnsftl's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/68880-dnsftl "View Dnsftl's Profile") Topic Author
- [ Offline](/forum/user/68880-dnsftl)

Less More

- Posts: 21
- Thank you received: 2
-
- [](http://www.nvsp.nl)
-

4 years 4 weeks ago [\#346104](#346104) by [Dnsftl](/forum/user/68880-dnsftl "View Dnsftl's Profile")  Replied by *[Dnsftl](/forum/user/68880-dnsftl "View Dnsftl's Profile")* on topic *[Error cart and wishlist](/forum/33-customers/905256-error-cart-and-wishlist#346104 "-- url of the page with the problem -- : none -- HikaShop version -- : 4.6.2 -- Joomla version -- : 4.2.4 -- PHP version -- : 8.1.9 -- Browser(s) name and version -- : firefox 106.0.2 -- Error-message(debug-mod must be tuned on) -- : Uncaught Throwable of type TypeError thrown with message &quot;count(): Argument #1 ($value) must be of type Countable|array, null given&quot;. Stack trace: #0 &#91;ROOT&#93;/libraries/src/MVC/View/HtmlView.php(410): include() #1 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2707): Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;loadTemplate() #2 &#91;ROOT&#93;/libraries/src/MVC/View/HtmlView.php(203): hikashopView-&gt;loadTemplate() #3 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2662): Joomla&#92;CMS&#92;MVC&#92;View&#92;HtmlView-&gt;display() #4 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/views/cart/view.html.php(22): hikashopView-&gt;display() #5 &#91;ROOT&#93;/libraries/src/MVC/Controller/BaseController.php(639): CartViewCart-&gt;display() #6 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2385): Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;display() #7 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2143): hikashopController-&gt;display() #8 &#91;ROOT&#93;/libraries/src/MVC/Controller/BaseController.php(672): hikashopController-&gt;add() #9 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/helpers/helper.php(2363): Joomla&#92;CMS&#92;MVC&#92;Controller&#92;BaseController-&gt;execute() #10 &#91;ROOT&#93;/administrator/components/com&#95;hikashop/hikashop.php(73): hikashopController-&gt;execute() #11 &#91;ROOT&#93;/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require&#95;once('/home/id2787516...') #12 &#91;ROOT&#93;/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher::Joomla&#92;CMS&#92;Dispatcher&#92;{closure}() #13 &#91;ROOT&#93;/libraries/src/Component/ComponentHelper.php(355): Joomla&#92;CMS&#92;Dispatcher&#92;LegacyComponentDispatcher-&gt;dispatch() #14 &#91;ROOT&#93;/libraries/src/Application/AdministratorApplication.php(143): Joomla&#92;CMS&#92;Component&#92;ComponentHelper::renderComponent() #15 &#91;ROOT&#93;/libraries/src/Application/AdministratorApplication.php(186): Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;dispatch() #16 &#91;ROOT&#93;/libraries/src/Application/CMSApplication.php(294): Joomla&#92;CMS&#92;Application&#92;AdministratorApplication-&gt;doExecute() #17 &#91;ROOT&#93;/administrator/includes/app.php(61): Joomla&#92;CMS&#92;Application&#92;CMSApplication-&gt;execute() #18 &#91;ROOT&#93;/administrator/index.php(32): require&#95;once('/home/id2787516...') #19 {main}  Hi,  Under customer --&gt; cart :I get the following message when I click on new: &quot;0 count(): Argument #1 ($value) must be of type Countable|array, null given&quot; when you click on make order, then you get a blank screen, the same happens with wishlist.  what is the cause of this and how can we solve it?  Regards,  Dennis")*

Hi Nicholas,

Downloaded and installed, it now works perfectly. Thanks for the assistance.

Regards Dennis

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDUyNTYtZXJyb3ItY2FydC1hbmQtd2lzaGxpc3Q/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.063 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
