【问题标题】:Undefined offset: 1 in genghisapp on PHP未定义的偏移量:PHP genghisapp 中的 1
【发布时间】:2014-07-27 01:13:13
【问题描述】:

一段时间以来,我一直在使用 genghis (genghisapp.com) 和 PHP 在各种服务器上管理我的 mongodb 数据库,并取得了巨大成功。 我在我的 rackspace 云服务器(fedora 17、apache 2.2、php 5.4)上运行时遇到了麻烦。 我也在这台服务器上尝试了最后几个版本的 genghis,但没有成功。 我一辈子都看不到我做错了什么。

请求 genghis.php 页面时,我收到此消息...

Fatal error: Uncaught exception 'Genghis_ErrorException' with message 'PHP error: Undefined offset: 1' in /www/engine/system/genghis.php:17 Stack trace: #0 /www/engine/system/genghis.php(17): Genghis_ErrorException::throwException(8, 'Undefined offse...', '/www/engine/sys...', 17, Array) #1 /www/engine/system/genghis.php(17): Genghis_AssetLoader_Inline->initAssets() #2 /www/engine/system/genghis.php(15): Genghis_AssetLoader_Inline->loadRaw('error.html.must...') #3 /www/engine/system/genghis.php(15): Genghis_App->renderTemplate('error.html.must...', 500, Array) #4 /www/engine/system/genghis.php(15): Genghis_App->errorResponse('PHP error: Und...') #5 /www/engine/system/genghis.php(36): Genghis_App->run() #6 {main} thrown in /www/engine/system/genghis.php on line 17

有人知道我做错了什么吗?任何能指出我正确方向的东西都会很好。众所周知,我不擅长破译这些堆栈跟踪消息。

【问题讨论】:

    标签: php mongodb rackspace


    【解决方案1】:

    这意味着在文件中 /www/engine/system/genghis.php 第 17 行一些代码指的是不存在的数组键。 “抵消” 引用数字数组的整数键。

    由于您已将其移至不同的环境,因此可能未定义其他环境中存在的某些内容并导致问题。如果您可以发布 genghis.php 的源代码,我可能会提供更多帮助。

    【讨论】:

    • genghis.php source 但我非常怀疑这是 genghis 的问题,而是我做错了什么,或者 rackspace 的 apache/php 设置有什么奇怪的地方。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-01-02
    • 2011-07-22
    • 2021-07-12
    • 1970-01-01
    • 1970-01-01
    • 2014-10-01
    • 1970-01-01
    相关资源
    最近更新 更多