Announcement

Collapse
No announcement yet.

Error 500 Bad data stored in file 'data/cache/application/ormMetadata.php'.​

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

  • Error 500 Bad data stored in file 'data/cache/application/ormMetadata.php'.​

    Click image for larger version

Name:	2023-05-15_21h15_02.png
Views:	321
Size:	278.0 KB
ID:	92448

    I get this rare Error 500 after Rebuild or Clear Cache:

    Error 500
    Bad data stored in file 'data/cache/application/ormMetadata.php'. ​​

    Cleared cache manually, but the file an the error regenerate.

    PHP 8.1 Espo V 7.4.5

    Any help? Many thanks!

    espo-2023-05-16.log

    Attached Files

  • #2
    Hi jeamado,

    When did you get this error after what actions?

    Comment


    • #3
      Hi victor

      After migrating to another server, upgrading to V7.4.5 and installing Advanced and Sales Extensions.

      Comment


      • #4
        Hi,
        for better response, you need to upload your file : data/cache/application/ormMetadata.php'

        step :
        clear_cache
        rebuild
        open espocrm
        error occur
        copy file data/cache/application/ormMetadata.php
        rename in ormMetadat.log
        post on forum

        ​so forum user can check where issue.

        Comment


        • #5
          Thank you @item,

          Here is the file.

          It is zipped because it heights 1.58MB and the forum does not allows me to upload such a large file.
          Attached Files

          Comment


          • item
            item commented
            Editing a comment
            Hello,
            i have do this :

            $data = include 'data/tmp/ormMetadata.php';
            $json = json_encode($data);
            file_put_contents('data/tmp/ormMetadata.json', $json);

            after online json validator : json is valid.

            Sorry, it's out of my skill after.

          • jeamado
            jeamado commented
            Editing a comment
            item, thanks a lot for your effort. I appreciate your help.

        • #6
          I recently got this error, the php is blank. It is probably corrupted.

          Any way for me to manually disable this file from being created?

          Delete the cache folder does not help.
          I can't use my GUI to Clear Cache
          My SSH CLI is not running it either.

          Comment


          • esforim
            esforim commented
            Editing a comment
            Hi all.

            Based on reading thing and 1 painful day of trial and error. I still have no idea. How I manage to fix this error was. Rename the data folder.

            Refresh EspoCRM, it will create a new instant. Copy the old internal-config.php data. Not the whole thing, just the database login section! Copy everything your Espo will die again.

            I will look further into it in the future but I just want to start using espoCRM again.

            I'm guessing some of the data is corrupted or not transferable?
        Working...
        X