Image Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BigBoss
    Member
    • Nov 2023
    • 86

    Image Issue

    Hello again,

    After some time, I think that after a period of 2 months, I see that the images are like this. I need to input them again. I do this every 2 months.

    Click image for larger version

Name:	image.png
Views:	144
Size:	7.9 KB
ID:	108014
    Click image for larger version

Name:	image.png
Views:	99
Size:	6.0 KB
ID:	108015
    In the upload folder, I find the ID

    Click image for larger version

Name:	image.png
Views:	151
Size:	12.8 KB
ID:	108016​​
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1608

    #2
    some questions about this:

    1. do you change anything in the mySQL Database in the mentioned period?
    2. do a right click on the broken image, copy the link and compare the ID in this link with the ID of the image in the upload folder. It should be the same.
    3. If it is not the same ID, that means, that the image is not actually referenced in the database. This might happen, if you for example recover your database with an older backup, where the image perhaps had another ID.
    4. Any hint in the log file?

    Comment

    • BigBoss
      Member
      • Nov 2023
      • 86

      #3
      1 - No
      2 - ?entryPoint=image&id=66563d0d9ee98c3e6 Yes, the same ID.
      Click image for larger version

Name:	image.png
Views:	100
Size:	5.7 KB
ID:	108023
      3 - the same ID.
      4 -​ : No, nothing in the log journal.​
      Attached Files

      Comment

      • shalmaxb
        Senior Member
        • Mar 2015
        • 1608

        #4
        can you copy the file name of the image and paste here?

        Comment

        • BigBoss
          Member
          • Nov 2023
          • 86

          #5
          "logoId":"66563d0d9ee98c3e6","logoName":null

          Comment

          • BigBoss
            Member
            • Nov 2023
            • 86

            #6
            If I understand correctly, the name must be filled in. Is that the error? I accessed another image that works, and I see that the name is filled in with x.jpg​

            Comment

            • shalmaxb
              Senior Member
              • Mar 2015
              • 1608

              #7
              maybe the "null" name is caused by the filename. I asked for that, because espoCRM (as webservers in general) can cause problems with not well formed file names. For example, the filename should be in small letters, no spaces, no special chars etc.. I already had issues with not well formed file names. Because of that I guessed, it could be your problem.

              Comment

              • BigBoss
                Member
                • Nov 2023
                • 86

                #8
                What is the solution ?

                Comment


                • shalmaxb
                  shalmaxb commented
                  Editing a comment
                  what is the filename of the image you upload?
              • yuri
                Member
                • Mar 2014
                • 8467

                #9
                Do you have "cleanupOrphanAttachments" set to true in the config? If the field is created manually, it can be that an attachment record gets no a parent or related record. The system then deletes the attachment with the cleanup job. Note that this parameter is disabled by default.
                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


                • BigBoss
                  BigBoss commented
                  Editing a comment
                  cleanupOrphanAttachments is already deactivated, and for the field it is created manually
              Working...