Error after upgrade to EspoCRM 7.0.7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mzingy
    Junior Member
    • Sep 2021
    • 11

    Error after upgrade to EspoCRM 7.0.7

    Hello After i upgrade to EspoCRM 7.0.7

    I got this error i did the upgrade via ssh


    I tried to rebuild
    #php rebuild.php

    nothing
    i tried to delete cache folder nothing also



    Fatal error: Uncaught Espo\Core\Exceptions\Error: Bad data stored in file 'data/cache/application/modules.php'. in /home/crm/application/Espo/Core/Utils/File/Manager.php:274 Stack trace: #0 /home/crm/application/Espo/Core/Utils/DataCache.php(72): Espo\Core\Utils\File\Manager->getPhpSafeContents('data/cache/appl...') #1 /home/crm/application/Espo/Core/Utils/Module.php(102): Espo\Core\Utils\DataCache->get('modules') #2 /home/crm/application/Espo/Core/Utils/Module.php(89): Espo\Core\Utils\Module->init() #3 /home/crm/application/Espo/Core/Utils/Module.php(140): Espo\Core\Utils\Module->get(Array, 11) #4 /home/crm/application/Espo/Core/Binding/EspoBindingLoader.php(40): Espo\Core\Utils\Module->getOrderedList() #5 /home/crm/application/Espo/Core/Container/ContainerBuilder.php(166): Espo\Core\Binding\EspoBindingLoader->__construct(Object(Espo\Core\Utils\Module)) #6 /home/crm/application/Espo/Core/Application.php(64): Espo\Core\Container\ContainerBuilder->build() #7 /home/crm/application/Espo/Core/Application.php(57): Espo\Core\Ap in /home/crm/application/Espo/Core/Utils/File/Manager.php on line 274
  • mzingy
    Junior Member
    • Sep 2021
    • 11

    #2
    I just disabled Use Cache from config file

    but i get error 500 when i try to edit any setting from UI

    Comment

    • yuri
      Member
      • Mar 2014
      • 8440

      #3
      Try removing "data/cache" manually.
      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


      • eymen-elkum
        eymen-elkum commented
        Editing a comment
        Not solved the problem

      • eymen-elkum
        eymen-elkum commented
        Editing a comment
        Everytime it creating the cache & cache/application folder in addition to modules.php file but not able to write data to the file
    • mzingy
      Junior Member
      • Sep 2021
      • 11

      #4
      The problem solved by deleting those lines from data/config.php

      'defaultPermissions' => [
      'user' => 2,
      'group' => 2
      ]

      and create new file data/config-internal.php
      after this solved

      Comment

      • macdpl
        Junior Member
        • Sep 2021
        • 7

        #5
        What did You put into "data/config-internal.php"

        I deleted this lines:
        'defaultPermissions' => [
        'user' => 2,
        'group' => 2
        ]
        form config.php but still get:

        Fatal error: Uncaught TypeError: Return value of Espo\Core\Utils\File\Permission::chownReal() must be of the type bool, null returned in /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/File/Permission.php:370 Stack trace: #0 /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/File/Permission.php(274): Espo\Core\Utils\File\Permission->chownReal('data/cache', 65746) #1 /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/File/Manager.php(521): Espo\Core\Utils\File\Permission->chown('data/cache') #2 /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/File/Manager.php(503): Espo\Core\Utils\File\Manager->mkdir('data/cache', '509') #3 /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/File/Manager.php(639): Espo\Core\Utils\File\Manager->mkdir('data/cache/appl...', '509', true) #4 /home/klient.dhosting.pl/mdurajczyk/be in /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/File/Permission.php on line 370

        Comment

        • macdpl
          Junior Member
          • Sep 2021
          • 7

          #6
          ok, i copied exacly the same what is in config.php to config-internal.php. System works. But every time I go to my CRM it's look like without config.
          No menu, no setting, like after reset to deafults and it's not possible to save any settings in admin panel

          Comment

          • item
            Active Community Member
            • Mar 2017
            • 1476

            #7
            ssh your root directory crm, do a
            ls -la

            post here only user/group name just for information

            cd data
            ls -la
            give only user/group name just for information

            put on config.php
            ...
            'user' => 'theUserName',
            'group' => 'theGroupName'
            ...

            make a
            php clear_cache.php and see what append ? This is no issue
            try change setting .. and so .. this test have nothing bad result

            I think, all this is related of your VPS system.. how is ..
            We have ours own data-center, and i see .. all file is user/group my accountUser.. not httpd or www-data

            I just migrate one instance without any problem .. ha yes .. one, Error: PHP parameter 'opcache.enable_cli' should be set to '0'.


            If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

            Comment

            • macdpl
              Junior Member
              • Sep 2021
              • 7

              #8
              Hi.
              In config.php
              ...
              'user' => 'theUserName',
              'group' => 'theGroupName'

              There are correct values form my username and group
              I checked it by ls -la and cat /etc/passwd

              But it still not work.


              Fatal error: Uncaught Espo\Core\Exceptions\Error: Bad data stored in file 'data/cache/application/modules.php'. in /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/File/Manager.php:274 Stack trace: #0 /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/DataCache.php(72): Espo\Core\Utils\File\Manager->getPhpSafeContents('data/cache/appl...') #1 /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/Module.php(102): Espo\Core\Utils\DataCache->get('modules') #2 /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/Module.php(89): Espo\Core\Utils\Module->init() #3 /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/Module.php(140): Espo\Core\Utils\Module->get(Array, 11) #4 /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Binding/EspoBindingLoader.php(40): Espo\Core\Utils\Module->getO in /home/klient.dhosting.pl/mdurajczyk/beta.crm.hexus.pl/public_html/application/Espo/Core/Utils/File/Manager.php on line 274

              Comment

              Working...