iceburg-net / poMMo

0 stars 1 forks source link

Smarty errors - '_tpl_vars' does not exist #1

Open jraftis opened 6 months ago

jraftis commented 6 months ago

Running on a WAMP test server running PHP 7.3.12. Hitting Smarty errors in two places:

1.) /admin/setup/setup_configure.php:

( ! ) Fatal error: Uncaught --> Smarty: template property '_tpl_vars' does not exist. <-- thrown in \inc\lib\smarty\sysplugins\smarty_internal_template.php on line 702 SmartyException: template property '_tpl_vars' does not exist. in \inc\lib\smarty\sysplugins\smarty_internal_template.php on line 702

Fatal error: Uncaught --> Smarty: template property '_tpl_vars' does not exist smarty_internal_template.php error SmartyException template property '_tpl_vars' does not exist

Call Stack

Time Memory Function Location

1 0.0001 407200 {main}( ) ...\users.php:0 2 0.0030 644584 PommoTheme->display( ) ...\users.php:93 3 0.0032 645944 PommoTheme->display( ) ...\template.php:103 4 0.0032 645944 PommoTheme->_execute( ) ...\smarty_internal_templatebase.php:134


2.) /admin/mailings/mailings_start.php

Fatal error: Uncaught --> Smarty: template property '_tpl_vars' does not exist. <-- thrown in \inc\lib\smarty\sysplugins\smarty_internal_template.php on line 702 ( ! ) SmartyException: template property '_tpl_vars' does not exist. in \inc\lib\smarty\sysplugins\smarty_internal_template.php on line 702

Call Stack

Time Memory Function Location

1 0.0001 407144 {main}( ) ...\setup.php:0 2 0.0038 689264 PommoTheme->display( ) ...\setup.php:131 3 0.0040 690640 PommoTheme->display( ) ...\template.php:103 4 0.0040 690640 PommoTheme->_execute( ) ...\smarty_internal_templatebase.php:134

GiovanniSalmeri commented 2 months ago

The problem seems easy to solve: $smarty->_tpl_vars[] is to be replaced with $smarty->getTemplateVars(). I have not tested it, though.