[13.0.0RC3] calendar, undefined extension class Smarty_Internal_Method_GetVariable #1513

Closed
opened 2026-10-05 00:46:42 +02:00 by adam · 0 comments
Owner

When opening the calendar on a specific year, for example index.php?/categories/created-weekly-list-2021 we get:

Notice: Undefined property: Smarty_Internal_Undefined::$objMap in include/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 132

Fatal error: Uncaught --> Smarty: undefined extension class 'Smarty_Internal_Method_GetVariable' <-- thrown in include/smarty/libs/sysplugins/smarty_internal_undefined.php on line 62

This is due to this line in include/calendar_base.class.php:

$existing = $template->smarty->getVariable('chronology_navigation_bars');

Indeed, the Smarty version (3.1.39) embedded in Piwigo 12 says about getVariable:

@deprecated since 3.1.28 please use Smarty_Internal_Data::getTemplateVars() instead.

And this function no longer exists in Smarty 4.1. So, let's replace it!

When opening the calendar on a specific year, for example `index.php?/categories/created-weekly-list-2021` we get: > Notice: Undefined property: Smarty_Internal_Undefined::$objMap in include/smarty/libs/sysplugins/smarty_internal_extension_handler.php on line 132 > > Fatal error: Uncaught --> Smarty: undefined extension class 'Smarty_Internal_Method_GetVariable' <-- thrown in include/smarty/libs/sysplugins/smarty_internal_undefined.php on line 62 This is due to this line in `include/calendar_base.class.php`: ``` $existing = $template->smarty->getVariable('chronology_navigation_bars'); ``` Indeed, the Smarty version (3.1.39) embedded in Piwigo 12 says about `getVariable`: > @deprecated since 3.1.28 please use Smarty_Internal_Data::getTemplateVars() instead. And this function no longer exists in Smarty 4.1. So, let's replace it! <!-- github-sync-id:1375574121 -->
adam closed this issue 2026-10-05 00:46:42 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#1513