Please help with error in the log

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • murugappan
    Active Community Member
    • Aug 2017
    • 512

    #1

    Please help with error in the log

    Hi,

    I am getting the following warnings, please help:

    (1) WARNING: E_WARNING: Invalid argument supplied for foreach() {"code":2,"message":"Invalid argument supplied for foreach()","file":"/home/crmemast/public_html/emascrm/vendor/laminas/laminas-mail/src/Protocol/Imap.php","line":811} []

    (2) WARNING: E_WARNING: imagecreatefrompng(): gd-png: libpng warning: Interlace handling should be turned on when using png_read_image {"code":2,"message":"imagecreatefrompng(): gd-png: libpng warning: Interlace handling should be turned on when using png_read_image","file":"/home/crmemast/public_html/emascrm/application/Espo/EntryPoints/Image.php","line":295} []
    Last edited by murugappan; 12-03-2025, 09:10 AM.
  • heint
    Member
    • Jun 2025
    • 50

    #2
    Greetings, murugappan,

    The first problem might be related to an invalid assigned user of either a Personal or Group Email account. Double-check if users are valid for important features like that.

    The second issue is... PNG related? It's difficult to say where the root problem is, since it also might be related to the PHP version or some kind of PNG libraries. Check any of png files on your system; maybe some of them are corrupted.

    In most cases, warning log messages are not affecting the system performance, but if you encounter any problem with any functionality, please describe it in more detail.
    Last edited by heint; 12-03-2025, 05:00 PM.

    Comment


    • murugappan
      murugappan commented
      Editing a comment
      Hi, thank you for responding.

      (1) From the message i do understand it has something to do with email account but which one or what is the question. It has been working all this time but only recent i have been clearing out the issues in the log that i find this. We have 2 admins and they tell me they has created many group email accounts. Unless i know which one is giving the trouble, it would be like shooting in the dark,

      (2) Its seems to state "gd-png: libpng". I will check these out.
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1801

    #3
    The second should have to do with the configuration of the server`s gd extension. The error tells, that interlace handling should be activated. This is necessary, so that the server can read png files, which had been saved interlaced by the image editor, that had been used to save the file. In the editor you either have the choice to save interlaced or not interlaced, or the editor by default saves in interlaced format. For both cases the sever should be able to read this format.
    Last edited by shalmaxb; 12-03-2025, 04:27 PM.

    Comment

    • yuri
      EspoCRM product developer
      • Mar 2014
      • 9532

      #4
      The first one could be caused the IMAP server returning unexpected response for some reason. I'd suggest checking email accounts (group and personal) and their specified monitored folders. Maybe some non-existent folder causes this.
      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


      • murugappan
        murugappan commented
        Editing a comment
        Update:

        Hi yuri, Thank you for the update. I managed to locate the possible culprit group email. I checked that group email and found the only folder it was using INBOX which is the default. The problem still persist. The fetching works fine and i have disabled acknowledgment.
        Last edited by murugappan; Yesterday, 10:01 AM. Reason: Update after checking
    • murugappan
      Active Community Member
      • Aug 2017
      • 512

      #5
      Hi shalmaxb , Thank you for responding. Regarding the PNG problem and extension/libraries, i checked the the PHP ini for the server and i found all the related extensions and libraries have been installed and enabled. Please see below screenshot of the phpinfo() output:

      Click image for larger version

Name:	Screenshot_1.png
Views:	0
Size:	36.4 KB
ID:	123421

      Comment

      • shalmaxb
        Senior Member
        • Mar 2015
        • 1801

        #6
        yes, png is enabled, but you don`t know if inside the gd library for png "interlaced" is enabled. Ask your provider.

        Comment

        Working...