Bug Digest test 4.3.0b1

Status
Not open for further replies.

iask

Customer
  • ErrorException: [E_WARNING] count(): Parameter must be an array or an object that implements Countable
  • src/addons/DBTech/Mail/DigestContent/Thread.php:251
Stack trace

#0 [internal function]: XF::handlePhpError(2, '[E_WARNING] cou...', '/home/pctuts/do...', 251, Array)
#1 src/addons/DBTech/Mail/DigestContent/Thread.php(251): count('[]')
#2 src/addons/DBTech/Mail/DigestContent/Thread.php(346): DBTech\Mail\DigestContent\Thread->isValidForThread(Object(DBTech\Mail\Entity\Digest), Object(XenConcept\UserActivity\XF\Entity\Thread))
#3 [internal function]: DBTech\Mail\DigestContent\Thread->DBTech\Mail\DigestContent\{closure}(Object(XenConcept\UserActivity\XF\Entity\Thread))
#4 src/XF/Mvc/Entity/AbstractCollection.php(189): array_filter(Array, Object(Closure))
#5 src/addons/DBTech/Mail/DigestContent/Thread.php(352): XF\Mvc\Entity\AbstractCollection->filter(Object(Closure))
#6 src/XF.php(478): DBTech\Mail\DigestContent\Thread->DBTech\Mail\DigestContent\{closure}()
#7 src/addons/DBTech/Mail/DigestContent/Thread.php(353): XF::asVisitor(Object(XFRM\XF\Entity\User), Object(Closure))
#8 src/addons/DBTech/Mail/DigestContent/AbstractHandler.php(160): DBTech\Mail\DigestContent\Thread->getEmailTemplateParams(Object(DBTech\Mail\Entity\Digest), Object(XFRM\XF\Entity\User))
#9 src/addons/DBTech/Mail/Job/DigestEmail.php(152): DBTech\Mail\DigestContent\AbstractHandler->render(Object(DBTech\Mail\Entity\Digest), Object(XFRM\XF\Entity\User))
#10 src/XF/Job/AbstractUserCriteriaJob.php(59): DBTech\Mail\Job\DigestEmail->executeAction(Object(XFRM\XF\Entity\User))
#11 src/addons/DBTech/Mail/Job/DigestEmail.php(90): XF\Job\AbstractUserCriteriaJob->run(0)
#12 src/addons/DBTech/Mail/Admin/Controller/Digest.php(252): DBTech\Mail\Job\DigestEmail->run(0)
#13 src/XF/Mvc/Dispatcher.php(321): DBTech\Mail\Admin\Controller\Digest->actionSendTest(Object(XF\Mvc\ParameterBag))
#14 src/XF/Mvc/Dispatcher.php(244): XF\Mvc\Dispatcher->dispatchClass('DBTech\\Mail:Dig...', 'SendTest', Object(XF\Mvc\RouteMatch), Object(DBTech\Mail\Admin\Controller\Digest), NULL)
#15 src/XF/Mvc/Dispatcher.php(100): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DBTech\Mail\Admin\Controller\Digest), NULL)
#16 src/XF/Mvc/Dispatcher.php(50): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#17 src/XF/App.php(2177): XF\Mvc\Dispatcher->run()
#18 src/XF.php(390): XF\App->run()
#19 admin.php(13): XF::runApp('XF\\Admin\\App')
#20 {main}

array(4) {
["url"] => string(54) "/admin.php?dbtech-mail/digests/nieuwsbrief.1/send-test"
["referrer"] => string(70) "https://www.pctuts.be/admin.php?dbtech-mail/digests/nieuwsbrief.1/test"
["_GET"] => array(1) {
["dbtech-mail/digests/nieuwsbrief_1/send-test"] => string(0) ""
}
["_POST"] => array(2) {
["username"] => string(4) "Tuts"
["_xfToken"] => string(8) "****"
}
}
 
Have you tried editing and saving the digest?

yes done


ErrorException: [E_WARNING] count(): Parameter must be an array or an object that implements Countable in src/addons/DBTech/Mail/DigestContent/Thread.php at line 251

  1. XF::handlePhpError()
  2. count() in src/addons/DBTech/Mail/DigestContent/Thread.php at line 251
  3. DBTech\Mail\DigestContent\Thread->isValidForThread() in src/addons/DBTech/Mail/DigestContent/Thread.php at line 346
  4. DBTech\Mail\DigestContent\Thread->DBTech\Mail\DigestContent\{closure}()
  5. array_filter() in src/XF/Mvc/Entity/AbstractCollection.php at line 189
  6. XF\Mvc\Entity\AbstractCollection->filter() in src/addons/DBTech/Mail/DigestContent/Thread.php at line 352
  7. DBTech\Mail\DigestContent\Thread->DBTech\Mail\DigestContent\{closure}() in src/XF.php at line 478
  8. XF::asVisitor() in src/addons/DBTech/Mail/DigestContent/Thread.php at line 353
  9. DBTech\Mail\DigestContent\Thread->getEmailTemplateParams() in src/addons/DBTech/Mail/DigestContent/AbstractHandler.php at line 160
  10. DBTech\Mail\DigestContent\AbstractHandler->render() in src/addons/DBTech/Mail/Job/DigestEmail.php at line 152
  11. DBTech\Mail\Job\DigestEmail->executeAction() in src/XF/Job/AbstractUserCriteriaJob.php at line 59
  12. XF\Job\AbstractUserCriteriaJob->run() in src/addons/DBTech/Mail/Job/DigestEmail.php at line 90
  13. DBTech\Mail\Job\DigestEmail->run() in src/addons/DBTech/Mail/Admin/Controller/Digest.php at line 252
  14. DBTech\Mail\Admin\Controller\Digest->actionSendTest() in src/XF/Mvc/Dispatcher.php at line 321
  15. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 244
  16. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 100
  17. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 50
  18. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2177
  19. XF\App->run() in src/XF.php at line 390
  20. XF::runApp() in admin.php at line 13
 
I am unable to replicate this issue, sorry. I will need to see your digest configuration.
 
Try selecting a forum, save digest, then edit it again and un-select it 🤔

This shouldn't be necessary, and I patched the file to check whether the forum ID selection is an array in the DigestContent file, but to save having to re-download it you might be able to update your config that way.
 
Hello @iask,

We hope your ticket regarding DragonByte Mail has been addressed to your satisfaction. This ticket has now been 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 @iask,

As we have not heard back from you, your ticket regarding DragonByte Mail 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 Mail

XenForo 1.5.3+ XenForo 2.0.x XenForo 2.1.x XenForo 2.2.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,137
Customer rating
0.00 star(s) 0 ratings
Back
Top