Skip to main content

PHP 8 error ?

More
5 years 1 month ago #335682 by LOCELO
PHP 8 error ? was created by LOCELO
-- 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.

More
5 years 1 month ago #335700 by Jerome
Replied by Jerome on topic PHP 8 error ?
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.

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

More
5 years 1 month ago - 5 years 1 month ago #335703 by LOCELO
Replied by LOCELO on topic PHP 8 error ?
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
Last edit: 5 years 1 month ago by LOCELO.

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

More
5 years 1 month ago #335704 by Jerome
Replied by Jerome on topic PHP 8 error ?
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.

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

More
5 years 1 month ago - 5 years 1 month ago #335714 by LOCELO
Replied by LOCELO on topic PHP 8 error ?
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
Last edit: 5 years 1 month ago by LOCELO.

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

More
5 years 1 month ago #335745 by Jerome
Replied by Jerome on topic PHP 8 error ?
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 & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: LOCELO

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

More
5 years 1 month ago #335749 by LOCELO
Replied by LOCELO on topic PHP 8 error ?
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.258 seconds
Powered by Kunena Forum