You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
...
The text was updated successfully, but these errors were encountered:
vpsewon
changed the title
Error when calling the method "compileAllTemplates"
Error when calling the method "compileAllTemplates" on Smarty 5.0.0
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;
...
The text was updated successfully, but these errors were encountered: