Link To HikaShop Doesn't Look Correct

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
7 years 2 months ago #278686

-- HikaShop version -- : 3.2.0
-- Joomla version -- : 3.7.5

When I click on Components > HikaShop, it looks like the attached. I don't think that's how it should look?



Thanks!

Attachments:

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
7 years 2 months ago #278692

Hi,

This looks like a fatal error. Activate the debug mode and error reporting of the Joomla configuration and try again. You should then get an error message at the bottom of that page which will help us understand what's going on.

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

  • Posts: 964
  • Thank you received: 11
  • Hikashop Business
7 years 2 months ago #278742

Here you go...

Fatal error: Unsupported operand types in /home/.../public_html/administrator/components/com_hikashop/classes/currency.php on line 39

Thanks!

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 2 months ago #278744

Hello,

For what I can see the line 39 is

return (round($number * $increment) / $increment);
Knowing that the $increment variable is processed just the line before ; I think that your PHP (it would be interesting to know which version you're using) do not perform the conversion of the $number variable.
It might be possible that the function is called with a string (a number encoded into a string).

Unfortunately, without knowing the "call stack" (it would be great if you can provide that information), we can't know from where that function is called and with what parameter content.
So, what I can suggest you right now, it to use that code
if(!is_numeric($number)) $number = (float)hikashop_toFloat($number);
return (round($number * $increment) / $increment);
So we will unsure the right format for the variable and avoid that issue.

If the problem persist ; we would require more details about the "call stack" (that the Joomla debug mode could provide you).
And if it fixes the issue, please confirm the patch so we can see to add it into HikaShop.

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: 964
  • Thank you received: 11
  • Hikashop Business
7 years 2 months ago #278814

Jerome,

I really appreciate your detailed response but I have no idea about that stuff - LOL.

Anyhow, before I make the change you suggested, the system info shows "PHP Version: 5.6.30". Do I need a different version.

And, to make the change you are suggesting, which file should I edit?

Thanks!

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 2 months ago #278815

Hello,

You should edit the file mentioned in your previous message ; the one with 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: 964
  • Thank you received: 11
  • Hikashop Business
7 years 2 months ago #278970

That seems to fix the issue.

Thanks!

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

Time to create page: 0.071 seconds
Powered by Kunena Forum