Smarty error "Unable to write to cache directory" after server migration.
The /var/cache/ and /var/smarty/compile/ directories need to be writable by the web server user. After migration, file ownership often changes. Fix: chmod -R 775 var/cache var/smarty and chown -R www-data:www-data var/cache var/smarty (replace www-data with your web server user). Also delete the contents of these directories to force a clean regeneration.
Learn more: our troubleshooting guide.
Was this answer helpful?
Still have questions?
Can't find what you're looking for? Send us your question and we'll get back to you quickly.