Announcement

Collapse
No announcement yet.

ERROR 500 after Upgrade to V8.2.1

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

  • ERROR 500 after Upgrade to V8.2.1

    Hello. I've upgraded via CLI to version 8.2.1 (from 8.1.5). The upgrade process went fine but now I have a constant ERROR 500 and I cannot reach data within the UI. Affected is everything. It only shows the mask but without any data.

    Here is the last part of the Logs:
    [2024-04-03 19:00:03] ERROR: JobManager: Failed job running, job '660da4da187245915'. Job CheckEmailAccounts 6347f788ed0fcdf9b: [0] cannot login, user or password wrong /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/laminas/laminas-mail/src/Storage/Imap.php:243; at /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Classes/Jobs/CheckEmailAccounts.php:61.
    [2024-04-03 19:01:02] ERROR: JobManager: Failed job running, job '660da4da187245915'. Job CheckEmailAccounts 6347f788ed0fcdf9b: [0] cannot login, user or password wrong /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/laminas/laminas-mail/src/Storage/Imap.php:243; at /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Classes/Jobs/CheckEmailAccounts.php:61.
    [2024-04-03 19:10:02] ERROR: Uncaught Exception Spatie\Async\Output\ParallelError: "PHP Fatal error: Declaration of Espo\Modules\Advanced\Services\Report::filterInput ($data) must be compatible with Espo\Core\Record\Service::filterInput(stdClass $data): void in /var/www/vhosts/pehoma.com/espo.pehoma.com/custom/Espo/Modules/Advanced/Services/Report.php on line 30 " at /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/spatie/async/src/Output/ParallelError.php line 11 {"exception":"[object] (Spatie\\Async\\Output\\ParallelError(code: 0): PHP Fatal error: Declaration of Espo\\Modules\\Advanced\\Services\\Report::filterI nput($data) must be compatible with Espo\\Core\\Record\\Service::filterInput(stdClass $data): void in /var/www/vhosts/pehoma.com/espo.pehoma.com/custom/Espo/Modules/Advanced/Services/Report.php on line 30\n at /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/spatie/async/src/Output/ParallelError.php:11)"}
    [2024-04-03 19:20:02] ERROR: Uncaught Exception Spatie\Async\Output\ParallelError: "PHP Fatal error: Declaration of Espo\Modules\Advanced\Services\Report::filterInput ($data) must be compatible with Espo\Core\Record\Service::filterInput(stdClass $data): void in /var/www/vhosts/pehoma.com/espo.pehoma.com/custom/Espo/Modules/Advanced/Services/Report.php on line 30 " at /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/spatie/async/src/Output/ParallelError.php line 11 {"exception":"[object] (Spatie\\Async\\Output\\ParallelError(code: 0): PHP Fatal error: Declaration of Espo\\Modules\\Advanced\\Services\\Report::filterI nput($data) must be compatible with Espo\\Core\\Record\\Service::filterInput(stdClass $data): void in /var/www/vhosts/pehoma.com/espo.pehoma.com/custom/Espo/Modules/Advanced/Services/Report.php on line 30\n at /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/spatie/async/src/Output/ParallelError.php:11)"}

    Here ist the list of all installed extensions:
    Extensions:

    Name: Google Integration
    ID: 641efb0238b120821
    Version: 1.6.0
    Installed: yes

    Name: Ebla Labels
    ID: 648a0a0da491d09a3
    Version: 1.2.0
    Installed: yes

    Name: Advanced Pack
    ID: 64bbd91ab173c1dd9
    Version: 3.0.4
    Installed: yes​

    I hope someone can help me.
    Last edited by pehoma; 04-03-2024, 07:49 PM.

  • #2
    Hi,
    Certainly :

    Hello everyone, After updating to the latest version, EspoCRM no longer loads correctly. If anyone has had a similar problem or a solution, I would be very grateful. I am using PHP 8.2 I have already tried the following: deactivated cache deleted cache rebuild executed The log file from Espo shows the following:​ PHP


    Yuri have respond in this link :

    Update AdvancedPack
    Check other extension is compatible
    Last edited by item; 04-03-2024, 08:23 PM.

    Comment


    • #3
      Hello Item. Thanks for your reply.

      First, we do need to solve the problem as soon as possible. So how can delete the filterInput function manually from application/Espo/Modules/Advanced/Services/Report.php.? First, there is no "advanced" folder in the folder modules. We can find it in the custom folder. (custom/Espo/Modules/Advanced/services/report.php). It's the same?

      we did this:
      /**class Report extends Record
      {
      protected $forceSelectAllAttributes = true;

      protected function filterInput($data)
      {
      parent::filterInput($data);

      if ($this->acl->getPermissionLevel('portalPermission') === Table::LEVEL_NO) {
      unset($data->portalsIds);
      }
      }
      */​

      But it doesn't help. There is still the same problem.

      We also cannot upgrade the Advance Pack because the "extension" part doesn't work in Administration of ESPO.

      yuri: Sorry to say that. We are generally very happy with your software and we bought Advance pack and google pack. We've installed Advance Pack V3.0.4 so we didn't expect that there should be a problem with it. We use ESPO in the daily work and because of this problem there are 9 people in my office who cannot work. So I understand that very old versions of extensions are not working but we are talking about a not so old version installed in our system. I understand what you are saying about costs, but you have to keep in mind that a lot of people are using your software in daily business and they lose money if the system is not working. So I think that you should fix the problem and release an update, which will be working with Advance Pack V 3.X.X.

      Comment


      • #4
        It's not possible to solve incompatibility with v3.0 in Espo release. We should have blocked the upgrade ability if v3.0 is installed (already done).

        Try to replace

        Code:
        protected function filterInput($data)
        with

        Code:
        protected function filterInput(\stdClass $data): void

        Comment


        • pehoma
          pehoma commented
          Editing a comment
          Doesn't work

          here is the log after changing the code:

          [2024-04-03 23:30:02] ERROR: Uncaught Exception Spatie\Async\Output\ParallelError: "PHP Fatal error: Declaration of Espo\Modules\Advanced\Services\Report::filterInput ($data) must be compatible with Espo\Core\Record\Service::filterInput(stdClass $data): void in /var/www/vhosts/pehoma.com/espo.pehoma.com/custom/Espo/Modules/Advanced/Services/Report.php on line 30 " at /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/spatie/async/src/Output/ParallelError.php line 11 {"exception":"[object] (Spatie\\Async\\Output\\ParallelError(code: 0): PHP Fatal error: Declaration of Espo\\Modules\\Advanced\\Services\\Report::filterI nput($data) must be compatible with Espo\\Core\\Record\\Service::filterInput(stdClass $data): void in /var/www/vhosts/pehoma.com/espo.pehoma.com/custom/Espo/Modules/Advanced/Services/Report.php on line 30\n at /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/spatie/async/src/Output/ParallelError.php:11)"}
          [2024-04-03 23:40:03] ERROR: Uncaught Exception Spatie\Async\Output\ParallelError: "PHP Fatal error: Declaration of Espo\Modules\Advanced\Services\Report::filterInput ($data) must be compatible with Espo\Core\Record\Service::filterInput(stdClass $data): void in /var/www/vhosts/pehoma.com/espo.pehoma.com/custom/Espo/Modules/Advanced/Services/Report.php on line 30 " at /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/spatie/async/src/Output/ParallelError.php line 11 {"exception":"[object] (Spatie\\Async\\Output\\ParallelError(code: 0): PHP Fatal error: Declaration of Espo\\Modules\\Advanced\\Services\\Report::filterI nput($data) must be compatible with Espo\\Core\\Record\\Service::filterInput(stdClass $data): void in /var/www/vhosts/pehoma.com/espo.pehoma.com/custom/Espo/Modules/Advanced/Services/Report.php on line 30\n at /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/spatie/async/src/Output/ParallelError.php:11)"}
          [2024-04-03 23:50:02] ERROR: Uncaught Exception Spatie\Async\Output\ParallelError: "PHP Fatal error: Declaration of Espo\Modules\Advanced\Services\Report::filterInput ($data) must be compatible with Espo\Core\Record\Service::filterInput(stdClass $data): void in /var/www/vhosts/pehoma.com/espo.pehoma.com/custom/Espo/Modules/Advanced/Services/Report.php on line 30 " at /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/spatie/async/src/Output/ParallelError.php line 11 {"exception":"[object] (Spatie\\Async\\Output\\ParallelError(code: 0): PHP Fatal error: Declaration of Espo\\Modules\\Advanced\\Services\\Report::filterI nput($data) must be compatible with Espo\\Core\\Record\\Service::filterInput(stdClass $data): void in /var/www/vhosts/pehoma.com/espo.pehoma.com/custom/Espo/Modules/Advanced/Services/Report.php on line 30\n at /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/spatie/async/src/Output/ParallelError.php:11)"}

      • #5
        We've been always recommending to make backups before upgrading. If anything went wrong after upgrade, just revert back.

        Upgrading between minor and major versions should not be considered as a no-brainer task (unless for very experienced users who are able to fix any kind of problem). It may cause problems, especially if the release just recently been published and especially if there are any extensions or manual customizations.
        Last edited by yuri; 04-04-2024, 07:21 AM.

        Comment


        • #6
          yuri
          will it really (guaranteed) solve the problem if we upgrade the advance pack? I don't like to spend money without solving the problem. Like I said I have 9 people waiting. Unfortunately we had also a problem in the backup. What is with the files in /data/.backup? Can we use this to solve the problem?

          If it will for sure solve the problem to upgrade the extension. How can we do it? because it doesn't work from the administration panel in ESPO.

          Comment


          • #7
            I think you did wrong my suggested fix. The error log message says that you have the previous code, not modified one.

            Comment


            • #8
              the log also says that the file with the error is in Espo\Modules\Advanced\Services\Report, but in this path there is no file like that.

              The only one we have is in the custom folder: /custom/Espo/Modules/Advanced/services/report.php

              Comment


              • #9
                But I already paid for the new advance pack. So could you explain me how we can install the upgrade without using the administration panel?

                Comment


              • #10
                Ok. Now we've spend 364,29€ for the new Advance pack, and the error is still there and we cannot use the system.

                During the installation of Advance pack there were no errors. It was installed without problems over CLI. Here is the error log after Advance pack 3.2.2 was installed:

                [2024-04-04 08:02:02] ERROR: Slim Application Error Type: Error Code: 0 Message: Class "Espo\Services\Attachment" not found File: /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Modules/EblaLabels/Services/Attachment.php Line: 26 Trace: #0 /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/composer/ClassLoader.php(576): include() #1 /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}() #2 [internal function]: Composer\Autoload\ClassLoader->loadClass() #3 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Utils/File/ClassMap.php(170): ReflectionClass->__construct() #4 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Utils/File/ClassMap.php(130): Espo\Core\Utils\File\ClassMap->fillHashFromFileList() #5 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Utils/File/ClassMap.php(88): Espo\Core\Utils\File\ClassMap->getClassNameHash() #6 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Utils/ClassFinder.php(78): Espo\Core\Utils\File\ClassMap->getData() #7 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Utils/ClassFinder.php(68): Espo\Core\Utils\ClassFinder->load() #8 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Utils/ClassFinder.php(55): Espo\Core\Utils\ClassFinder->getMap() #9 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/ServiceFactory.php(56): Espo\Core\Utils\ClassFinder->find() #10 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/ServiceFactory.php(61): Espo\Core\ServiceFactory->getClassName() #11 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Record/ServiceFactory.php(134): Espo\Core\ServiceFactory->checkExists() #12 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Record/ServiceFactory.php(100): Espo\Core\Record\ServiceFactory->createInternal() #13 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Record/ServiceContainer.php(82): Espo\Core\Record\ServiceFactory->create() #14 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Record/ServiceContainer.php(74): Espo\Core\Record\ServiceContainer->load() #15 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Controllers/RecordBase.php(135): Espo\Core\Record\ServiceContainer->get() #16 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Controllers/RecordBase.php(247): Espo\Core\Controllers\RecordBase->getRecordService() #17 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Api/ControllerActionProcessor.php(87): Espo\Core\Controllers\RecordBase->getActionList() #18 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Api/ControllerActionHandler.php(65): Espo\Core\Api\ControllerActionProcessor->process() #19 /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Espo\Core\Api\ControllerActionHandler->handle() #20 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Api/RouteProcessor.php(222): Slim\MiddlewareDispatcher->handle() #21 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Api/RouteProcessor.php(149): Espo\Core\Api\RouteProcessor->processControllerAction() Unminify assets or how to recreate t...o.min.js file? /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Api/RouteProcessor.php(127): Espo\Core\Api\RouteProcessor->processAfterAuth() Unminify assets or how to recreate t...o.min.js file? /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Api/RouteProcessor.php(78): Espo\Core\Api\RouteProcessor->processInternal() #24 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Api/Starter.php(109): Espo\Core\Api\RouteProcessor->process() Unminify assets or how to recreate t...o.min.js file? /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Espo\Core\Api\Starter->Espo\Core\Api\{closure}() how to upgrade ? /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/Routing/Route.php(358): Slim\Handlers\Strategies\RequestResponse->__invoke() how to upgrade ? /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\Routing\Route->handle() #28 /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\MiddlewareDispatcher->handle() #29 /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/Routing/Route.php(315): Slim\MiddlewareDispatcher->handle() #30 /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/Routing/RouteRunner.php(68): Slim\Routing\Route->run() #31 /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Slim\Routing\RouteRunner->handle() Unminify assets or how to recreate t...o.min.js file? /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process() Quotes /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() Quotes /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process() #35 /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() how to upgrade ? /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle() how to upgrade ? /var/www/vhosts/pehoma.com/espo.pehoma.com/vendor/slim/slim/Slim/App.php(183): Slim\App->handle() how to upgrade ? /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Api/Starter.php(76): Slim\App->run() #39 /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/ApplicationRunners/Api.php(45): Espo\Core\Api\Starter->start() how to upgrade ? /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Application/RunnerRunner.php(84): Espo\Core\ApplicationRunners\Api->run() how to upgrade ? /var/www/vhosts/pehoma.com/espo.pehoma.com/application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run() how to upgrade ? /var/www/vhosts/pehoma.com/espo.pehoma.com/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.

                Comment


                • #11
                  We have solved the problem

                  Comment


                  • rabii
                    rabii commented
                    Editing a comment
                    consider sharing how so other users could benefit if you want to

                  • shalmaxb
                    shalmaxb commented
                    Editing a comment
                    Hi @pehoma,
                    glad that you got it sorted out. Keep in mind, that it is always good practice to share succeeding results to get rid of errors. You get help here, and so other people could get help from you. Only that way a forum makes sense. Thank you.

                  • Kharg
                    Kharg commented
                    Editing a comment
                    From the logs shared above it seems that the issue was caused by Ebla Label extension, as it was using Espo\Services\Attachment

                • #12
                  I suspect that the manual fix didn't work because of php opcache.

                  Comment

                  Working...
                  X