Error on orders page

  • Posts: 197
  • Thank you received: 13
1 year 7 months ago #344372

-- HikaShop version -- : 4.4.4
-- Joomla version -- : 4.2.2
-- PHP version -- : 8.1

Hi
I recently updated Joomla to 4.2.2.
when I click on orders page in admin, I get the following error :
0 date(): Argument #2 ($timestamp) must be of type ?int, string given

how can I fix that ?

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 year 7 months ago #344374

Hi,

That's a new error.
Please activate the "debug" setting of the Joomla configuration and try again.
It should display an error message with more information.
Please provide this so that we can better understand what's going on.

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

  • Posts: 197
  • Thank you received: 13
1 year 7 months ago #344382

File Attachment:

File Name: Error0_2022-09-03.zip
File Size:1,223 KB
just enabled debug
screenshot of what i get when I click on "orders" is attached

Attachments:
Last edit: 1 year 7 months ago by khashiz.

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

  • Posts: 197
  • Thank you received: 13
1 year 7 months ago #344397

Any updates ?

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

  • Posts: 197
  • Thank you received: 13
1 year 7 months ago #344398

I just realized that this error refers to my php version

If I put the php version on 7.4, the error is gone

but I want to keep my 8.1
what should I do ?

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
1 year 7 months ago #344396

Hi,

Your version of HikaShop is not compatible with either Joomla 4.2 nor with PHP 8.1.
Updating your HikaShop will fix the problem as the code of the file where your error is has been changed to use hikashop_getDate() instead of the date() function several versions ago. This avoids issues with PHP 8 and also provides a better display of the date in accordance to your Joomla setup, etc.

The following user(s) said Thank You: khashiz

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

  • Posts: 197
  • Thank you received: 13
1 year 7 months ago #344434

thank you

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

Time to create page: 0.074 seconds
Powered by Kunena Forum