Email Template Error 500 - ever since Major Upgrades

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • khopper
    Senior Member
    • Sep 2017
    • 329

    Email Template Error 500 - ever since Major Upgrades

    I recently upgraded our servers from Ubuntu 14.04 LTS to 20.04 LTS and Migrated our ESPO instance to the new server.
    I went from ESPO 6.1.10 to 7.2.7 with MariaDB 10.3.37 with PHP 8.2.0 & Apache 2.4.54

    Everything appears to working well except for 1 thing - the Email Template function.
    I can figure out why it is giving the ERROR 500 from the LOGS.
    ESPO is already in DEBUG mode.

    Any help would be appreciated!

    [2023-01-03 15:11:02] DEBUG: BPM: processPendingFlows [] []
    [2023-01-03 15:11:02] DEBUG: BPM: processTriggeredSignals [] []
    [2023-01-03 15:12:01] ERROR: Email Notification: Carbon\Carbon::setLastErrors(): Argument EspoCRM Forum ($lastErrors) must be of type array, bool given, called in /var/www/espocrm/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php on line 86 [] []
    [2023-01-03 15:12:01] DEBUG: BPM: processPendingFlows [] []
    [2023-01-03 15:12:01] DEBUG: BPM: processTriggeredSignals [] []
    [2023-01-03 15:12:13] ERROR: Slim Application Error Type: TypeError Code: 0 Message: Carbon\Carbon::setLastErrors(): Argument EspoCRM Forum ($lastErrors) must be of type array, bool given, called in /var/www/espocrm/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php on line 86
    File: /var/www/espocrm/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php Line: 831 Trace: #0 /var/www/espocrm/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php(86): Carbon\Carbon::setLastErrors() EspoCRM Forum
    /var/www/espocrm/vendor/nesbot/carbon/src/Carbon/Traits/Creator.php(104): Carbon\Carbon->__construct() Forum /var/www/espocrm/application/Espo/Core/Utils/DateTime.php(142): Carbon\Carbon::instance() #3
    /var/www/espocrm/application/Espo/Tools/EmailTemplate/Formatter.php(110): Espo\Core\Utils\DateTime->convertSystemDateTime() #4 /var/www/espocrm/application/Espo/Tools/EmailTemplate/Processor.php(265): Espo\Tools\EmailTemplate\Formatter->formatAttributeValue() Groups
    /var/www/espocrm/application/Espo/Tools/EmailTemplate/Processor.php(189): Espo\Tools\EmailTemplate\Processor->processText() Uncategorized Groups /var/www/espocrm/application/Espo/Services/EmailTemplate.php(88): Espo\Tools\EmailTemplate\Processor->process() Special
    /var/www/espocrm/application/Espo/Services/EmailTemplate.php(116): Espo\Services\EmailTemplate->parseTemplate() Visitor Messages /var/www/espocrm/application/Espo/Controllers/EmailTemplate.php(53): Espo\Services\EmailTemplate->parse() Private Messages
    /var/www/espocrm/application/Espo/Core/Api/ActionProcessor.php(100): Espo\Controllers\EmailTemplate->actionParse() Albums /var/www/espocrm/application/Espo/Core/Api/RequestProcessor.php(141): Espo\Core\Api\ActionProcessor->process() #11
    /var/www/espocrm/application/Espo/Core/Api/RequestProcessor.php(112): Espo\Core\Api\RequestProcessor->proceed() #12 /var/www/espocrm/application/Espo/Core/Api/RequestProcessor.php(83): Espo\Core\Api\RequestProcessor->processInternal() CSS Examples
    /var/www/espocrm/application/Espo/Core/Api/Starter.php(103): Espo\Core\Api\RequestProcessor->process() #14 /var/www/espocrm/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(43): Espo\Core\Api\Starter->Espo\Core\Api\{closure}() General Discussion
    /var/www/espocrm/vendor/slim/slim/Slim/Routing/Route.php(384): Slim\Handlers\Strategies\RequestResponse->__invoke() Announcements /var/www/espocrm/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\Routing\Route->handle() Feature Requests
    /var/www/espocrm/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\MiddlewareDispatcher->handle() Installation and Upgrade Help /var/www/espocrm/vendor/slim/slim/Slim/Routing/Route.php(341): Slim\MiddlewareDispatcher->handle() Extensions
    /var/www/espocrm/vendor/slim/slim/Slim/Routing/RouteRunner.php(84): Slim\Routing\Route->run() Developer Help /var/www/espocrm/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(59): Slim\Routing\RouteRunner->handle() Bug Reports
    /var/www/espocrm/vendor/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\Middleware\RoutingMiddleware->process() Unminify assets or how to recreate t...o.min.js file? /var/www/espocrm/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(107): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
    /var/www/espocrm/vendor/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\Middleware\ErrorMiddleware->process() #24 /var/www/espocrm/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
    /var/www/espocrm/vendor/slim/slim/Slim/App.php(215): Slim\MiddlewareDispatcher->handle() how to upgrade ? /var/www/espocrm/vendor/slim/slim/Slim/App.php(199): Slim\App->handle() /var/www/espocrm/application/Espo/Core/Api/Starter.php(79): Slim\App->run() #28
    /var/www/espocrm/application/Espo/Core/ApplicationRunners/Api.php(49): Espo\Core\Api\Starter->start() #29 /var/www/espocrm/application/Espo/Core/Application/RunnerRunner.php(85): Espo\Core\ApplicationRunners\Api->run() #30
    /var/www/espocrm/application/Espo/Core/Application.php(81): Espo\Core\Application\RunnerRunner->run() #31 /var/www/espocrm/public/api/v1/index.php(37): Espo\Core\Application->run() {main} Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor. [] []​
  • khopper
    Senior Member
    • Sep 2017
    • 329

    #2
    Update: I reverted to php7.4 from php8.2 and now email templates are now working and also print to PDF.
    what would cause php8.2 to not work?

    Comment

    • item
      Active Community Member
      • Mar 2017
      • 1476

      #3
      Hi,

      php8.2 is not ready for 7.2.x .. next version i think (7.3.x)

      EspoCRM – Open Source CRM Application. Contribute to espocrm/espocrm development by creating an account on GitHub.
      If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

      Comment

      • item
        Active Community Member
        • Mar 2017
        • 1476

        #4
        khopper
        can you confirm this post have resolved your problem so other users have a response ?
        thank for other.
        If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

        Comment


        • khopper
          khopper commented
          Editing a comment
          See my post from 01-03-2023, 01:32 PM
          Update: I reverted to php7.4 from php8.2 and now email templates are now working and also print to PDF.
      • victor
        Active Community Member
        • Aug 2022
        • 727

        #5
        Originally posted by khopper
        Update: I reverted to php7.4 from php8.2 and now email templates are now working and also print to PDF.
        what would cause php8.2 to not work?
        In EspoCRM 7.3, php 8.2.0 works correctly (Print to PDF and Email Teamplates too).

        Comment


        • item
          item commented
          Editing a comment
          I confirm,
          php8.2.2x (no access to my server actually) work without issue.
          pdfEngine is "dompdf" for me. (setting in config.php)
      Working...