Urgent. Slim Application Error. After update to 7.3.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Russ
    Senior Member
    • Feb 2022
    • 423

    Urgent. Slim Application Error. After update to 7.3.2

    After an update to 7.3.2 getting error 500 on an update of a record, there is no such issue on the other install.


    [2023-01-31 02:03:59] ERROR: Slim Application Error Type: TypeError Code: 0 Message: in_array(): Argument Forum ($haystack) must be of type array, null given File: /web/crm.somewebsite.com/www/application/Espo/Modules/Advanced/Core/Workflow/Conditions/Has.php Line: 34 Trace: #0 /web/crm.somewebsite.com/www/application/Espo/Modules/Advanced/Core/Workflow/Conditions/Has.php(34): in_array() EspoCRM Forum /web/crm.somewebsite.com/www/application/Espo/Modules/Advanced/Core/Workflow/Conditions/Base.php(93): Espo\Modules\Advanced\Core\Workflow\Conditions\Has->compare() Forum /web/crm.somewebsite.com/www/application/Espo/Modules/Advanced/Core/Workflow/ConditionManager.php(126): Espo\Modules\Advanced\Core\Workflow\Conditions\Bas e->process() #3 /web/crm.somewebsite.com/www/application/Espo/Modules/Advanced/Core/Workflow/ConditionManager.php(59): Espo\Modules\Advanced\Core\Workflow\ConditionManag er->processCheck() #4 /web/crm.somewebsite.com/www/application/Espo/Modules/Advanced/Core/WorkflowManager.php(167): Espo\Modules\Advanced\Core\Workflow\ConditionManag er->checkConditionsAny() Groups /web/crm.somewebsite.com/www/application/Espo/Modules/Advanced/Hooks/Common/Workflow.php(48): Espo\Modules\Advanced\Core\WorkflowManager->process() Uncategorized Groups /web/crm.somewebsite.com/www/application/Espo/Core/HookManager.php(108): Espo\Modules\Advanced\Hooks\Common\Workflow->afterSave() Special /web/crm.somewebsite.com/www/application/Espo/Core/Repositories/Database.php(332): Espo\Core\HookManager->process() Visitor Messages /web/crm.somewebsite.com/www/application/Espo/Modules/Crm/Repositories/Opportunity.php(51): Espo\Core\Repositories\Database->afterSave() Private Messages /web/crm.somewebsite.com/www/application/Espo/Modules/RealEstate/Repositories/Opportunity.php(68): Espo\Modules\Crm\Repositories\Opportunity->afterSave() Albums /web/crm.somewebsite.com/www/application/Espo/ORM/Repository/RDBRepository.php(181): Espo\Modules\RealEstate\Repositories\Opportunity->afterSave() #11 /web/crm.somewebsite.com/www/application/Espo/Core/Repositories/Database.php(155): Espo\ORM\Repository\RDBRepository->save() #12 /web/crm.somewebsite.com/www/application/Espo/ORM/EntityManager.php(264): Espo\Core\Repositories\Database->save() CSS Examples /web/crm.somewebsite.com/www/application/Espo/Core/Record/Service.php(710): Espo\ORM\EntityManager->saveEntity() #14 /web/crm.somewebsite.com/www/application/Espo/Core/Controllers/RecordBase.php(231): Espo\Core\Record\Service->update() General Discussion /web/crm.somewebsite.com/www/application/Espo/Core/Api/ActionProcessor.php(88): Espo\Core\Controllers\RecordBase->putActionUpdate() Announcements /web/crm.somewebsite.com/www/application/Espo/Core/Api/RequestProcessor.php(124): Espo\Core\Api\ActionProcessor->process() Feature Requests /web/crm.somewebsite.com/www/application/Espo/Core/Api/RequestProcessor.php(95): Espo\Core\Api\RequestProcessor->proceed() Installation and Upgrade Help /web/crm.somewebsite.com/www/application/Espo/Core/Api/RequestProcessor.php(62): Espo\Core\Api\RequestProcessor->processInternal() Extensions /web/crm.somewebsite.com/www/application/Espo/Core/Api/Starter.php(86): Espo\Core\Api\RequestProcessor->process() Developer Help /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(43): Espo\Core\Api\Starter->Espo\Core\Api\{closure}() Bug Reports /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/Routing/Route.php(384): Slim\Handlers\Strategies\RequestResponse->__invoke() Unminify assets or how to recreate t...o.min.js file? /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\Routing\Route->handle() /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Slim\MiddlewareDispatcher->handle() #24 /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/Routing/Route.php(341): Slim\MiddlewareDispatcher->handle() /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/Routing/RouteRunner.php(84): Slim\Routing\Route->run() how to upgrade ? /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(59): Slim\Routing\RouteRunner->handle() /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\Middleware\RoutingMiddleware->process() #28 /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(107): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #29 /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(147): Slim\Middleware\ErrorMiddleware->process() #30 /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/MiddlewareDispatcher.php(81): Psr\Http\Server\RequestHandlerInterface@anonymous->handle() #31 /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/App.php(215): Slim\MiddlewareDispatcher->handle() /web/crm.somewebsite.com/www/vendor/slim/slim/Slim/App.php(199): Slim\App->handle() Quotes /web/crm.somewebsite.com/www/application/Espo/Core/Api/Starter.php(62): Slim\App->run() /web/crm.somewebsite.com/www/application/Espo/Core/ApplicationRunners/Api.php(45): Espo\Core\Api\Starter->start() #35 /web/crm.somewebsite.com/www/application/Espo/Core/Application/Runner... [] []
    Attached Files
    Last edited by Russ; 01-31-2023, 09:21 PM.
  • Russ
    Senior Member
    • Feb 2022
    • 423

    #2
    After getting this error 500, the system still saves the changes, but it throws an error, please help

    Comment

    • Kharg
      Senior Member
      • Jun 2021
      • 410

      #3
      From what version did you update from?
      What extensions are installed and which version?

      Comment

      • Russ
        Senior Member
        • Feb 2022
        • 423

        #4
        Originally posted by Kharg
        From what version did you update from?
        What extensions are installed and which version?
        From 7.2
        VoIP Integration 1.21.0 VoIP Integration (Asterisk AMI, Twilio, Starface, Binotel, iexPBX)
        Real Estate 1.6.1 Provides the ability to manage real estate properties and requests.
        VoIP Integration 1.21.0 VoIP Integration (Asterisk AMI, Twilio, Starface, Binotel, iexPBX)
        Advanced Pack 2.13.0 Reports, Workflows, BPM.
        Outlook Integration 1.2.9 Outlook Calendar and Outlook Contacts integrations.
        MailChimp Integration 1.0.9 MailChimp integration.
        Dynamic Checklist Field Type 2.0.0 Dynamic Checklist Field Type for EspoCRM
        Dubas Custom 0.0.2 Customizations
        Dynamic Control for EspoCRM 1.0.1

        Comment


        • esforim
          esforim commented
          Editing a comment
          I dont know about other extension but I think Dynamic Checklist don't work with 7+, you need to use Kharg version if you want the updated one (2.1.1): https://github.com/Kharg/dynamic-checklist-for-espocrm

          Secondly I see lots of Workflow error, you might want to disable Advanced Pack for now see if it work...

          Might event to disable all and enable one by one even.
      • yuri
        Member
        • Mar 2014
        • 8440

        #5
        It's caused by PHP upgrade, not Espo upgrade. There was an issue in workflow HAS condition that the code was incompatible with PHP 8.1 or 8.2. Try upgrading advanced pack to a newer version.
        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

        • Kharg
          Senior Member
          • Jun 2021
          • 410

          #6
          Hi Russ, as Yuri said try upgrading to Advanced Pack 2.13.2 as it should solve the issue related with PHP.

          Comment

          • Russ
            Senior Member
            • Feb 2022
            • 423

            #7
            Fixed by updating the advanced pack to ver 2.13.2, thanks to all of you!

            Comment

            Working...