Jump to content

Recommended Posts

Posted

Only yesterday I managed to migrate my forum to PHP 8 and I'm having problems with Elasticsearch.
I'm using IPS 4.6, Elasticsearch 7.17 and PHP 8.1.14

I get the following error when I try to delete a post or topic. (This is happening in an unmodified theme with all 3rd party apps/plugins disabled.)
The problem only stops happening when I change the search engine to MySQL

TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given (0)
#0 //public_html/applications/forums/sources/Forum/Forum.php(1572): in_array()
#1 //public_html/applications/forums/sources/Topic/Topic.php(894): IPS\forums\_Forum->permissionsThatCanAccessAllTopics()
#2 //public_html/system/Content/Comment.php(738): IPS\forums\_Topic->searchIndexPermissions()
#3 //public_html/system/Content/Search/Index.php(412): IPS\Content\_Comment->searchIndexPermissions()
#4 //public_html/system/Content/Search/Elastic/Index.php(146): IPS\Content\Search\_Index->indexData()
#5 //public_html/system/Content/Search/Elastic/Index.php(942): IPS\Content\Search\Elastic\_Index->indexData()
#6 //public_html/system/Content/Search/Elastic/Index.php(458): IPS\Content\Search\Elastic\_Index->resetLastComment()
#7 //public_html/applications/core/sources/DeletionLog/DeletionLog.php(215): IPS\Content\Search\Elastic\_Index->removeFromSearchIndex()
#8 //public_html/system/Content/Content.php(1149): IPS\core\_DeletionLog->save()
#9 //public_html/system/Content/Content.php(1094): IPS\_Content->logDelete()
#10 //public_html/system/Content/Controller.php(3756): IPS\_Content->modAction()
#11 //public_html/system/Content/Controller.php(2290): IPS\Content\_Controller->_multimod()
#12 //public_html/applications/forums/modules/front/forums/topic.php(1240): IPS\Content\_Controller->__call()
#13 //public_html/system/Dispatcher/Controller.php(107): IPS\forums\modules\front\forums\_topic->__call()
#14 //public_html/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute()
#15 //public_html/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute()
#16 //public_html/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute()
#17 //public_html/index.php(13): IPS\_Dispatcher->run()
#18 {main}

During index rebuild it generated more than 450 errors like this in the logs:

TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/ebrcom/web/eletronicabr.com/public_html/applications/forums/sources/Forum/Forum.php:1572 Stack trace: 
#0 //public_html/applications/forums/sources/Forum/Forum.php(1572): in_array() 
#1 //public_html/applications/forums/sources/Topic/Topic.php(894): IPS\forums\_Forum->permissionsThatCanAccessAllTopics() 
#2 //public_html/system/Content/Comment.php(738): IPS\forums\_Topic->searchIndexPermissions() 
#3 //public_html/system/Content/Search/Index.php(412): IPS\Content\_Comment->searchIndexPermissions() 
#4 //public_html/system/Content/Search/Elastic/Index.php(146): IPS\Content\Search\_Index->indexData() 
#5 //public_html/system/Content/Search/Elastic/MassIndexer.php(38): IPS\Content\Search\Elastic\_Index->indexData() 
#6 //public_html/applications/core/extensions/core/Queue/RebuildSearchIndex.php(169): IPS\Content\Search\Elastic\_MassIndexer->index() 
#7 //public_html/system/Task/Task.php(47): IPS\core\extensions\core\Queue\_RebuildSearchIndex->run() 
#8 //public_html/applications/core/tasks/queue.php(43): IPS\_Task::runQueue() 
#9 //public_html/system/Task/Task.php(375): IPS\core\tasks\_queue->IPS\core\tasks\{closure}() 
#10 //public_html/applications/core/tasks/queue.php(55): IPS\_Task->runUntilTimeout() 
#11 //public_html/system/Task/Task.php(274): IPS\core\tasks\_queue->execute() 
#12 //public_html/system/Task/Task.php(237): IPS\_Task->run() 
#13 //public_html/applications/core/interface/task/task.php(72): IPS\_Task->runAndLog() 
#14 {main}

 

Posted

Oops. I traveled in the version!!!

Current version-> Invision Community v4.7.6

Another detail that I forgot to inform is that this problem happens only in a single forum that has different permissions.

Could contain: Night, Nature, Outdoors, Page, Text, Moon, Astronomy, Pc, Electronics, Computer

Posted

We would need to look further into this for you, however the access details on file appear to be incorrect or missing. Could you please update these details by visiting your client area, selecting the relevant purchase, then clicking "Review/Update Access Information" under the "Stored Access Information" section. 

We look forward to further assisting you. 

 

Posted

Ftp has some problem.

I added the access information in the hosting panel. LA has a file manager where you can make any changes you would make via ftp.

Even better that you will also have access to the most complete error logs

  • 3 weeks later...
Posted

After the ticket was opened, I was attended by these guys: 👇
@Andy Millne @Jim M @Marc Stridgen @Stuart Silvester @Daniel F

In the end, he got the following answer:

Quote

Thank you for bringing this issue to our attention. I investigated the issue you reported and the issue appears to be a bug in the current version of Invision Community.

I have submitted a possible solution to the issue described here, and after review by the development team, the fix should be included in an upcoming release of the Invision Community

I wonder if the bug was resolved in the version released yesterday 4.7.7 ???

Posted
2 minutes ago, DSystem said:

I wonder if the bug was resolved in the version released yesterday 4.7.7 ???

Sorry, this was not included in 4.7.7. It should be included in the next release, however, if things go to plan.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...