Announcement

Collapse
No announcement yet.

Error after upgrade to EspoCRM 7.0.7

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

  • 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

  • #2
    I just disabled Use Cache from config file

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

    Comment


    • #3
      Try removing "data/cache" manually.

      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

    • #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


      • #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


        • #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


          • #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'.


            Comment


            • #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...
              X