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

plugins not loaded when setMergeCompiledIncludes is true #435

Closed
artcs opened this issue Apr 26, 2018 · 2 comments
Closed

plugins not loaded when setMergeCompiledIncludes is true #435

artcs opened this issue Apr 26, 2018 · 2 comments

Comments

@artcs
Copy link

artcs commented Apr 26, 2018

With 3.1.32 sometimes modifier plugins are not loaded when setMergeCompiledIncludes is set to true:

[25-Apr-2018 12:28:46 Europe/Berlin] PHP Fatal error: Call to undefined function smarty_modifier_truncate() in /pathto/var/smarty/tc/af65f1f22c72d1d1f57baa3e9fd13ad52f24362b_1.file.fdview.tpl.php on line 162

After deleting compiled templates the first call works fine, subsequent calls fail. Caching is off.
As a workaround if I set setMergeCompiledIncludes to false, it works as expected.
Issue started with dev45-version from March 28th.

Testcase:

index.tpl:

{include file="included.tpl"}
bla bla
included.tpl:

{"Something"|truncate:7:'...'}
index.php:

[...]
$Smarty->setMergeCompiledIncludes(true);
$Smarty->display('index.tpl');
@artcs artcs changed the title plugins not loaded when setMergeCompiledTemplades is true plugins not loaded when setMergeCompiledTemplates is true Apr 26, 2018
@artcs artcs changed the title plugins not loaded when setMergeCompiledTemplates is true plugins not loaded when setMergeCompiledIncludes is true Apr 26, 2018
@thedotedge
Copy link

I can reproduce with 3.1.32 if setMergeCompiledIncludes(true) is called.

@uwetews
Copy link
Contributor

uwetews commented May 17, 2018

This bug is now fixed in the master branch and will later be included in 3.1.33

@uwetews uwetews closed this as completed May 17, 2018
pnikolov added a commit to WeAreAthlon/Silla.IO that referenced this issue May 28, 2018
Views update
 Remove 'inline' when including files due to known bugs in Smarty 3.1.32
 setMergeCompiledIncludes - smarty-php/smarty#435
pnikolov added a commit to WeAreAthlon/Silla.IO that referenced this issue May 28, 2018
Views update
 Remove 'inline' when including files due to known bugs in Smarty 3.1.32
 setMergeCompiledIncludes - smarty-php/smarty#435
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

No branches or pull requests

3 participants