Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render crash on changing file include modes #639

Open
AnrDaemon opened this issue Jan 31, 2021 · 2 comments · May be fixed by #651
Open

Render crash on changing file include modes #639

AnrDaemon opened this issue Jan 31, 2021 · 2 comments · May be fixed by #651

Comments

@AnrDaemon
Copy link
Contributor

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 added a commit to AnrDaemon/test-001 that referenced this issue Jan 31, 2021
@AnrDaemon
Copy link
Contributor Author

AnrDaemon commented Jan 31, 2021

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

@AnrDaemon
Copy link
Contributor Author

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 added a commit to AnrDaemon/smarty that referenced this issue Mar 22, 2021
Modified include inline unit test to catch evaluation error.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant