Bug Getting error when attempting to post on test site

Status
Not open for further replies.

vauge

Customer
See below for php server info. Site is test forum under directory /xf-test and currently not live.

Error only occurs in forum enabled to tweet when attempting to create a new thread.

Xenforo: 2.2.7 Patch 1
DragonByte Tweet Poster: 1.2.2 (branding option)

Stack trace​

#0 src/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/home/debatepo/...')
#1 [internal function]: Composer\Autoload\ClassLoader->loadClass('Abraham\\Twitter...')
#2 src/addons/DBTech/TweetPoster/XF/Service/Thread/Creator.php(80): spl_autoload_call('Abraham\\Twitter...')
#3 src/XF/Service/ValidateAndSavableTrait.php(42): DBTech\TweetPoster\XF\Service\Thread\Creator->_save()
#4 src/XF/Pub/Controller/Forum.php(919): XF\Service\Thread\Creator->save()
#5 src/addons/XenConcept/AdvancedForumRules/XF/Pub/Controller/Forum.php(59): XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(352): XenConcept\AdvancedForumRules\XF\Pub\Controller\Forum->actionPostThread(Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(263): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'PostThread', Object(XF\Mvc\RouteMatch), Object(SV\OptimizedListQueries\XF\Pub\Controller\Forum), NULL)
#8 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\OptimizedListQueries\XF\Pub\Controller\Forum), NULL)
#9 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(2345): XF\Mvc\Dispatcher->run()
#11 src/XF.php(512): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}

Request state​

array(4) {
["url"] => string(55) "/xf-test/forums/announcements-forum-news.12/post-thread"
["referrer"] => string(85) "https://www.debatepolitics.com/xf-test/forums/announcements-forum-news.12/post-thread"
["_GET"] => array(0) {
}
["_POST"] => array(12) {
["title"] => string(36) "Testing Twitter feed - please ignore"
["discussion_type"] => string(10) "discussion"
["message_html"] => string(14) "<p>Thanks!</p>"
["attachment_hash"] => string(32) "2b3235ffa42155b7580a698a159751ba"
["attachment_hash_combined"] => string(82) "{"type":"post","context":{"node_id":12},"hash":"2b3235ffa42155b7580a698a159751ba"}"
["watch_thread"] => string(1) "1"
["_xfSet"] => array(3) {
["watch_thread"] => string(1) "1"
["discussion_open"] => string(1) "1"
["sticky"] => string(1) "1"
}
["discussion_open"] => string(1) "1"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(55) "/xf-test/forums/announcements-forum-news.12/post-thread"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}

Selection_001.png

Thanks for your time.
 
Oops! Here is the contents of the popup error:

ParseError: syntax error, unexpected ')' in src/addons/DBTech/TweetPoster/vendor/abraham/twitteroauth/src/TwitterOAuth.php at line 206
  1. Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 346
  2. Composer\Autoload\ClassLoader->loadClass()
  3. spl_autoload_call() in src/addons/DBTech/TweetPoster/XF/Service/Thread/Creator.php at line 80
  4. DBTech\TweetPoster\XF\Service\Thread\Creator->_save() in src/XF/Service/ValidateAndSavableTrait.php at line 42
  5. XF\Service\Thread\Creator->save() in src/XF/Pub/Controller/Forum.php at line 919
  6. XF\Pub\Controller\Forum->actionPostThread() in src/addons/XenConcept/AdvancedForumRules/XF/Pub/Controller/Forum.php at line 59
  7. XenConcept\AdvancedForumRules\XF\Pub\Controller\Forum->actionPostThread() in src/XF/Mvc/Dispatcher.php at line 352
  8. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 263
  9. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  10. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  11. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2345
  12. XF\App->run() in src/XF.php at line 512
  13. XF::runApp() in index.php at line 20
 
Unfortunately this might be a case of PHP 7.2 support - I was not aware this 3rd party library required PHP 7.3.

I would strongly advise you upgrade to at minimum PHP 7.4, preferably 8.0.
 
Hello @vauge,

We hope your ticket regarding DragonByte Tweet Poster has been addressed to your satisfaction. This ticket has now been scheduled to be closed.

If your ticket has not been resolved, you can reply to this thread at any point in the next 7 days in order to reopen the ticket, afterwards this thread will be closed.

Please do not reply to this thread if your ticket has been resolved.

Thank you.


- DragonByte Technologies, Ltd.
 
Hello @vauge,

As we have not heard back from you, your ticket regarding DragonByte Tweet Poster has now been closed.

If your ticket has not been resolved, please feel free to start a new support ticket and link back to this ticket.

If you have time, please leave a review on XenForo.com's Resource Manager.

Thank you.


- DragonByte Technologies, Ltd.
 
Status
Not open for further replies.

DragonByte Tweet Poster

XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
789
Customer rating
3.00 star(s) 1 ratings
Back
Top