Announcement

Collapse
No announcement yet.

Installation extension with dependencies section

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

  • Installation extension with dependencies section

    Installation extension with dependencies section cause error.

    If I try install same extension without dependencies section - all ok.
    If I try install same extension with dependencies section on Version 8.1.5 - all ok.

    Espo version: 8.3.2
    DB: MariaDB 10.5.23

    Error log:
    ERROR: Slim Application Error Type: Error Code: 0 Message: Typed property Espo\Core\Upgrades\Actions\Base::$helper must not be accessed before initialization File: /home/office/public_html/application/Espo/Core/Upgrades/Actions/Base.php Line: 949 Trace: #0 /home/office/public_html/application/Espo/Core/Upgrades/Actions/Extension/Upload.php(44): Espo\Core\Upgrades\Actions\Base->getHelper() #1 /home/office/public_html/application/Espo/Core/Upgrades/Actions/Base.php(274): Espo\Core\Upgrades\Actions\Extension\Upload->checkDependencies() #2 /home/office/public_html/application/Espo/Core/Upgrades/Actions/Base/Upload.php(70): Espo\Core\Upgrades\Actions\Base->isAcceptable() #3 /home/office/public_html/application/Espo/Core/Upgrades/ActionManager.php(95): Espo\Core\Upgrades\Actions\Base\Upload->run() #4 /home/office/public_html/application/Espo/Core/Upgrades/Base.php(81): Espo\Core\Upgrades\ActionManager->run() #5 /home/office/public_html/application/Espo/Controllers/Extension.php(73): Espo\Core\Upgrades\Base->upload() #6 /home/office/public_html/application/Espo/Core/Api/ControllerActionProcessor.php(87): Espo\Controllers\Extension->postActionUpload() #7 /home/office/public_html/application/Espo/Core/Api/ControllerActionHandler.php(65): Espo\Core\Api\ControllerActionProcessor->process() #8 /home/office/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Espo\Core\Api\ControllerActionHandler->handle() #9 /home/office/public_html/application/Espo/Core/Api/RouteProcessor.php(222): Slim\MiddlewareDispatcher->handle() #10 /home/office/public_html/application/Espo/Core/Api/RouteProcessor.php(149): Espo\Core\Api\RouteProcessor->processControllerAction() #11 /home/office/public_html/application/Espo/Core/Api/RouteProcessor.php(127): Espo\Core\Api\RouteProcessor->processAfterAuth() #12 /home/office/public_html/application/Espo/Core/Api/RouteProcessor.php(78): Espo\Core\Api\RouteProcessor->processInternal() #13 /home/office/public_html/application/Espo/Core/Api/Starter.php(109): Espo\Core\Api\RouteProcessor->process() #14 /home/office/public_html/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Espo\Core\Api\Starter->Espo\Core\Api\{closure}() #15 /home/office/public_html/vendor/slim/slim/Slim/Routing/Route.php(358): Slim\Handlers\Strategies\RequestResponse->__invoke() #16 /home/office/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\Routing\Route->handle() #17 /home/office/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\MiddlewareDispatcher->handle() #18 /home/office/public_html/vendor/slim/slim/Slim/Routing/Route.php(315): Slim\MiddlewareDispatcher->handle() #19 /home/office/public_html/vendor/slim/slim/Slim/Routing/RouteRunner.php(68): Slim\Routing\Route->run() #20 /home/office/public_html/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Slim\Routing\RouteRunner->handle() #21 /home/office/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process() Unminify assets or how to recreate t...o.min.js file? /home/office/public_html/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() Unminify assets or how to recreate t...o.min.js file? /home/office/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process() #24 /home/office/public_html/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() Unminify assets or how to recreate t...o.min.js file? /home/office/public_html/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle() how to upgrade ? /home/office/public_html/vendor/slim/slim/Slim/App.php(183): Slim\App->handle() how to upgrade ? /home/office/public_html/application/Espo/Core/Api/Starter.php(76): Slim\App->run() #28 /home/office/public_html/application/Espo/Core/ApplicationRunners/Api.php(45): Espo\Core\Api\Starter->start() Unminify assets or how to recreate t...o.min.js file? /home/office/public_html/application/Espo/Core/Application/RunnerRunner.php(84): Espo\Core\ApplicationRunners\Api->run() #30 /home/office/public_html/application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run() #31 /home/office/public_html/public/api/v1/index.php(35): Espo\Core\Application->run() Unminify assets or how to recreate t...o.min.js file? {main} Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor.
    Last edited by yuri; 06-27-2024, 12:22 PM.

  • #2
    This fix should help https://github.com/espocrm/espocrm/c...571040c1dbe929

    Strange that phpstan does not catch such issues by default.

    Comment


    • #3
      Please let me know whether this fix works. I literally have no time.

      Comment


      • dimyy
        dimyy commented
        Editing a comment
        With this fix all ok

      • yuri
        yuri commented
        Editing a comment
        Thanks . .
    Working...
    X