Several 500 on ESPO 8.4.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • egonatwork
    Junior Member
    • Nov 2024
    • 8

    Several 500 on ESPO 8.4.2

    Hi there all,

    this is my first experience with ESPO installed on my webserver. Company, Customer are working fine.
    But if I want to save an activity (Meetings, Calls, Tasks, Calendar) I get 500s. See the console infos.

    First I had trouble that espo-main.js was not find in /originals. So I copied it into the direcotry.
    But I get the 500s though.

    As I told you I am making my first steps with ESPO and need help.

    Oh yes, PHP 8.1 is active,

    Thank you.




    HTML Code:
    POST https://espo.domainname.de/api/v1/Meeting 500 (Internal Server Error)
    (anonymous) @ espo-main.js:25981
    b @ espo-main.js:26085
    request @ espo-main.js:25940
    sync @ espo-main.js:14638
    save @ espo-main.js:14921
    (anonymous) @ espo-main.js:2318
    save @ espo-main.js:2317
    actionSave @ espo-main.js:12313
    handleAction @ espo-main.js:13555
    click .button-container .action @ espo-main.js:3962
    dispatch @ jquery.js:5136
    f.handle @ jquery.js:4940
    /#Meeting/create:1 Uncaught (in promise) error
    
    espo-main.js:25981
                
    POST https://espo.domainname.de/api/v1/Call 500 (Internal Server Error)
    (anonymous) @ espo-main.js:25981
    b @ espo-main.js:26085
    request @ espo-main.js:25940
    sync @ espo-main.js:14638
    save @ espo-main.js:14921
    (anonymous) @ espo-main.js:2318
    save @ espo-main.js:2317
    actionSave @ espo-main.js:12313
    handleAction @ espo-main.js:13555
    click .button-container .action @ espo-main.js:3962
    dispatch @ jquery.js:5136
    f.handle @ jquery.js:4940
    /#Call/create:1 Uncaught (in promise) error​
  • lazovic
    Super Moderator
    • Jan 2022
    • 809

    #2
    Hi egonatwork,

    I recommend that you no longer move various files to system folders, even if you see errors in the browser console. You can always find the cause of the error in the EspoCRM instance logs with debug mode enabled: https://docs.espocrm.com/administrat...ng/#debug-mode.

    Now you can delete the file you moved from that originals folder or even reinstall your EspoCRM instance. Next, please share the instance error logs: https://docs.espocrm.com/administration/troubleshooting/#check-logs.​

    Comment

    • egonatwork
      Junior Member
      • Nov 2024
      • 8

      #3
      Thank you for your answer. This is my log.


      HTML Code:
      [2024-11-05 09:57:23] DEBUG: API (0) InjectableFactory: Class 'Espo\Modules\Crm\Classes\FieldValidators\Event\Reminders\Valid' does not exist.; POST /Meeting; Input data: {"status":"Planned","dateStart":"2024-11-05 09:45:00","duration":3600,"assignedUserId":"67290e0c7a0828643","assignedUserName":"Admin","acceptanceStatus":"None","dateEnd":"2024-11-05 10:45:00","name":"sdfsdf","parentType":null,"parentName":null,"parentId":null,"dateStartDate":null,"isAllDay":false,"dateEndDate":null,"reminders":[],"description":null,"teamsIds":[],"teamsNames":{},"usersIds":[],"usersNames":{},"usersColumns":{},"contactsIds":[],"contactsNames":{},"contactsColumns":{},"leadsIds":[],"leadsNames":{},"leadsColumns":{}}; Route pattern: /{controller}; Route params: Array
      (
          [controller] => Meeting
          [action] => create
      )
      [2024-11-05 09:57:23] CRITICAL: (0) InjectableFactory: Class 'Espo\Modules\Crm\Classes\FieldValidators\Event\Reminders\Valid' does not exist. :: POST /Meeting :: /www/espo-crm-2024/application/Espo/Core/InjectableFactory.php(165)
      [object] (RuntimeException(code: 0): InjectableFactory: Class 'Espo\Modules\Crm\Classes\FieldValidators\Event\Reminders\Valid' does not exist. at /www/espo-crm-2024/application/Espo/Core/InjectableFactory.php:165)
      [stacktrace]
      #0 /www/espo-crm-2024/application/Espo/Core/InjectableFactory.php(70): Espo\Core\InjectableFactory->createInternal()
      #1 /www/espo-crm-2024/application/Espo/Core/FieldValidation/ValidatorFactory.php(92): Espo\Core\InjectableFactory->create()
      #2 /www/espo-crm-2024/application/Espo/Core/FieldValidation/FieldValidationManager.php(411): Espo\Core\FieldValidation\ValidatorFactory->createAdditionalList()
      #3 /www/espo-crm-2024/application/Espo/Core/FieldValidation/FieldValidationManager.php(277): Espo\Core\FieldValidation\FieldValidationManager->checkAdditional()
      #4 /www/espo-crm-2024/application/Espo/Core/FieldValidation/FieldValidationManager.php(134): Espo\Core\FieldValidation\FieldValidationManager->processField()
      #5 /www/espo-crm-2024/application/Espo/Core/FieldValidation/FieldValidationManager.php(78): Espo\Core\FieldValidation\FieldValidationManager->processInternal()
      #6 /www/espo-crm-2024/application/Espo/Core/Record/Service.php(493): Espo\Core\FieldValidation\FieldValidationManager->process()
      #7 /www/espo-crm-2024/application/Espo/Core/Record/Service.php(849): Espo\Core\Record\Service->processValidation()
      #8 /www/espo-crm-2024/application/Espo/Core/Controllers/RecordBase.php(183): Espo\Core\Record\Service->create()
      #9 /www/espo-crm-2024/application/Espo/Core/Api/ControllerActionProcessor.php(87): Espo\Core\Controllers\RecordBase->postActionCreate()
      #10 /www/espo-crm-2024/application/Espo/Core/Api/ControllerActionHandler.php(65): Espo\Core\Api\ControllerActionProcessor->process()
      #11 /www/espo-crm-2024/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Espo\Core\Api\ControllerActionHandler->handle()
      #12 /www/espo-crm-2024/application/Espo/Core/Api/RouteProcessor.php(222): Slim\MiddlewareDispatcher->handle()
      #13 /www/espo-crm-2024/application/Espo/Core/Api/RouteProcessor.php(149): Espo\Core\Api\RouteProcessor->processControllerAction()
      #14 /www/espo-crm-2024/application/Espo/Core/Api/RouteProcessor.php(127): Espo\Core\Api\RouteProcessor->processAfterAuth()
      #15 /www/espo-crm-2024/application/Espo/Core/Api/RouteProcessor.php(78): Espo\Core\Api\RouteProcessor->processInternal()
      #16 /www/espo-crm-2024/application/Espo/Core/Api/Starter.php(109): Espo\Core\Api\RouteProcessor->process()
      #17 /www/espo-crm-2024/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(38): Espo\Core\Api\Starter->Espo\Core\Api\{closure}()
      #18 /www/espo-crm-2024/vendor/slim/slim/Slim/Routing/Route.php(358): Slim\Handlers\Strategies\RequestResponse->__invoke()
      #19 /www/espo-crm-2024/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\Routing\Route->handle()
      #20 /www/espo-crm-2024/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Slim\MiddlewareDispatcher->handle()
      #21 /www/espo-crm-2024/vendor/slim/slim/Slim/Routing/Route.php(315): Slim\MiddlewareDispatcher->handle()
      #22 /www/espo-crm-2024/vendor/slim/slim/Slim/Routing/RouteRunner.php(68): Slim\Routing\Route->run()
      #23 /www/espo-crm-2024/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(45): Slim\Routing\RouteRunner->handle()
      #24 /www/espo-crm-2024/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process()
      #25 /www/espo-crm-2024/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
      #26 /www/espo-crm-2024/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process()
      #27 /www/espo-crm-2024/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
      #28 /www/espo-crm-2024/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle()
      #29 /www/espo-crm-2024/vendor/slim/slim/Slim/App.php(183): Slim\App->handle()
      #30 /www/espo-crm-2024/application/Espo/Core/Api/Starter.php(76): Slim\App->run()
      #31 /www/espo-crm-2024/application/Espo/Core/ApplicationRunners/Api.php(45): Espo\Core\Api\Starter->start()
      #32 /www/espo-crm-2024/application/Espo/Core/Application/RunnerRunner.php(84): Espo\Core\ApplicationRunners\Api->run()
      #33 /www/espo-crm-2024/application/Espo/Core/Application.php(78): Espo\Core\Application\RunnerRunner->run()
      #34 /www/espo-crm-2024/public/api/v1/index.php(35): Espo\Core\Application->run()
      #35 {main}
      ​

      Comment

      • egonatwork
        Junior Member
        • Nov 2024
        • 8

        #4
        Ahh.. After reading the log I understood .... The "Event" Folder was not copied to the server. I manually added it and now it works. Thank you though and sorry for the stupid question....

        Comment

        Working...