我正在尝试将我的cs-cart多供应商4.3.8站点迁移到新服务器 . 我必须导入数据库并更新config.local.php文件 .
但是,当我在新服务器中访问我的网站时,我收到此错误
致命错误:未捕获 - > Smarty:无法写入文件/ var / www / html / var / cache / templates / responsive / wrt591a6df1c1b492_68829712 < - 抛出/ var / www / html / app / lib / vendor / smarty /第46行的smarty / libs / sysplugins / smarty_internal_write_file.php
谁能告诉我如何解决这个问题?
1 回答
我收到同样的错误 . 经过一番搜索,似乎是许可问题 . 权限需要为所有文件644和文件夹755 .
可能还需要清理文件夹
/ cache / smarty / compile /
/ cache / smarty / cache /
或者服务器上有超额配额,禁用写入 .
https://www.digitalocean.com/community/questions/how-to-fix-php-fatal-error-uncaught-smarty-unable-to-write-file
https://www.prestashop.com/forums/topic/348731-solved-fatal-error-uncaught-exception-smartyexception-with-message-unable-to-write-file/