【发布时间】:2011-12-30 16:35:30
【问题描述】:
我们有一个 silverstripe 网站,可以在 centos 网络服务器上正常运行。我被要求对这个站点进行修改,并且必须在我们的内部 Ubuntu 开发服务器上有一个工作副本。做网站的那个人早就走了,没人知道这个项目。
我做了移动,转移了数据库并将配置文件更改为新设置。现在,每当我启动网站时,我都会收到一个完整的页面或红色错误:
FATAL ERROR: call_user_func_array() expects parameter 2 to be array, null given
At line 404 in /home/user/site/sapphire/core/ViewableData.php
call_user_func_array(Array,)
line 404 of ViewableData.php
ViewableData->XML_val(current_lang,,1)
line 4 of .cache.home.user.site.mysite.templates.Layout.PageAccueil.ss
include(/home/user/site/silverstripe-cache/.cache.home.user.site.mysite.templates.Layout.PageAccueil.ss)
line 197 of SSViewer.php
SSViewer->process(PageAccueil_Controller)
line 189 of SSViewer.php
SSViewer->process(PageAccueil_Controller)
line 296 of Controller.php
Controller->defaultAction(index,Array)
line 267 of Controller.php
Controller->run(Array)
line 22 of ModelAsController.php
ModelAsController->run(Array)
line 27 of RootURLController.php
RootURLController->run(Array)
line 104 of Director.php
Director::direct()
line 160 of main.php
据我所知,我们的开发服务器和其他框架(zend 框架甚至 wordpress)都可以完美运行。 这不是最新版本的 silverstripe,而是尝试更新它时遇到了同样的错误,所以我希望在更新之前让它工作。
我们使用的是 silverstripe 2.2.2 版。
欢迎任何帮助或指点!
编辑:我确实尝试使用/dev/build/?flush=1 和/build/?flush=1 加载网站,但这些页面上仍然出现相同的错误。缓存文件也应该设置正确。
【问题讨论】:
-
我不是 SS 方面的专家,但这一行:
ViewableData->XML_val(current_lang,,1)让我觉得您的语言文件可能没有成功移动,或者新服务器上的权限问题使它们无法读取。 -
@julio 感谢您的输入!但我很确定我拥有所有文件。我只是先重新加载它们,然后将它们压缩到服务器上,所以我应该拥有一切。
-
我也修改了所有不应该是权限问题的东西。
标签: php frameworks silverstripe