Error 500

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • serqet
    Senior Member
    • Feb 2019
    • 113

    Error 500

    Hello, I started getting errors after server change. I can't add files or write a comment or export to any recording I get an "Error 500" warning. But I can open saved files. Repair option gives Error 500 warning. Where is the problem? Thank you.​

    Espo:​ 6.1.10
    PHP: 8.0.29
    DB:MariaDB 10

    AdvancedPack:2.5.1
    SalesPack:1.0.9

    "[2023-07-10 14:36:46] ERROR: Slim Application Error Type: Error Code: 0 Message: Call to undefined method Espo\Core\ORM\EntityManager::getDefs() File: /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/FieldProcessing/EmailAddress/Saver.php Line: 56 Trace: #0 /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/FieldProcessing/SaveProcessor.php(62): Espo\Core\FieldProcessing\EmailAddress\Saver->process() EspoCRM Forum /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Hooks/Common/FieldProcessing.php(60): Espo\Core\FieldProcessing\SaveProcessor->process() Forum /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/HookManager.php(111): Espo\Hooks\Common\FieldProcessing->afterSave() #3 /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/Repositories/Database.php(287): Espo\Core\HookManager->process() #4 /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/ORM/Repository/RDBRepository.php(139): Espo\Core\Repositories\Database->afterSave() Groups /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/Repositories/Database.php(347): Espo\ORM\Repository\RDBRepository->save() Uncategorized Groups /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Services/Record.php(691): Espo\Core\Repositories\Database->save() Special /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Services/Record.php(1149): Espo\Services\Record->storeEntity() Visitor Messages /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/Controllers/Record.php(95): Espo\Services\Record->create() Private Messages /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/ControllerManager.php(106): Espo\Core\Controllers\Record->actionCreate() Albums /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/Api/RouteProcessor.php(84): Espo\Core\ControllerManager->process() Reports /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/ApplicationRunners/Api.php(184): Espo\Core\Api\RouteProcessor->process() Infractions /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/ApplicationRunners/Api.php(112): Espo\Core\ApplicationRunners\Api->processRequest() CSS Examples /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(43): Espo\Core\ApplicationRunners\Api->Espo\Core\ApplicationRunners\{closure}() #14 /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/Routing/Route.php(381): Slim\Handlers\Strategies\RequestResponse->__invoke() General Discussion /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\Routing\Route->handle() Announcements /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\MiddlewareDispatcher->handle() Feature Requests /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/Routing/Route.php(341): Slim\MiddlewareDispatcher->handle() Installation and Upgrade Help /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/Routing/RouteRunner.php(84): Slim\Routing\Route->run() Extensions /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(60): Slim\Routing\RouteRunner->handle() Developer Help /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/MiddlewareDispatcher.php(140): Slim\Middleware\RoutingMiddleware->process() Bug Reports /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(107): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() Unminify assets or how to recreate t...o.min.js file? /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/MiddlewareDispatcher.php(140): Slim\Middleware\ErrorMiddleware->process() /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #24 /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/App.php(215): Slim\MiddlewareDispatcher->handle() /var/www/vhosts/*****.com.tr/httpdocs/vendor/slim/slim/Slim/App.php(199): Slim\App->handle() how to upgrade ? /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/ApplicationRunners/Api.php(94): Slim\App->run() /var/www/vhosts/*****.com.tr/httpdocs/application/Espo/Core/Application.php(95): Espo\Core\ApplicationRunners\Api->run() #28 /var/www/vhosts/*****.com.tr/httpdocs/api/v1/index.php(37): Espo\Core\Application->run() {main} Tips: To display error details in HTTP response set "displayErrorDetails" to true in the ErrorHandler constructor. [] []"
    Last edited by yuri; 07-11-2023, 10:27 AM.
  • yuri
    Member
    • Mar 2014
    • 8705

    #2
    Hi, Looks like you have some files from 6.1, some from 7.0.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • ThomasB
      Senior Member
      • Mar 2022
      • 166

      #3
      I'm not really an expert, but maybe describe what you have done to change servers?

      Are you using still the same php version, etc?

      Have you checked file permissions and ownership? See: https://docs.espocrm.com/administrat...-based-systems
      Last edited by ThomasB; 07-10-2023, 03:02 PM.

      Comment

      • Vadym
        Super Moderator
        • Jun 2021
        • 349

        #4
        Hi serqet,

        Please note, PHP 8.0.29 is incompatible with Espo:CRM v6.1.10.
        Try to disable PHP 8.0.29, enable PHP 7.x and restart your web-server or upgrade EspoCRM to the 7.x.x version:


        Comment

        • ThomasB
          Senior Member
          • Mar 2022
          • 166

          #5
          Originally posted by Vadym
          Hi serqet,

          Please note, PHP 8.0.29 is incompatible with Espo:CRM v6.1.10.
          Are you sure about this? Support for 8.0 was added with 6.1.0. See: https://github.com/espocrm/espocrm/releases/tag/6.1.0​

          Maybe I miss some details.

          But I would also upgrade to a newer version, if possible.

          Comment

          • yuri
            Member
            • Mar 2014
            • 8705

            #6
            The proof that you have a file that should not to be in v6.1.10. https://github.com/espocrm/espocrm/b...ress/Saver.php No such file.

            But according your log, you have it. Probably you tried to upgrade that failed. You can just replace application/Espo/Core and application/Espo/Resources folders with ones from the 6.1.10 package.
            Last edited by yuri; 07-11-2023, 10:28 AM.
            If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

            Comment

            • serqet
              Senior Member
              • Feb 2019
              • 113

              #7
              I don't know what's up, but I solved the problem by going back to the previous day's backup. thanks.

              Comment

              Working...