Need help with Joomla? We are available for hire to help with Joomla customization, upgrades, maintenance, and custom development.
Explore our services

Customer Downloads page throws error

  • Claire Haas
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
3 weeks 2 hours ago #179108 by Claire Haas
Customer Downloads page throws error was created by Claire Haas
Hi,
In case anyone else has this problem...EShop 5.6.1 / Joomla 6.1.2 / PHP 8.3.32The Customer Downloads page throws:
Code:
round(): Argument #1 ($num) must be of type int|float, string given
File:
Code:
components/com_eshop/view/customer/html.php
Line 639The fix I have used is:
Code:
round((float) substr($size, 0, strpos($size, '.') + 4), 2)
instead of:
Code:
round(substr($size, 0, strpos($size, '.') + 4), 2) Kind regards Claire :-)

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

  • Giang Dinh Truong
  • Offline
  • Administrator
  • Administrator
More
2 weeks 5 days ago #179126 by Giang Dinh Truong
Replied by Giang Dinh Truong on topic Customer Downloads page throws error
Hello Claire,

Thank you for reporting this here. I will also check and maybe update the code to resolve it.

Sincerely, Giang
The following user(s) said Thank You: Claire Haas

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

Moderators: Giang Dinh Truong