Announcement

Collapse
No announcement yet.

Please help Espo.ERROR: (404)

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

  • Please help Espo.ERROR: (404)

    Espo.ERROR: (404) LayoutSet 614c3c439f8da0995 not found.; GET /Settings/layout/authentication; line: 208, file: /var/www/espocrm.lan/public_html/application/Espo/Services/Layout.php [] []

    Hello all,
    Please can you help to resolve this issue. From admin role every thing goes Error 404

  • #2

    protected function getRecordFromSet(string $scope, string $name, string $setId, bool $skipCheck = false)
    {
    $em = $this->entityManager;

    $layoutSet = $em->getEntity('LayoutSet', $setId);

    if (!$layoutSet) {
    Line 208 throw new NotFound("LayoutSet {$setId} not found.");
    }

    $layoutList = $layoutSet->get('layoutList') ?? [];

    $fullName = $scope . '.' . $name;

    if (!in_array($fullName, $layoutList)) {
    if ($skipCheck) {
    return null;
    }

    throw new NotFound("Layout {$fullName} is no allowed in set.");
    }

    $layout = $em
    ->getRepository('LayoutRecord')
    ->where([
    'layoutSetId' => $setId,
    'name' => $fullName,
    ])
    ->findOne();

    return $layout;
    }

    Comment


    • #3
      Solved!
      Im posting the solution if someone else has this problem.

      Problem was with Admin user role.

      Step 1: create new admin user from mysql com line:
      username: usernew
      INSERT INTO `user` (`id`, `deleted`, `user_name`, `type`, `password`, `auth_method`, `api_key`, `salutation_name`, `first_name`, `last_name`, `is_active`, `title`, `gender`, `created_at`, `modified_at`, `middle_name`, `default_team_id`, `contact_id`, `avatar_id`, `created_by_id`, `dashboard_template_id`) VALUES ('614ccba63a808f116', '0', 'usernew', 'admin', '80WdvLm3IV4RmSWldMRjryV2AcALBdDCCwVkxEyFN1v3nFyn8 1Uk.cA5sZ296FOIhGx.ZmUyIbtpkLubNQgYB/', NULL, NULL, 'Mr.', 'user', 'new', '1', NULL, '', '2021-09-23 18:47:02', '2021-09-23 18:47:02', NULL, NULL, NULL, NULL, '614cc6b71a8de3483', NULL)

      Step 2: Reset password on CLI
      cd /esprcrmDir and then php command.php set-password usernew
      It will ask for new password.

      Thank you Espocrm Team

      Comment

      Working...
      X