DivisionByZeroError #2057

Closed
opened 2026-10-05 01:04:58 +02:00 by adam · 4 comments
Owner

If I open the main admin without any params:

/admin.php

Fatal error: Uncaught DivisionByZeroError: Division by zero in _data/templates_c/...file.intro.tpl.php:393

Stack trace:

#0 include/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_682eee449a74d0_08548380()
#1 include/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode()
#2 include/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render()
#3 include/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render()
#4 include/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute()
#5 /include/template.class.php(486): Smarty_Internal_TemplateBase->fetch()
#6 include/template.class.php(409): Template->parse()
#7 admin/intro.php(433): Template->assign_var_from_handle()
#8 admin.php(406): include('...')
#9 {main} thrown in _data/templates_c/...file.intro.tpl.php on line 393
If I open the main admin without any params: /admin.php > Fatal error: Uncaught DivisionByZeroError: Division by zero in _data/templates_c/...file.intro.tpl.php:393 > > Stack trace: ``` #0 include/smarty/libs/sysplugins/smarty_template_resource_base.php(123): content_682eee449a74d0_08548380() #1 include/smarty/libs/sysplugins/smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode() #2 include/smarty/libs/sysplugins/smarty_internal_template.php(217): Smarty_Template_Compiled->render() #3 include/smarty/libs/sysplugins/smarty_internal_templatebase.php(238): Smarty_Internal_Template->render() #4 include/smarty/libs/sysplugins/smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute() #5 /include/template.class.php(486): Smarty_Internal_TemplateBase->fetch() #6 include/template.class.php(409): Template->parse() #7 admin/intro.php(433): Template->assign_var_from_handle() #8 admin.php(406): include('...') #9 {main} thrown in _data/templates_c/...file.intro.tpl.php on line 393 ``` <!-- github-sync-id:3082708944 -->
adam closed this issue 2026-10-05 01:04:58 +02:00
Author
Owner

Hi
which piwigo version ?

Hi which piwigo version ? <!-- github-comment-id:2910008570 -->
Author
Owner

Last Update: May 17, 2025
Theme Bootstrap + Admin plugin

Last Update: May 17, 2025 Theme Bootstrap + Admin plugin <!-- github-comment-id:2910635663 -->
Author
Owner

Try purge template compiled in Maintenance

Try purge template compiled in Maintenance <!-- github-comment-id:2910686583 -->
Author
Owner

Just a note : it happens when you have files but the sum of all file sizes is under 1kB. For example when you have uploaded one single SVG small icon.

Just a note : it happens when you have files but the sum of all file sizes is under 1kB. For example when you have uploaded one single SVG small icon. <!-- github-comment-id:4258154406 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2057