invalid argument in data/log, no emails fetched

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • diamonddog
    Member
    • Jan 2015
    • 35

    invalid argument in data/log, no emails fetched

    Hi,

    I got across a new issue, when runinng espo on a shared server and trying to fetch emails.

    Cronjobs schedule log shows successful execution. But emails do not get fetched.

    Data/log show two warnings:

    E_WARNING: Invalid argument supplied for foreach() {"file":"/mnt/webt/b1/12/5815412/htdocs/Platzhalter/espo/application/Espo/Services/EmailAccount.php","line":267} []

    E_WARNING: Illegal offset type in isset or empty {"file":"/mnt/webt/b1/12/5815412/htdocs/Platzhalter/espo/application/Espo/ORM/DB/Query/Base.php","line":339}


    Is this a server problem?
    Thanks,
  • yuri
    Member
    • Mar 2014
    • 8846

    #2
    Hi

    It's weird. Seems your IMAP server returns something wrong. Did you try create new Email Account record and deactivate the current?
    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

    • diamonddog
      Member
      • Jan 2015
      • 35

      #3
      Hi,

      tried out the deactivation of accounts, re-installation of espo on server, different cron job providers, via cli and with direct url-calls, modifications in php.ini reg. execution time, etc…no fetching of emails.

      The strange thing: with epso locally installed (bitnami etc) and with windows scheduler, all emails get fetched. So I assume the IMAP is ok.

      With the installation on a shared server. No fetching...sadly

      Comment

      • yuri
        Member
        • Mar 2014
        • 8846

        #4
        Maybe shared sever blocks something.
        You can try to debug application/Espo/Services/EmailAccount.php or application/Espo/Services/InboundEmail.php

        Disable crontab and run cron.php manually in command line.

        Clear 'job' table in db after each run.
        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

        Working...