[TH] Ignore More [Deleted]

AnjaC

Active member
Please fix this:

Server-Error Log​

  • ErrorException: [E_WARNING] Declaration of ThemeHouse\IgnoreMore\XF\FindNew\Thread::filterResults(XF\Mvc\Entity\AbstractCollection $results) should be compatible with XF\FindNew\Thread::filterResults(XF\Mvc\Entity\ArrayCollection $results)
  • src/addons/ThemeHouse/IgnoreMore/XF/FindNew/Thread.php:0
  • Generiert von: HaDiDi
  • 07. März 2021 um 15:19

Stack-Trace​

#0 src/vendor/composer/ClassLoader.php(444): XF::handlePhpError(2, '[E_WARNING] Dec...', '/home/www/web21...', 0, Array)
#1 src/vendor/composer/ClassLoader.php(444): include()
#2 src/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/www/web21...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('ThemeHouse\\Igno...')
#4 [internal function]: spl_autoload_call('ThemeHouse\\Igno...')
#5 src/XF/Extension.php(172): class_exists('ThemeHouse\\Igno...')
#6 src/XF/App.php(2674): XF\Extension->extendClass('XF\\FindNew\\Thre...', NULL)
#7 src/XF.php(732): XF\App->extendClass('XF\\FindNew\\Thre...', NULL)
#8 src/XF/Repository/FindNew.php(81): XF::extendClass('XF\\FindNew\\Thre...')
#9 src/XF/ControllerPlugin/FindNew.php(87): XF\Repository\FindNew->getFindNewHandler('thread')
#10 src/XF/Pub/Controller/AbstractWhatsNewFindType.php(18): XF\ControllerPlugin\FindNew->getFindNewHandler('thread')
#11 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\AbstractWhatsNewFindType->actionIndex(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:WhatsNewPost', 'Index', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\WhatsNewPost), NULL)
#13 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\WhatsNewPost), NULL)
#14 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#16 src/XF.php(391): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}

Status der Anfrage​

array(4) {
["url"] => string(34) "/community/whats-new/posts/?skip=1"
["referrer"] => string(52) "https://www.xxxxxxxx/community/whats-new/"
["_GET"] => array(1) {
["skip"] => string(1) "1"
}
["_POST"] => array(0) {
}
}
 

AnjaC

Active member
Ok, found it. The latest version is not more usable with XF 2.1, what it should be.

For those who use this addon with 2.1, change AbstractCollection to ArryCollection in

src/addons/ThemeHouse/IgnoreMore/XF/FindNew/Thread.php
 

Dalton Prock

Well-known member
Please fix this:

Server-Error Log​

  • ErrorException: [E_WARNING] Declaration of ThemeHouse\IgnoreMore\XF\FindNew\Thread::filterResults(XF\Mvc\Entity\AbstractCollection $results) should be compatible with XF\FindNew\Thread::filterResults(XF\Mvc\Entity\ArrayCollection $results)
  • src/addons/ThemeHouse/IgnoreMore/XF/FindNew/Thread.php:0
  • Generiert von: HaDiDi
  • 07. März 2021 um 15:19

Stack-Trace​

#0 src/vendor/composer/ClassLoader.php(444): XF::handlePhpError(2, '[E_WARNING] Dec...', '/home/www/web21...', 0, Array)
#1 src/vendor/composer/ClassLoader.php(444): include()
#2 src/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/www/web21...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('ThemeHouse\\Igno...')
#4 [internal function]: spl_autoload_call('ThemeHouse\\Igno...')
#5 src/XF/Extension.php(172): class_exists('ThemeHouse\\Igno...')
#6 src/XF/App.php(2674): XF\Extension->extendClass('XF\\FindNew\\Thre...', NULL)
#7 src/XF.php(732): XF\App->extendClass('XF\\FindNew\\Thre...', NULL)
#8 src/XF/Repository/FindNew.php(81): XF::extendClass('XF\\FindNew\\Thre...')
#9 src/XF/ControllerPlugin/FindNew.php(87): XF\Repository\FindNew->getFindNewHandler('thread')
#10 src/XF/Pub/Controller/AbstractWhatsNewFindType.php(18): XF\ControllerPlugin\FindNew->getFindNewHandler('thread')
#11 src/XF/Mvc/Dispatcher.php(350): XF\Pub\Controller\AbstractWhatsNewFindType->actionIndex(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(261): XF\Mvc\Dispatcher->dispatchClass('XF:WhatsNewPost', 'Index', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\WhatsNewPost), NULL)
#13 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\WhatsNewPost), NULL)
#14 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2190): XF\Mvc\Dispatcher->run()
#16 src/XF.php(391): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}

Status der Anfrage​

array(4) {
["url"] => string(34) "/community/whats-new/posts/?skip=1"
["referrer"] => string(52) "https://www.xxxxxxxx/community/whats-new/"
["_GET"] => array(1) {
["skip"] => string(1) "1"
}
["_POST"] => array(0) {
}
}
Ok, found it. The latest version is not more usable with XF 2.1, what it should be.

For those who use this addon with 2.1, change AbstractCollection to ArryCollection in

src/addons/ThemeHouse/IgnoreMore/XF/FindNew/Thread.php
We have received your ticket and are taking a look.
 

Chillers

Member
Server error log
  • ErrorException: [E_WARNING] Declaration of ThemeHouse\IgnoreMore\XF\FindNew\Thread::filterResults(XF\Mvc\Entity\AbstractCollection $results) should be compatible with XF\FindNew\Thread::filterResults(XF\Mvc\Entity\ArrayCollection $results)
  • src/addons/ThemeHouse/IgnoreMore/XF/FindNew/Thread.php:0
  • Generated by: Unknown account
  • Mar 31, 2021 at 11:41 PM

Stack trace​

#0 src/vendor/composer/ClassLoader.php(444): XF::handlePhpError(2, '[E_WARNING] Dec...', '/home/xf/public...', 0, Array)
#1 src/vendor/composer/ClassLoader.php(444): include()
#2 src/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/xf/public...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('ThemeHouse\\Igno...')
#4 [internal function]: spl_autoload_call('ThemeHouse\\Igno...')
#5 src/XF/Extension.php(172): class_exists('ThemeHouse\\Igno...')
#6 src/XF/App.php(2661): XF\Extension->extendClass('XF\\FindNew\\Thre...', NULL)
#7 src/XF.php(735): XF\App->extendClass('XF\\FindNew\\Thre...', NULL)
#8 src/XF/Repository/FindNew.php(81): XF::extendClass('XF\\FindNew\\Thre...')
#9 src/XF/ControllerPlugin/FindNew.php(87): XF\Repository\FindNew->getFindNewHandler('thread')
#10 src/XF/Pub/Controller/AbstractWhatsNewFindType.php(18): XF\ControllerPlugin\FindNew->getFindNewHandler('thread')
#11 src/XF/Mvc/Dispatcher.php(321): XF\Pub\Controller\AbstractWhatsNewFindType->actionIndex(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(248): XF\Mvc\Dispatcher->dispatchClass('XF:WhatsNewPost', 'Index', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\WhatsNewPost), NULL)
#13 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\WhatsNewPost), NULL)
#14 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#16 src/XF.php(390): XF\App->run()
#17 index.php(20): XF::runApp('XF\\Pub\\App')
#18 {main}

Request state​

array(4) {
["url"] => string(24) "/whats-new/posts/343927/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}


Fix please? :rolleyes:
 

mattrogowski

Well-known member
The addon is currently only compatible with XF 2.2, as the underlying XF code the addon uses changed between 2.1 and 2.2.
 

mattrogowski

Well-known member
It seems that it will ignore the thread if "Thread list" was selected in the modal when ignoring it. If this isn't selected (i.e. you only select "News feed") it will still show in the sidebar. Can you confirm if you selected "Thread list" when ignoring but it still shows in the sidebar?
 

mattrogowski

Well-known member
Thank you for pointing that out - I've been told internally it doesn't support 2.1 any more but seem like that's not been updated everywhere, or in the addon itself.

I've just been looking into trying to make it work for both though, and it doesn't error for me on 2.1. What version of PHP are you running?
 

Chillers

Member
Thank you for pointing that out - I've been told internally it doesn't support 2.1 any more but seem like that's not been updated everywhere, or in the addon itself.

I've just been looking into trying to make it work for both though, and it doesn't error for me on 2.1. What version of PHP are you running?
I am running

7.2.22-1
 

Silmarillion

Active member
It seems that it will ignore the thread if "Thread list" was selected in the modal when ignoring it. If this isn't selected (i.e. you only select "News feed") it will still show in the sidebar. Can you confirm if you selected "Thread list" when ignoring but it still shows in the sidebar?
It works, Matt. Thank you. :)
 

dvsDave

Well-known member
Ok, found it. The latest version is not more usable with XF 2.1, what it should be.

For those who use this addon with 2.1, change AbstractCollection to ArryCollection in

src/addons/ThemeHouse/IgnoreMore/XF/FindNew/Thread.php

Thank you, that worked, although it's ArrayCollection, not ArryCollection.
 

ThemeHouse

Well-known member
Big and exciting changes are coming as we adjust our trajectory, just know that we’ll be with you every step of the way. Take a look at our announcement here for more information. If you have any questions, please contact us here so we can assist.

*People who have purchased this product in the past will continue to have access to updates as long as the product is maintained. The license it was purchased under will remain intact.
 

Silmarillion

Active member
Code:
     ErrorException: Template error: [E_USER_WARNING] Method canViewWhoReplied is not callable on the given object (ThemeHouse\IgnoreMore\XF\Entity\Thread) src/XF/Template/Templater.php:1161
    
          Generiert von: Aimar 20 Dezember 2021 um 20:27

Stack-Trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/homepages/33/d...', 1161, Array)
#1 src/XF/Template/Templater.php(1161): trigger_error('Method canViewW...', 512)
#2 internal_data/code_cache/templates/l2/s1/public/thread_list_macros_whoreplied.php(10): XF\Template\Templater->method(Object(ThemeHouse\IgnoreMore\XF\Entity\Thread), 'canViewWhoRepli...', Array)
#3 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#4 src/XF/Template/Templater.php(1655): XF\Template\Templater->renderTemplate('thread_list_mac...', Array)
#5 internal_data/code_cache/templates/l2/s1/public/thread_list_macros.php(417): XF\Template\Templater->includeTemplate('public:thread_l...', Array)
#6 src/XF/Template/Templater.php(962): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#7 src/XF/Template/Templater.php(898): XF\Template\Templater->renderExtensionInternal('meta_cell', Array, Array, Object(XF\Template\ExtensionSet))
#8 internal_data/code_cache/templates/l2/s1/public/thread_list_macros.php(505): XF\Template\Templater->renderExtension('meta_cell', Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(799): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#10 internal_data/code_cache/templates/l2/s1/public/forum_view.php(126): XF\Template\Templater->callMacro('thread_list_mac...', 'item', Array, Array)
#11 src/XF/Template/Templater.php(962): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#12 src/XF/Template/Templater.php(898): XF\Template\Templater->renderExtensionInternal('thread_list', Array, Array, Object(XF\Template\ExtensionSet))
#13 internal_data/code_cache/templates/l2/s1/public/forum_view.php(567): XF\Template\Templater->renderExtension('thread_list', Array, Object(XF\Template\ExtensionSet))
#14 src/XF/Template/Templater.php(1626): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#15 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('forum_view', Array)
#16 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#17 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Forum\\View', 'public:forum_vi...', Array)
#18 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#21 src/XF/App.php(2326): XF\Mvc\Dispatcher->run()
#22 src/XF.php(488): XF\App->run()
#23 index.php(20): XF::runApp('XF\\Pub\\App')
#24 {main}

Status der Anfrage

array(4) {
  ["url"] => string(23) "/forums/sport-forum.20/"
  ["referrer"] => string(24) "https://www.fanlager.de/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Any sugesstions? Whta does that mean?
 

Silmarillion

Active member
Hello Matt,

Thank you very much for the quick reply. I had deactivated Xons add-on for test purposes. That explains the mistake and your hint is absolutely correct.

Best regards,
Chris
 
Top