PHP 8 error ?

  • Posts: 210
  • Thank you received: 21
3 years 2 months ago #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_hikamarket&ctrl=product&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 or Create an account to join the conversation.

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
3 years 2 months ago #335700

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 210
  • Thank you received: 21
3 years 2 months ago #335703

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



Regards
Patrick

Attachments:
Last edit: 3 years 2 months ago by LOCELO.

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
3 years 2 months ago #335704

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 210
  • Thank you received: 21
3 years 2 months ago #335714

Hi,

As I said,

Debug mode is enable (debug2)



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



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

Attachments:
Last edit: 3 years 2 months ago by LOCELO.

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
3 years 2 months ago #335745

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.

 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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: LOCELO

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

  • Posts: 210
  • Thank you received: 21
3 years 2 months ago #335749

Hi,

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

Regards

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

Moderators: Obsidev
Time to create page: 0.066 seconds
Powered by Kunena Forum