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

#   PHP 8 error ?

##

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

Less More

- Posts: 214
- Thank you received: 21
-

5 years 1 month ago [\#335682](#335682) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  *[PHP 8 error ?](/forum/22-market-bug-report/903188-php-8-error#335682 "-- HikaShop version -- : 4.4.3 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4  Hi,  Under PHP 8, when we want to have the list of products in the seller space (url : /index.php?option=com&#95;hikamarket&amp;ctrl=product&amp;Itemid=504) I get an error page:  &quot;implode(): Argument #2 ($array) must be of type ?array, string given&quot;  Once back to PHP 7.4, everything works fine.  Regards, Patrick")* was created by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")*

-- HikaShop version -- : 4.4.3
-- HikaMarket version -- : 4.0.0
-- Joomla version -- : 3.10.2
-- PHP version -- : 7.4

Hi,

Under PHP 8, when we want to have the list of products in the seller space (url : /index.php?option=com_hikamarket&amp;ctrl=product&amp;Itemid=504) I get an error page:

"implode(): Argument #2 ($array) must be of type ?array, string given"

Once back to PHP 7.4, everything works fine.

Regards,
Patrick

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

5 years 1 month ago [\#335700](#335700) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[PHP 8 error ?](/forum/22-market-bug-report/903188-php-8-error#335700 "-- HikaShop version -- : 4.4.3 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4  Hi,  Under PHP 8, when we want to have the list of products in the seller space (url : /index.php?option=com&#95;hikamarket&amp;ctrl=product&amp;Itemid=504) I get an error page:  &quot;implode(): Argument #2 ($array) must be of type ?array, string given&quot;  Once back to PHP 7.4, everything works fine.  Regards, Patrick")*

Hello,

Please enable the "debug mode" in your Joomla global configuration so you will have the call stack and we will know the file (and the line) of the error.
Once you got the information you can remove the debug mode.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 214
- Thank you received: 21
-

5 years 1 month ago -  5 years 1 month ago [\#335703](#335703) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[PHP 8 error ?](/forum/22-market-bug-report/903188-php-8-error#335703 "-- HikaShop version -- : 4.4.3 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4  Hi,  Under PHP 8, when we want to have the list of products in the seller space (url : /index.php?option=com&#95;hikamarket&amp;ctrl=product&amp;Itemid=504) I get an error page:  &quot;implode(): Argument #2 ($array) must be of type ?array, string given&quot;  Once back to PHP 7.4, everything works fine.  Regards, Patrick")*

HI,

the problem is that I get a blank page and therefore no information.

I can give you an access to the site.
It's a test version closed to the public but I'll send you by mail the contact information.

I applied the modification you proposed on this thread :
[ www.hikashop.com/forum/23-market-how-to/...ing-page.html#318963](https://www.hikashop.com/forum/23-market-how-to/899816-seller-s-product-listing-page.html#318963)

[ ![error.png](/forum/attachment/53549) ](/forum/attachment/53549 "error.png")

Regards
Patrick

- [ ![error.png](/forum/attachment/53549) ](/forum/attachment/53549 "error.png") [ ](/forum/attachment/53549?download=1 "error.png")

Last edit: 5 years 1 month ago by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

5 years 1 month ago [\#335704](#335704) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[PHP 8 error ?](/forum/22-market-bug-report/903188-php-8-error#335704 "-- HikaShop version -- : 4.4.3 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4  Hi,  Under PHP 8, when we want to have the list of products in the seller space (url : /index.php?option=com&#95;hikamarket&amp;ctrl=product&amp;Itemid=504) I get an error page:  &quot;implode(): Argument #2 ($array) must be of type ?array, string given&quot;  Once back to PHP 7.4, everything works fine.  Regards, Patrick")*

Hello,

As said :

> Please enable the "debug mode" in your Joomla global configuration so you will have the call stack and we will know the file (and the line) of the error.
> Once you got the information you can remove the debug mode.

You must enable the debug mode to get the source of the error.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 214
- Thank you received: 21
-

5 years 1 month ago -  5 years 1 month ago [\#335714](#335714) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[PHP 8 error ?](/forum/22-market-bug-report/903188-php-8-error#335714 "-- HikaShop version -- : 4.4.3 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4  Hi,  Under PHP 8, when we want to have the list of products in the seller space (url : /index.php?option=com&#95;hikamarket&amp;ctrl=product&amp;Itemid=504) I get an error page:  &quot;implode(): Argument #2 ($array) must be of type ?array, string given&quot;  Once back to PHP 7.4, everything works fine.  Regards, Patrick")*

Hi,

As I said,

Debug mode is enable (debug2)

[ ![debug2.png](/forum/attachment/53551) ](/forum/attachment/53551 "debug2.png")

When I click on "produits" , I get a blank page, without anythink .
The screenshot with the error is the complete page displayed, without any debug info

[ ![error500.JPG](/forum/attachment/53552) ](/forum/attachment/53552 "error500.JPG")

As you can see, this bug causes a 500 error.
So, no debugging info to give you

All works fine with PHP 7.4, error occurs when I change to PHP 8

Regards
Patrick

- [ ![debug2.png](/forum/attachment/53551) ](/forum/attachment/53551 "debug2.png") [ ](/forum/attachment/53551?download=1 "debug2.png")
- [ ![error500.JPG](/forum/attachment/53552) ](/forum/attachment/53552 "error500.JPG") [ ](/forum/attachment/53552?download=1 "error500.JPG")

Last edit: 5 years 1 month ago by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

5 years 1 month ago [\#335745](#335745) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[PHP 8 error ?](/forum/22-market-bug-report/903188-php-8-error#335745 "-- HikaShop version -- : 4.4.3 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4  Hi,  Under PHP 8, when we want to have the list of products in the seller space (url : /index.php?option=com&#95;hikamarket&amp;ctrl=product&amp;Itemid=504) I get an error page:  &quot;implode(): Argument #2 ($array) must be of type ?array, string given&quot;  Once back to PHP 7.4, everything works fine.  Regards, Patrick")*

Hello,

Your front-end template does not support the display of the call-stack.
By switching to "protostar" (and with the debug mode), we can see more details of the issue. Code:

implode(): Argument #2 ($array) must be of type ?array, string given /home/lorcestlor/v2/administrator/components/com_hikamarket/classes/category.php:532

Which allow us to fix the issue.
You can re-download the HikaMarket 4.0 package to get the hotfix.

Thank you for your report !

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")

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

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

Less More

- Posts: 214
- Thank you received: 21
-

5 years 1 month ago [\#335749](#335749) by [LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")  Replied by *[LOCELO](/forum/user/58815-locelo "View LOCELO's Profile")* on topic *[PHP 8 error ?](/forum/22-market-bug-report/903188-php-8-error#335749 "-- HikaShop version -- : 4.4.3 -- HikaMarket version -- : 4.0.0 -- Joomla version -- : 3.10.2 -- PHP version -- : 7.4  Hi,  Under PHP 8, when we want to have the list of products in the seller space (url : /index.php?option=com&#95;hikamarket&amp;ctrl=product&amp;Itemid=504) I get an error page:  &quot;implode(): Argument #2 ($array) must be of type ?array, string given&quot;  Once back to PHP 7.4, everything works fine.  Regards, Patrick")*

Hi,

Sorry, I didn't think to change the template.
Thanks for your reactivity. !

Regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIyLW1hcmtldC1idWctcmVwb3J0LzkwMzE4OC1waHAtOC1lcnJvcj90bXBsPW1hcmtkb3du) 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?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.226 seconds

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

[](#top)
