smarty icon indicating copy to clipboard operation
smarty copied to clipboard

Render crash on changing file include modes

Open AnrDaemon opened this issue 4 years ago • 2 comments
trafficstars

PHP Notice:  Undefined index: 957e065e65187cb9f8a1b05a74e90f4f1b7188b0 in .../vendor/smarty/smarty/libs/sysplugins/smarty_internal_template.php on line 322
PHP Fatal error:  Uncaught  --> Smarty: plugin Smarty_Resource_ is not a valid name format <--
  thrown in .../vendor/smarty/smarty/libs/sysplugins/smarty_internal_method_loadplugin.php on line 40

The reproduction case will follow.

AnrDaemon avatar Jan 31 '21 16:01 AnrDaemon

Note the change from regular to inline include at https://github.com/AnrDaemon/test-001/blob/smarty-639/testcase.php#L10-L11

AnrDaemon avatar Jan 31 '21 16:01 AnrDaemon

Using eval: source, the code will work, but setting $smarty->setForceCompile(true); won't change the situation. Reordering include lines so that regular include is last will also work.

AnrDaemon avatar Feb 02 '21 08:02 AnrDaemon