Announcement

Collapse
No announcement yet.

Error 500 when saving entity (or just changing the colour!)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error 500 when saving entity (or just changing the colour!)

    Hi there

    We're just looking into Espo as a replacement for anothet crm system

    When saving an item in the entity manager, it's throwing a 500 error but no further details. Below is a dump from the error log, I cannot see to find where the issue is, does anyone have an idea?

    Cheers!

    PHP Code:
    [2023-06-19 12:44:59ERRORSlim Application Error TypeError Code0 MessageCannot unpack array with string keys File: /home/u398131130/domains/website.cloud/public_html/application/Espo/Tools/EntityManager/EntityManager.php Line1693 Trace#0 /home/u398131130/domains/website.cloud/public_html/application/Espo/Tools/EntityManager/EntityManager.php(1670): Espo\Tools\EntityManager\EntityManager->getAdditionalParamLocationMap() #1 /home/u398131130/domains/website.cloud/public_html/application/Espo/Tools/EntityManager/EntityManager.php(452): Espo\Tools\EntityManager\EntityManager->setAdditionalParamsInMetadata() #2 /home/u398131130/domains/website.cloud/public_html/application/Espo/Controllers/EntityManager.php(164): Espo\Tools\EntityManager\EntityManager->update() #3 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/Api/ControllerActionProcessor.php(87): Espo\Controllers\EntityManager->postActionUpdateEntity() #4 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/Api/ControllerActionHandler.php(69): Espo\Core\Api\ControllerActionProcessor->process() #5 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Espo\Core\Api\ControllerActionHandler->handle() #6 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/Api/RouteProcessor.php(222): Slim\MiddlewareDispatcher->handle() #7 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/Api/RouteProcessor.php(149): Espo\Core\Api\RouteProcessor->processControllerAction() #8 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/Api/RouteProcessor.php(127): Espo\Core\Api\RouteProcessor->processAfterAuth() #9 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/Api/RouteProcessor.php(79): Espo\Core\Api\RouteProcessor->processInternal() #10 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/Api/Starter.php(109): Espo\Core\Api\RouteProcessor->process() #11 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Espo\Core\Api\Starter->Espo\Core\Api\{closure}() #12 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/Routing/Route.php(358): Slim\Handlers\Strategies\RequestResponse->__invoke() #13 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\Routing\Route->handle() #14 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\MiddlewareDispatcher->handle() #15 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/Routing/Route.php(315): Slim\MiddlewareDispatcher->handle() #16 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/Routing/RouteRunner.php(68): Slim\Routing\Route->run() #17 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Slim\Routing\RouteRunner->handle() #18 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process() #19 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #20 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process() #21 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #22 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle() #23 /home/u398131130/domains/website.cloud/public_html/vendor/slim/slim/Slim/App.php(183): Slim\App->handle() #24 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/Api/Starter.php(76): Slim\App->run() #25 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/ApplicationRunners/Api.php(45): Espo\Core\Api\Starter->start() #26 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/Application/RunnerRunner.php(84): Espo\Core\ApplicationRunners\Api->run() #27 /home/u398131130/domains/website.cloud/public_html/application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run() #28 /home/u398131130/domains/website.cloud/public_html/public/api/v1/index.php(35): Espo\Core\Application->run() #29 {main} Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.  
    ​ 

  • #2
    when the error is triggered ? when updating record ?

    UPDATE: i just saw that this happens when your update the entity manager. there is no issue with the code base however error 500 is more an issue from the server side. the server encountered an unexpected condition that prevented it from fulfilling the request.​
    Last edited by rabii; 06-19-2023, 01:24 PM.
    Rabii
    Web Dev

    Comment


    • item
      item commented
      Editing a comment
      php version error
      need php >= 8.1

  • #3
    Sounds pretty similar to: https://forum.espocrm.com/forum/inst...ying-an-entity

    Is this a fresh installation without any extensions?

    Seems EspoCRM version 7.5.1 needs PHP 8.1 as minum version and not 8.0

    Comment


    • #4
      It's when trying to change one of the options on the entity manager, any changes (after creation) throw up the 500 error.

      It is a new installation, no extensions (as yet!)

      Click image for larger version

Name:	image.png
Views:	236
Size:	26.8 KB
ID:	94103

      Comment


      • #5
        Updated to 8.1 php but the error still appears!

        Comment


        • #6
          This fix should help: https://github.com/espocrm/espocrm/c...9bccf90c16f97d

          Comment


          • #7
            That works perfectly, yuri - thank you very much!

            Comment

            Working...
            X