在发布/编辑时遇到 Invision 社区委员会问题,出现"EX0"错误



我在这个网站上问的第一个问题是。

对于那些宁愿看到我们在这里合作的人。

  • 主机:hostinger.com
  • Php:7.0.33
  • mySQL:5.5.5-10.2.17-MariaDB
  • 论坛版本:Invision Community v4.3.6

所以,我使用invision社区管理论坛,我进行了广泛的搜索(老实说,我只是真正使用了谷歌),但我还是尝试过。我们的主机是hostinger(根据我通过光研究收集的信息和我自己在这个网站上与他们合作的经验,他们并不是最好的选择,但这就是我们所拥有的)

我们最近做了一次更新(我相信从4.2到4.3),但错误在我们更新之前就已经开始了。我收到的特定错误是"EX0"这个错误最糟糕的地方是,它"似乎"被孤立在论坛的新区域,它开始影响所有论坛。

以下是我犯过的一些错误https://pastebin.com/xkkLyUb5

InvalidArgumentException:  (0)
#0 /home/xxxxxxxxxx/public_html/forums/system/Content/Search/Index.php(120): IPS_Task::queue('core', 'IndexSingleItem', Array, 5, true)
#1 /home/xxxxxxxxxx/public_html/forums/system/Content/Item.php(2049): IPSContentSearch_Index->indexSingleItem(Object(IPSforumsTopic))
#2 /home/xxxxxxxxxx/public_html/forums/applications/forums/sources/Topic/Topic.php(1091): IPSContent_Item->unhide(NULL)
#3 /home/xxxxxxxxxx/public_html/forums/applications/forums/sources/Topic/Topic.php(616): IPSforums_Topic->unhide(NULL)
#4 /home/xxxxxxxxxx/public_html/forums/applications/forums/sources/Topic/Topic.php(572): IPSforums_Topic->processAfterCreateOrEdit(Array)
#5 /home/xxxxxxxxxx/public_html/forums/applications/forums/modules/front/forums/topic.php(496): IPSforums_Topic->processAfterEdit(Array)
#6 /home/xxxxxxxxxx/public_html/forums/system/Dispatcher/Controller.php(85): IPSforumsmodulesfrontforums_topic->edit()
#7 /home/xxxxxxxxxx/public_html/forums/system/Content/Controller.php(50): IPSDispatcher_Controller->execute()
#8 /home/xxxxxxxxxx/public_html/forums/applications/forums/modules/front/forums/topic.php(39): IPSContent_Controller->execute()
#9 /home/xxxxxxxxxx/public_html/forums/system/Dispatcher/Dispatcher.php(146): IPSforumsmodulesfrontforums_topic->execute()
#10 /home/xxxxxxxxxx/public_html/forums/index.php(13): IPS_Dispatcher->run()
#11 {main}
Backtrace
#0 /home/xxxxxxxxxx/public_html/forums/init.php(537): IPS_Log::log('InvalidArgument...', 'uncaught_except...')
#1 [internal function]: IPSIPS::exceptionHandler(Object(InvalidArgumentException))
#2 {main}

  • 清除了我的浏览器cookie(如果相关,则发生在idk)
  • 已清除我的浏览器缓存
  • 将任务方法切换到Cron(令人惊讶的是,没有破坏任何内容)
  • 已禁用启用友好URL
  • 已启用启用友好URL
  • 尝试重写URL
  • 清除了服务器的缓存数据(通过自动支持工具进行)

我对这方面几乎没有任何背景,但任何需要的额外信息都可以随时询问。

这很可能是由于core应用程序中的扩展损坏所致。


如果您查看IPSTask(/system/Task/Task.php)中的函数queue

它具有以下条件,可以抛出InvalidArgumentException:

try
{
$extensions = IPSApplication::load( $app )->extensions( 'core', 'Queue', FALSE );
}
catch ( OutOfRangeException $e )
{
throw new InvalidArgumentException;
}
if ( !isset( $extensions[ $key ] ) )
{
throw new InvalidArgumentException;
}

这将尝试加载每个应用程序队列扩展(存储在/applications/APP_NAME/extensions/core/Queue.中

如果由于任何原因未能加载其中一个,或者指定应用程序不存在提供的扩展,它将引发此异常。

我会查看您的/applications/core/extensions/core/Queue目录中是否有任何损坏的队列扩展,并可能重新上传整个目录,以防其中一些或全部丢失。

最新更新