配置模块和插件后,我在WAMP服务器上安装了Joomla ....
我试图将它移到我的网站,我使用了" Plesk文件管理器"上传脚本
然后我成功导出并导入数据库到远程主机。
除了数据库配置,我还重新配置了configuration.php
文件,如下所示:
public $log_path = 'D:\\Inetpub\\vhosts\\site.com\\httpdocs\\site\\Joomla/logs';
public $tmp_path = 'D:\\Inetpub\\vhosts\\site.com\\httpdocs\\site\\Joomla/tmp';
但在浏览我的joomla索引页面时出现以下错误:
Warning: require_once(__DIR__/cache.php) [function.require-once]: failed to open stream: No error in D:\Inetpub\vhosts\site.com\httpdocs\site\Joomla\plugins\system\nnframework\helpers\protect.php on line 16
Fatal error: require_once() [function.require]: Failed opening required '__DIR__/cache.php' (include_path='.;./includes;./pear') in D:\Inetpub\vhosts\site.com\httpdocs\site\Joomla\plugins\system\nnframework\helpers\protect.php on line 16
那么如何修复此错误?
答案 0 :(得分:0)
尝试使用AkeebaBackup之类的组件,而不是手动移动网站。
您可以使用免费版本进行备份,下载,然后使用kickstart文件在本地恢复网站。
答案 1 :(得分:0)
问题解决了....好像php版本不支持__DIR__
功能
所以我只是用绝对目录位置替换它,并且工作正常