\SendingProcessor::getQueueItems(): Argument #3 ($maxSize) must be of type int

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Summer
    Junior Member
    • Aug 2024
    • 7

    \SendingProcessor::getQueueItems(): Argument #3 ($maxSize) must be of type int

    Bulk email sending error during the event, how to fix it!

    [2024-09-04 06:49:00] ERROR: Slim Application Error Type: TypeError Code: 0 Message: Espo\Modules\Crm\Tools\MassEmail\SendingProcessor: :getQueueItems(): Argument #3 ($maxSize) must be of type int, null given, called in /var/www/html/application/Espo/Modules/Crm/Tools/MassEmail/SendingProcessor.php on line 107 File: /var/www/html/application/Espo/Modules/Crm/Tools/MassEmail/SendingProcessor.php Line: 418 Trace: #0 /var/www/html/application/Espo/Modules/Crm/Tools/MassEmail/SendingProcessor.php(107): Espo\Modules\Crm\Tools\MassEmail\SendingProcessor->getQueueItems(Object(Espo\Modules\Crm\Entities\ Ma ssEmail), true, NULL) #1 /var/www/html/application/Espo/Modules/Crm/Tools/MassEmail/Service.php(169): Espo\Modules\Crm\Tools\MassEmail\SendingProcessor->process(Object(Espo\Modules\Crm\Entities\MassEm ai l), true) #2 /var/www/html/application/Espo/Modules/Crm/Tools/MassEmail/Service.php(151): Espo\Modules\Crm\Tools\MassEmail\Service->processTestSending(Object(Espo\Modules\Crm\Enti ti es\MassEmail)) #3 /var/www/html/application/Espo/Modules/Crm/Controllers/MassEmail.php(64): Espo\Modules\Crm\Tools\MassEmail\Service->processTest('66d8019e8e03e00...', Array) #4 /var/www/html/application/Espo/Core/Api/ControllerActionProcessor.php(87): Espo\Modules\Crm\Controllers\MassEmail->postActionSendTest(Object(Espo\Core\Api\Request Wr apper), Object(Espo\Core\Api\ResponseWrapper)) #5 /var/www/html/application/Espo/Core/Api/ControllerActionHandler.php(65): Espo\Core\Api\ControllerActionProcessor->process('MassEmail', 'sendTest', Object(Espo\Core\Api\RequestWrapper), Object(Espo\Core\Api\ResponseWrapper)) #6 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Espo\Core\Api\ControllerActionHandler->handle(Object(Slim\Psr7\Request)) #7 /var/www/html/application/Espo/Core/Api/RouteProcessor.php(222): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request)) #8 /var/www/html/application/Espo/Core/Api/RouteProcessor.php(149): Espo\Core\Api\RouteProcessor->processControllerAction(Object(Espo\Core\Api\Pr oc essData), Object(Slim\Psr7\Request), Object(Espo\Core\Api\ResponseWrapper)) #9 /var/www/html/application/Espo/Core/Api/RouteProcessor.php(127): Espo\Core\Api\RouteProcessor->processAfterAuth(Object(Espo\Core\Api\ProcessDa ta ), Object(Slim\Psr7\Request), Object(Espo\Core\Api\ResponseWrapper)) #10 /var/www/html/application/Espo/Core/Api/RouteProcessor.php(78): Espo\Core\Api\RouteProcessor->processInternal(Object(Espo\Core\Api\ProcessDat a) , Object(Slim\Psr7\Request), Object(Espo\Core\Api\RequestWrapper), Object(Espo\Core\Api\ResponseWrapper)) #11 /var/www/html/application/Espo/Core/Api/Starter.php(109): Espo\Core\Api\RouteProcessor->process(Object(Espo\Core\Api\ProcessData), Object(Slim\Psr7\Request), Object(Slim\Psr7\Response)) #12 /var/www/html/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Espo\Core\Api\Starter->Espo\Core\Api\{closure}(Object(Slim\Psr7\Reques t) , Object(Slim\Psr7\Response), Array) #13 /var/www/html/vendor/slim/slim/Slim/Routing/Route.php(358): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Psr7\Request), Object(Slim\Psr7\Response), Array) #14 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\Routing\Route->handle(Object(Slim\Psr7\Request)) #15 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request)) #16 /var/www/html/vendor/slim/slim/Slim/Routing/Route.php(315): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request)) #17 /var/www/html/vendor/slim/slim/Slim/Routing/RouteRunner.php(68): Slim\Routing\Route->run(Object(Slim\Psr7\Request)) #18 /var/www/html/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Slim\Routing\RouteRunner->handle(Object(Slim\Psr7\Request)) #19 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process(Object(Slim\Psr7\Request), Object(Slim\Routing\RouteRunner)) #20 /var/www/html/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Slim\Psr7\Request)) #21 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process(Object(Slim\Psr7\Request), Object(Psr\Http\Server\RequestHandlerInterface@ano nymous)) Unminify assets or how to recreate t...o.min.js file? /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle(Object(Slim\Psr7\Request)) Unminify assets or how to recreate t...o.min.js file? /var/www/html/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request)) #24 /var/www/html/vendor/slim/slim/Slim/App.php(183): Slim\App->handle(Object(Slim\Psr7\Request)) Unminify assets or how to recreate t...o.min.js file? /var/www/html/application/Espo/Core/Api/Starter.php(76): Slim\App->run() how to upgrade ? /var/www/html/application/Espo/Core/ApplicationRunners/Api.php(45): Espo\Core\Api\Starter->start() how to upgrade ? /var/www/html/application/Espo/Core/Application/RunnerRunner.php(84): Espo\Core\ApplicationRunners\Api->run() #28 /var/www/html/application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run('Espo\\Core\\Appli...', NULL) #29 /var/www/html/public/api/v1/index.php(35): Espo\Core\Application->run('Espo\\Core\\Appli...') #30 {main} Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #2
    I personally don't use Mass Email so I can't help.

    I can only suggest based on the error message, it seem like your email size is too big or too long? I can only say,

    - to try reducing the size
    - test with a shorter email
    - find where the limit is (long email? big image? long text? timeout?)

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #3
      Check Administration > Outbound Emails > Max number of emails sent per hour. If it's empty, try setting some value, e.g.1000.
      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

      Comment

      Working...