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

Error when calling the method "compileAllTemplates" on Smarty 5.0.0 #966

Closed
vpsewon opened this issue Mar 27, 2024 · 0 comments · Fixed by #970
Closed

Error when calling the method "compileAllTemplates" on Smarty 5.0.0 #966

vpsewon opened this issue Mar 27, 2024 · 0 comments · Fixed by #970

Comments

@vpsewon
Copy link

vpsewon commented Mar 27, 2024

I got the following error when calling the method "compileAllTemplates" on Smarty 5.0.0

Fatal error: Uncaught Error: Class "Smarty\FilesystemIterator" not found in /var/www/vendor/smarty/smarty/src/Smarty.php:1463

It seems it's simply missing the use statement for the FilesystemIterator.

The error disappears and the method compiles templates correctly after I have placed the use statement for it at the top of the Smarty.php file just before the use RecursiveDirectoryIterator; statement.

use FilesystemIterator;
use RecursiveDirectoryIterator;
...

@vpsewon vpsewon changed the title Error when calling the method "compileAllTemplates" Error when calling the method "compileAllTemplates" on Smarty 5.0.0 Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants