Error "Modulo by zero" under joomla 5.4.1 for downloadable filies

More
19 hours 27 minutes ago #86272 by kath
hi there, 

since upgrading a live site to joomla 5.4.1, pages with downloadble files produce this error:

Modulo by zero

/homepages/[...]]/components/com_flexicontent/controller.php:1433
Call Stack
#    Function    Location
1    ()    JROOT/components/com_flexicontent/controller.php:1433
2    FlexicontentController->download()    JROOT/libraries/src/MVC/Controller/BaseController.php:730
3    Joomla\CMS\MVC\Controller\BaseController->execute()    JROOT/components/com_flexicontent/flexicontent.php:270
4    require_once()    JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:71
5    Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}()    JROOT/libraries/src/Dispatcher/LegacyComponentDispatcher.php:73
6    Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()    JROOT/libraries/src/Component/ComponentHelper.php:361
7    Joomla\CMS\Component\ComponentHelper::renderComponent()    JROOT/libraries/src/Application/SiteApplication.php:217
8    Joomla\CMS\Application\SiteApplication->dispatch()    JROOT/libraries/src/Application/SiteApplication.php:271
9    Joomla\CMS\Application\SiteApplication->doExecute()    JROOT/libraries/src/Application/CMSApplication.php:304
10    Joomla\CMS\Application\CMSApplication->execute()    JROOT/includes/app.php:58
11    require_once()    JROOT/index.php:51

[setup]
j = 5.4.1
fc = 4.2.1
php =  8.2.29
sql = 8.0.43
languages FE/BE = both EN and DE produce the error

What can I do to fix that?
Thanks a lot, 
Ben

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

More
46 minutes ago #86274 by micker
hello can you test this correction
edit controller.php (in components/com_flexicontent)
before line 1433
add this line
Code:
$per_downloads = !empty($per_downloads) && $per_downloads > 0 ? $per_downloads : 1;
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.309 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save