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
10 hours 34 minutes 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.

Moderators: Giang Dinh Truong