Insert attachment

Insert attachment [Paid] 2.3

No permission to buy ($35.00)
Error logged
PHP:
Server error log

ErrorException: [E_WARNING] Undefined variable $attachment_id src/addons/Andy/InsertAttachment/XF/Pub/Controller/Thread.php:78
Generated by: User Mar 28, 2022 at 7:10 PM

Stack trace
#0 src/addons/Andy/InsertAttachment/XF/Pub/Controller/Thread.php(78): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/nginx/dom...', 78)
#1 src/XF/Pub/Controller/Thread.php(702): Andy\InsertAttachment\XF\Pub\Controller\Thread->getNewPostsReplyInternal(Object(XFMG\XF\Entity\Thread), Object(XF\Mvc\Entity\ArrayCollection), NULL)
#2 src/XF/Pub/Controller/Thread.php(616): XF\Pub\Controller\Thread->getNewPostsSinceDateReply(Object(XFMG\XF\Entity\Thread), 1648465584)
#3 src/addons/ThemeHouse/AutoMergeDoublePost/XF/Pub/Controller/Thread.php(42): XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Dispatcher.php(352): ThemeHouse\AutoMergeDoublePost\XF\Pub\Controller\Thread->actionAddReply(Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Thread', 'AddReply', Object(XF\Mvc\RouteMatch), Object(XFMG\XF\Pub\Controller\Thread), NULL)
#6 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XFMG\XF\Pub\Controller\Thread), NULL)
#7 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#8 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#9 src/XF.php(517): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}

Request state
array(4) {
  ["url"] => string(67) "/threads/thread-title-5.12345/add-reply"
  ["referrer"] => string(78) "https://xf.com/threads/thread-title-5.12345/"
  ["_GET"] => array(1) {
    ["/threads/thread-title-5_12345/add-reply"] => string(0) ""
  }
  ["_POST"] => array(10) {
    ["_xfToken"] => string(8) "********"
    ["message_html"] => string(687) "<blockquote data-attributes="member: 1679116" data-quote="User2" data-source="post: 22587709"><p>post...</p></blockquote><p><img src="/attachments/1648465806682-png.1875646/?hash=b7252cde6534d0152b59d3cdadf471d1" class="fr-fic fr-dii" status="ok" message="Your changes have been saved." redirect="https://xf.com/attachments/upload?type=post&amp;context[thread_id]=12345&amp;hash=b7252cde6534d0152b59d3cdadf471d1" attachment="[object Object]" visitor="[object Object]" data-attachment="full:1875646"></p><p><br></p><p>post...</p>"
    ["attachment_hash"] => string(32) "b7252cde6534d0152b59d3cdadf471d1"
    ["attachment_hash_combined"] => string(89) "{"type":"post","context":{"thread_id":12345},"hash":"b7252cde6534d0152b59d3cdadf471d1"}"
    ["last_date"] => string(10) "1648465584"
    ["last_known_date"] => string(10) "1648465584"
    ["load_extra"] => string(1) "1"
    ["_xfRequestUri"] => string(58) "/threads/thread-title-5.12345/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Hi, can I use latest version for xf 2.1 ?

I see your add-on only support mp4

1677949899608.webp

Could you add support auto insert other types video ? These are default file type attachments XF support, can you support all of it instead just mp4 ?

1677949828420.webp
 
Top Bottom