【发布时间】:2015-09-08 01:15:49
【问题描述】:
您好,我正在尝试将我的站点从一台服务器迁移到另一台服务器,我创建了所有文件和 BD 的备份,上传到新服务器,使用新凭据更改 settings.inc.php,当我尝试访问该站点,Prestashop 显示错误。
注意:使用未定义的常量 _RIJNDAEL_KEY_ - 在第 78 行的 /home/admin/domains/bicimaya.mx/public_html/classes/Cookie.php 中假设为“_RIJNDAEL_KEY_” 注意:使用未定义的常量 _RIJNDAEL_IV_ - 在/home/admin/domains/bicimaya.mx/public_html/classes/Cookie.php 在第 78 行致命错误:未捕获的异常“SmartyException”,消息“无法写入文件/home/admin/domains/bicimaya.mx/public_html/cache /smarty/compile/28/b9/c8/wrt55881070719b54.86654395' 在 /home/admin/domains/bicimaya.mx/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php:44 堆栈跟踪:#0 /home/admin/域/bicimaya.mx/public_html/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/home/admin/dom...', 'compileTemplateSource() #2 /home/admin/domains /bicimaya.mx/public_html/classes/module/Module.php(1623): Smarty_Internal_TemplateBase->fetch() #3 /home/admin/domains/bicimaya.mx/public_html/modules/favoriteproducts/favorit eproducts.php(105): ModuleCore->display('/home/admin/dom...', 'favoriteproduct...') #4 /home/admin/domains/bicimaya.mx/public_html/classes/Hook. php(421):FavoriteProducts- 在 /home/admin/domains/bicimaya.mx/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php 第 44 行
在Prestashop论坛上调查我看到我必须删除一些目录,例如/cache/smarty/cache和/cache/smarty/compile,但是我的项目没有这两个目录。希望有人能帮我解决这个错误,谢谢。
【问题讨论】:
-
能否将您的错误日志格式化为代码?这样读起来很难。
-
好的,我解决了它在文件 cookie.php 中更改第 80 行,如下所示: OLD: $this->_cipherTool = new Rijndael(RIJNDAEL_KEY, RIJNDAEL_IV i>);新:$this->_cipherTool = new Rijndael('RIJNDAEL_KEY', 'RIJNDAEL_IV');
-
我清理了您的问题,但如果没有更多细节,我们可能无法帮助您。您能否发布一些配置或描述您在迁移中做了什么?
标签: php migration prestashop prestashop-1.5