Error 500 while trying to access portal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • itzlu4u
    Junior Member
    • Oct 2021
    • 4

    Error 500 while trying to access portal

    Hello, after upgrading to 7.0.X, I'm getting:

    Code:
    "GET /api/v1/portal-access/6050fa258d721ba07/ HTTP/1.0" 200 330 "https://crm.safri.net/portal/XXXXXX "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36"
    espocrm | 10.123.234.1 - info@XXXXXX [18/Oct/2021:11:57:15 +0000] "GET /api/v1/portal-access/6050fa258d721ba07/Metadata HTTP/1.0" 500 196 "https://crm.safri.net/portal/XXXXX"
    When I check the data/logs, the following Error is being logged:

    Code:
    DEBUG: API (0) GET /6050fa258d721ba07/Metadata; Route pattern: /{portalId}/Metadata; Route params: Array ( [controller] => Metadata [portalId] => 6050fa258d721ba07 ) [] []
    [2021-10-18 11:39:06] ERROR: (0) GET /6050fa258d721ba07/Metadata; line: 88, file: /var/www/html/application/Espo/Core/Portal/Acl/AccessChecker/AccessCheckerFactory.php [] []
    Getting this Error with old and newly created portals with and without custom id/url.


    Running on Docker with Version 7.0.6
  • itzlu4u
    Junior Member
    • Oct 2021
    • 4

    #2
    Some more logs:

    Code:
    DEBUG: API (0) GET /616d679093f99517c/Metadata; Route pattern: /{portalId}/Metadata; Route params: Array ( [controller] => Metadata [portalId] => 616d679093f99517c ) [] []
    [2021-10-18 12:48:27] ERROR: (0) GET /616d679093f99517c/Metadata; line: 88, file: /var/www/html/application/Espo/Core/Portal/Acl/AccessChecker/AccessCheckerFactory.php :: #0 /var/www/html/application/Espo/Core/Portal/Acl/AccessChecker/AccessCheckerFactory.php(72): Espo\Core\Portal\Acl\AccessChecker\AccessCheckerFa ctory->getClassName('FirstLevelSuppo...') #1 /var/www/html/application/Espo/Core/AclManager.php(138): Espo\Core\Portal\Acl\AccessChecker\AccessCheckerFa ctory->create('FirstLevelSuppo...', Object(Espo\Core\Portal\AclManager)) #2 /var/www/html/application/Espo/Core/AclManager.php(429): Espo\Core\AclManager->getAccessChecker('FirstLevelSuppo...') #3 /var/www/html/application/Espo/Core/Portal/AclManager.php(288): Espo\Core\AclManager->checkScope(Object(Espo\Entities\User), 'FirstLevelSuppo...', NULL) #4 /var/www/html/application/Espo/Core/AclManager.php(265): Espo\Core\Portal\AclManager->checkScope(Object(Espo\Entities\User), 'FirstLevelSuppo...', NULL) #5 /var/www/html/application/Espo/Core/Portal/AclManager.php(219): Espo\Core\AclManager->check(Object(Espo\Entities\User), 'FirstLevelSuppo...', NULL) #6 /var/www/html/application/Espo/Core/Acl.php(124): Espo\Core\Portal\AclManager->check(Object(Espo\Entities\User), 'FirstLevelSuppo...', NULL) #7 /var/www/html/application/Espo/Services/Metadata.php(127): Espo\Core\Acl->check('FirstLevelSuppo...') #8 /var/www/html/application/Espo/Controllers/Metadata.php(47): Espo\Services\Metadata->getDataForFrontend() #9 /var/www/html/application/Espo/Core/Api/ActionProcessor.php(118): Espo\Controllers\Metadata->getActionRead(Array, '', Object(Espo\Core\Api\RequestWrapper), Object(Espo\Core\Api\ResponseWrapper)) #10 /var/www/html/application/Espo/Core/Api/RequestProcessor.php(136): Espo\Core\Api\ActionProcessor->process('Metadata', 'read', Object(Espo\Core\Api\RequestWrapper), Object(Espo\Core\Api\ResponseWrapper)) #11 /var/www/html/application/Espo/Core/Api/RequestProcessor.php(111): Espo\Core\Api\RequestProcessor->proceed(Object(Espo\Core\Api\RequestWrapper), Object(Espo\Core\Api\ResponseWrapper)) #12 /var/www/html/application/Espo/Core/Api/RequestProcessor.php(82): Espo\Core\Api\RequestProcessor->processInternal(Object(Espo\Core\Api\Route), Object(Espo\Core\Api\RequestWrapper), Object(Espo\Core\Api\ResponseWrapper)) #13 /var/www/html/application/Espo/Core/Api/Starter.php(103): Espo\Core\Api\RequestProcessor->process(Object(Espo\Core\Api\Route), Object(Espo\Core\Api\RequestWrapper), Object(Espo\Core\Api\ResponseWrapper)) #14 /var/www/html/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(43): Espo\Core\Api\Starter->Espo\Core\Api\{closure}(Object(Slim\Psr7\Request) , Object(Slim\Psr7\Response), Array) #15 /var/www/html/vendor/slim/slim/Slim/Routing/Route.php(384): Slim\Handlers\Strategies\RequestResponse->__invoke(Object(Closure), Object(Slim\Psr7\Request), Object(Slim\Psr7\Response), Array) #16 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\Routing\Route->handle(Object(Slim\Psr7\Request)) #17 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request)) #18 /var/www/html/vendor/slim/slim/Slim/Routing/Route.php(341): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request)) #19 /var/www/html/vendor/slim/slim/Slim/Routing/RouteRunner.php(84): Slim\Routing\Route->run(Object(Slim\Psr7\Request)) #20 /var/www/html/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(59): Slim\Routing\RouteRunner->handle(Object(Slim\Psr7\Request)) #21 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\Middleware\RoutingMiddleware->process(Object(Slim\Psr7\Request), Object(Slim\Routing\RouteRunner)) #22 /var/www/html/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(107): class@anonymous->handle(Object(Slim\Psr7\Request)) #23 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\Middleware\ErrorMiddleware->process(Object(Slim\Psr7\Request), Object(class@anonymous)) #24 /var/www/html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): class@anonymous->handle(Object(Slim\Psr7\Request)) #25 /var/www/html/vendor/slim/slim/Slim/App.php(215): Slim\MiddlewareDispatcher->handle(Object(Slim\Psr7\Request)) #26 /var/www/html/vendor/slim/slim/Slim/App.php(199): Slim\App->handle(Object(Slim\Psr7\Request)) #27 /var/www/html/application/Espo/Core/Api/Starter.php(79): Slim\App->run() #28 /var/www/html/application/Espo/Core/Portal/ApplicationRunners/Api.php(46): Espo\Core\Api\Starter->start() #29 /var/www/html/application/Espo/Core/Application/RunnerRunner.php(85): Espo\Core\Portal\ApplicationRunners\Api->run() #30 /var/www/html/application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run('Espo\\Core\\Porta...', NULL) #31 /var/www/html/public/api/v1/portal-access/index.php(46): Espo\Core\Application->run('Espo\\Core\\Porta...') #32 {main} [] [

    Comment

    • itzlu4u
      Junior Member
      • Oct 2021
      • 4

      #3
      Some more information:

      After removing two custom Entitys (linked to Case) and clearing the Metadata the portals working fine.








      Comment

      • telecastg
        Active Community Member
        • Jun 2018
        • 907

        #4
        After removing two custom Entitys (linked to Case) and clearing the Metadata the portals working fine.

        Check this post for hints to help solving Espo 7 originated errors with previous customizations:
        Since Espo 7 has extensive changes/refactoring of the core there are changes that we need to make to our customizations, this post will chronicle our findings and solutions to hopefully help others going through this process. It would be very helpful if other participants can also post in this thread the problems encountered

        Comment

        • itzlu4u
          Junior Member
          • Oct 2021
          • 4

          #5
          After some more research we found a solution:

          Copy an existing Entitiy.json file to OldEntity.json File rebuild and the Portals are Working again.

          Json files Folder:

          /var/www/html/custom/Espo/Custom/Resources/metadata/scopes/

          Comment

          Working...