Ignore Content

Ignore Content [Paid] 4.1.0

No permission to buy ($30.00)
I get this error when trying to move a post:

Code:
TypeError: Truonglv\IgnoreContent\App::isIgnored(): Argument #2 ($contentId) must be of type int, null given, called in /home/caf/public_html/src/addons/Truonglv/IgnoreContent/Ignore/Thread.php on line 195 src/addons/Truonglv/IgnoreContent/App.php:36
Generated by: Pete Thomas Jul 8, 2026 at 3:22 PM
Stack trace
#0 src/addons/Truonglv/IgnoreContent/Ignore/Thread.php(195): Truonglv\IgnoreContent\App::isIgnored('thread', NULL)
#1 src/addons/Truonglv/IgnoreContent/Ignore/AbstractHandler.php(178): Truonglv\IgnoreContent\Ignore\Thread->isIgnoredContent(Object(SV\UserEssentials\XF\Entity\ThreadPatch2))
#2 src/addons/Truonglv/IgnoreContent/Entity/IgnoreTrait.php(33): Truonglv\IgnoreContent\Ignore\AbstractHandler->isIgnored(Object(SV\UserEssentials\XF\Entity\ThreadPatch2))
#3 src/addons/Truonglv/IgnoreContent/XF/Entity/Thread.php(49): Truonglv\IgnoreContent\XF\Entity\Thread->ticIsIgnored()
#4 src/XF/Service/ModerationAlertSendableTrait.php(86): Truonglv\IgnoreContent\XF\Entity\Thread->canView()
#5 src/XF.php(914): XF\Service\Post\MoverService->XF\Service\{closure}()
#6 src/XF/Service/ModerationAlertSendableTrait.php(84): XF::asVisitor(Object(SV\ConversationEssentials\XF\Entity\User), Object(Closure))
#7 src/XF/Service/Post/MoverService.php(133): XF\Service\Post\MoverService->isContentVisibleToContentAuthor(Object(SV\UserEssentials\XF\Entity\ThreadPatch2), Object(SV\UserEssentials\XF\Entity\Post))
#8 src/XF/InlineMod/Post/Move.php(43): XF\Service\Post\MoverService->move(Array)
#9 src/XF/InlineMod/AbstractAction.php(161): XF\InlineMod\Post\Move->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
#10 src/XF/Pub/Controller/InlineModController.php(133): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
#11 src/addons/Siropu/AdsManager/XF/Pub/Controller/InlineMod.php(54): XF\Pub\Controller\InlineModController->actionPerform()
#12 src/XF/Mvc/Dispatcher.php(362): Siropu\AdsManager\XF\Pub\Controller\InlineMod->actionPerform(Object(XF\Mvc\ParameterBag))
#13 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF\\Pub\\Controll...', 'Perform', Object(XF\Mvc\RouteMatch), Object(Siropu\AdsManager\XF\Pub\Controller\InlineMod), Object(XF\Mvc\Reply\Reroute))
#14 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Siropu\AdsManager\XF\Pub\Controller\InlineMod), Object(XF\Mvc\Reply\Reroute))
#15 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#16 src/XF/App.php(2824): XF\Mvc\Dispatcher->run()
#17 src/XF.php(814): XF\App->run()
#18 index.php(23): XF::runApp('XF\\Pub\\App')
#19 {main}
Request state
array(4) {
  ["url"] => string(12) "/inline-mod/"
  ["referrer"] => string(57) "https://cafesaxophone.com/threads/hello-all-im-new.42520/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(15) {
    ["_xfToken"] => string(8) "********"
    ["thread_type"] => string(3) "new"
    ["node_id"] => string(2) "16"
    ["prefix_id"] => string(3) "106"
    ["title"] => string(16) "Reggae saxophone"
    ["author_alert"] => string(1) "1"
    ["author_alert_reason"] => string(0) ""
    ["ids"] => array(1) {
      [0] => string(6) "634259"
    }
    ["type"] => string(4) "post"
    ["action"] => string(4) "move"
    ["confirmed"] => string(1) "1"
    ["_xfRedirect"] => string(57) "https://cafesaxophone.com/threads/hello-all-im-new.42520/"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(32) "/threads/hello-all-im-new.42520/"
  }
}
 
The Ignore content category title buttons are the wrong colour and need some work.
I'm looking at the tic_ignore_content_button template
Code:
<xf:css src="tic_ignore_content_style.less"/>
<a href="{$ignoreLink}" class="tic-button{{ $extraClasses ? (' ' . $extraClasses) : '' }}"
   title="{{ $isIgnored ? $phrases.unignore : $phrases.ignore }}"
   data-sk-ignore="{$phrases.ignore}" data-sk-unignore="{$phrases.unignore}"
   data-xf-click="{{ $clickInit ?: 'overlay' }}"><xf:trim>
    <xf:if is="$iconOnly">
        <xf:if is="$isIgnored">
            <xf:fa icon="fa-eye-slash" />
        <xf:else />
            <xf:fa icon="fa-eye" />
        </xf:if>
    <xf:else />
        {$buttonText}
    </xf:if>
</xf:trim></a>
And I see that you've coded the ability to add classes after tic-button.
Where can we specify these classes? I want to add button and button-cta.

I'm hoping I will get a reply. If not, I'm going to request that the addon be made free to update and release ourselves.
 
No, me neither. You might want to investigate that error because it sounds like something else is not right.
Well if only happens with this addon enabled so I the first obvious thing is to mention it here.

EDIT: I imagine if may be that it doesn’t always do it, possibly only when moving a post from a thread that’s being ignored.
 
Last edited:
...and all your other enabled addons are enabled. It could be a conflict. Have you tried disabling your other addons to discover whether it could be the combination of this and another?
With all other addons and template modifications disabled, default style: moving post to a different forum:

Code:
TypeError: Truonglv\IgnoreContent\App::isIgnored(): Argument #2 ($contentId) must be of type int, null given, called in /home/caf/public_html/xf2.cafesaxophone.com/src/addons/Truonglv/IgnoreContent/Ignore/Thread.php on line 195 src/addons/Truonglv/IgnoreContent/App.php:36
Generated by: Pete Thomas Oct 17, 2026 at 10:28 AM
Stack trace
#0 src/addons/Truonglv/IgnoreContent/Ignore/Thread.php(195): Truonglv\IgnoreContent\App::isIgnored('thread', NULL)
#1 src/addons/Truonglv/IgnoreContent/Ignore/AbstractHandler.php(178): Truonglv\IgnoreContent\Ignore\Thread->isIgnoredContent(Object(Truonglv\IgnoreContent\XF\Entity\Thread))
#2 src/addons/Truonglv/IgnoreContent/Entity/IgnoreTrait.php(33): Truonglv\IgnoreContent\Ignore\AbstractHandler->isIgnored(Object(Truonglv\IgnoreContent\XF\Entity\Thread))
#3 src/addons/Truonglv/IgnoreContent/XF/Entity/Thread.php(49): Truonglv\IgnoreContent\XF\Entity\Thread->ticIsIgnored()
#4 src/XF/Service/ModerationAlertSendableTrait.php(86): Truonglv\IgnoreContent\XF\Entity\Thread->canView()
#5 src/XF.php(950): XF\Service\Post\MoverService->XF\Service\{closure}()
#6 src/XF/Service/ModerationAlertSendableTrait.php(84): XF::asVisitor(Object(Truonglv\IgnoreContent\XF\Entity\User), Object(Closure))
#7 src/XF/Service/Post/MoverService.php(133): XF\Service\Post\MoverService->isContentVisibleToContentAuthor(Object(Truonglv\IgnoreContent\XF\Entity\Thread), Object(XF\Entity\Post))
#8 src/XF/InlineMod/Post/Move.php(43): XF\Service\Post\MoverService->move(Array)
#9 src/XF/InlineMod/AbstractAction.php(161): XF\InlineMod\Post\Move->applyInternal(Object(XF\Mvc\Entity\ArrayCollection), Array)
#10 src/XF/Pub/Controller/InlineModController.php(133): XF\InlineMod\AbstractAction->apply(Object(XF\Mvc\Entity\ArrayCollection), Array)
#11 src/XF/Mvc/Dispatcher.php(364): XF\Pub\Controller\InlineModController->actionPerform(Object(XF\Mvc\ParameterBag))
#12 src/XF/Mvc/Dispatcher.php(266): XF\Mvc\Dispatcher->dispatchClass('XF\\Pub\\Controll...', 'Perform', Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\InlineModController), Object(XF\Mvc\Reply\Reroute))
#13 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XF\Pub\Controller\InlineModController), Object(XF\Mvc\Reply\Reroute))
#14 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#15 src/XF/App.php(2840): XF\Mvc\Dispatcher->run()
#16 src/XF.php(850): XF\App->run()
#17 index.php(23): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
  ["url"] => string(12) "/inline-mod/"
  ["referrer"] => string(94) "https://xf2.cafesaxophone.com/threads/pork-tales-saxophone-repair-diy-adventures.36873/page-54"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(15) {
    ["_xfToken"] => string(8) "********"
    ["thread_type"] => string(3) "new"
    ["node_id"] => string(2) "67"
    ["prefix_id"] => string(1) "0"
    ["title"] => string(44) "Pork Tales: Saxophone Repair DIY Adventures."
    ["author_alert"] => string(1) "1"
    ["author_alert_reason"] => string(0) ""
    ["ids"] => array(1) {
      [0] => string(6) "641246"
    }
    ["type"] => string(4) "post"
    ["action"] => string(4) "move"
    ["confirmed"] => string(1) "1"
    ["_xfRedirect"] => string(94) "https://xf2.cafesaxophone.com/threads/pork-tales-saxophone-repair-diy-adventures.36873/page-54"
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(65) "/threads/pork-tales-saxophone-repair-diy-adventures.36873/page-54"
  }
}
 
Last edited:
Back
Top Bottom