Custom Entity stopped working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tayling
    Member
    • Apr 2023
    • 62

    #1

    Custom Entity stopped working

    HI
    I have created a custom entity quite a while ago and have used it successfully to create a record. After not using it for a few months but also not making any changes to fields or layout it is no longer working. It appears on menu etc bit on clicking no form appears. There is no error messages and on checking the logs there are no errors

    I have upgraded to version 9 since creating the entity if that is a clue.
    Any clues gratefully received.

    Thanks in anticipation
    Tony
  • victor
    Active Community Member
    • Aug 2022
    • 880

    #2
    If there is nothing in the EspoCRM logs with Debug mode enabled, then there must be something in your browser console when reproducing this behavior.

    Comment

    • tayling
      Member
      • Apr 2023
      • 62

      #3
      Whoops - would have heed if i had turned debug on - thanks Victor!

      The main error is
      [2025-05-02 01:24:52] WARNING: E_WARNING: include(): Failed opening '/home/collectionau/public_html/espo/vendor/composer/../../application/Espo/ORM/Repository/RDBRepository.php' for inclusion (include_path='/home/collectionau/public_html/espo')

      I suspect occurring after an update but not sure exactly when it stopped working

      Thanks

      Tony

      Full error log
      [2025-05-02 01:24:52] WARNING: E_WARNING: include(): Failed opening '/home/collectionau/public_html/espo/vendor/composer/../../application/Espo/ORM/Repository/RDBRepository.php' for inclusion (include_path='/home/collectionau/public_html/espo')
      [2025-05-02 01:24:52] ERROR: Slim Application Error Type: Error Code: 0 Message: Class "Espo\ORM\Repository\RDBRepository" not found File: /home/collectionau/public_html/espo/application/Espo/Core/Repositories/Database.php Line: 57 Trace: #0 /home/collectionau/public_html/espo/vendor/composer/ClassLoader.php(576): include() #1 /home/collectionau/public_html/espo/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}() #2 [internal function]: Composer\Autoload\ClassLoader->loadClass() #3 /home/collectionau/public_html/espo/application/Espo/Core/InjectableFactory.php(163): class_exists() #4 /home/collectionau/public_html/espo/application/Espo/Core/InjectableFactory.php(96): Espo\Core\InjectableFactory->createInternal() #5 /home/collectionau/public_html/espo/application/Espo/Core/ORM/RepositoryFactory.php(54): Espo\Core\InjectableFactory->createWithBinding() #6 /home/collectionau/public_html/espo/application/Espo/ORM/EntityManager.php(340): Espo\Core\ORM\RepositoryFactory->create() #7 /home/collectionau/public_html/espo/application/Espo/ORM/EntityManager.php(353): Espo\ORM\EntityManager->getRepository() #8 /home/collectionau/public_html/espo/application/Espo/ORM/EntityManager.php(374): Espo\ORM\EntityManager->getRDBRepository() #9 /home/collectionau/public_html/espo/application/Espo/Core/Authentication/AuthToken/EspoManager.php(57): Espo\ORM\EntityManager->getRDBRepositoryByClass() #10 [internal function]: Espo\Core\Authentication\AuthToken\EspoManager->__construct() #11 /home/collectionau/public_html/espo/application/Espo/Core/InjectableFactory.php(171): ReflectionClass->newInstanceArgs() #12 /home/collectionau/public_html/espo/application/Espo/Core/InjectableFactory.php(69): Espo\Core\InjectableFactory->createInternal() #13 /home/collectionau/public_html/espo/application/Espo/Core/Container.php(366): Espo\Core\InjectableFactory->create() #14 /home/collectionau/public_html/espo/application/Espo/Core/Container.php(101): Espo\Core\Container->load() #15 /home/collectionau/public_html/espo/application/Espo/Core/InjectableFactory.php(319): Espo\Core\Container->get() #16 /home/collectionau/public_html/espo/application/Espo/Core/InjectableFactory.php(257): Espo\Core\InjectableFactory->resolveBinding() #17 /home/collectionau/public_html/espo/application/Espo/Core/InjectableFactory.php(200): Espo\Core\InjectableFactory->getMethodParamInjection() #18 /home/collectionau/public_html/espo/application/Espo/Core/InjectableFactory.php(169): Espo\Core\InjectableFactory->getConstructorInjectionList() #19 /home/collectionau/public_html/espo/application/Espo/Core/InjectableFactory.php(69): Espo\Core\InjectableFactory->createInternal() #20 /home/collectionau/public_html/espo/application/Espo/Core/Authentication/AuthenticationFactory.php(41): Espo\Core\InjectableFactory->create() #21 /home/collectionau/public_html/espo/application/Espo/Core/Api/RouteProcessor.php(110): Espo\Core\Authentication\AuthenticationFactory->create() Unminify assets or how to recreate t...o.min.js file? /home/collectionau/public_html/espo/application/Espo/Core/Api/RouteProcessor.php(78): Espo\Core\Api\RouteProcessor->processInternal() Unminify assets or how to recreate t...o.min.js file? /home/collectionau/public_html/espo/application/Espo/Core/Api/Starter.php(119): Espo\Core\Api\RouteProcessor->process() #24 /home/collectionau/public_html/espo/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Espo\Core\Api\Starter->Espo\Core\Api\{closure}() Unminify assets or how to recreate t...o.min.js file? /home/collectionau/public_html/espo/vendor/slim/slim/Slim/Routing/Route.php(363): Slim\Handlers\Strategies\RequestResponse->__invoke() how to upgrade ? /home/collectionau/public_html/espo/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\Routing\Route->handle() how to upgrade ? /home/collectionau/public_html/espo/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Slim\MiddlewareDispatcher->handle() #28 /home/collectionau/public_html/espo/vendor/slim/slim/Slim/Routing/Route.php(321): Slim\MiddlewareDispatcher->handle() #29 /home/collectionau/public_html/espo/vendor/slim/slim/Slim/Routing/RouteRunner.php(74): Slim\Routing\Route->run() #30 /home/collectionau/public_html/espo/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Slim\Routing\RouteRunner->handle() #31 /home/collectionau/public_html/espo/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\RoutingMiddleware->process() Unminify assets or how to recreate t...o.min.js file? /home/collectionau/public_html/espo/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(77): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() Quotes /home/collectionau/public_html/espo/vendor/slim/slim/Slim/MiddlewareDispatcher.php(129): Slim\Middleware\ErrorMiddleware->process() Quotes /home/collectionau/public_html/espo/vendor/slim/slim/Slim/MiddlewareDispatcher.php(73): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #35 /home/collectionau/public_html/espo/vendor/slim/slim/Slim/App.php(209): Slim\MiddlewareDispatcher->handle() how to upgrade ? /home/collectionau/public_html/espo/vendor/slim/slim/Slim/App.php(193): Slim\App->handle() how to upgrade ? /home/collectionau/public_html/espo/application/Espo/Core/Api/Starter.php(77): Slim\App->run() how to upgrade ? /home/collectionau/public_html/espo/application/Espo/Core/ApplicationRunners/Api.php(45): Espo\Core\Api\Starter->start() #39 /home/collectionau/public_html/espo/application/Espo/Core/Application/RunnerRunner.php(84): Espo\Core\ApplicationRunners\Api->run() how to upgrade ? /home/collectionau/public_html/espo/application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run() how to upgrade ? /home/collectionau/public_html/espo/public/api/v1/index.php(35): Espo\Core\Application->run() how to upgrade ? {main} Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.
      Last edited by tayling; Today, 07:29 AM.

      Comment

      Working...