Skip to main content

Link To HikaShop Doesn't Look Correct

More
9 years 2 weeks ago #278686 by MyWorld
-- 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!

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

More
9 years 2 weeks ago #278692 by nicolas
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.

More
9 years 2 weeks ago #278742 by MyWorld
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.

More
9 years 2 weeks ago #278744 by Jerome
Hello,

For what I can see the line 39 is
Code:
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
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.

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

More
9 years 2 weeks ago #278814 by MyWorld
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.

More
9 years 2 weeks ago #278815 by Jerome
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.

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

More
9 years 1 week ago #278970 by MyWorld
That seems to fix the issue.

Thanks!

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

Time to create page: 0.201 seconds
Powered by Kunena Forum