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. [] []
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. [] []
Comment