POP3 Fetch

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
ruffmeister
Posts: 48
Joined: Wed Jun 16, 2010 2:52 pm

POP3 Fetch

Post by ruffmeister »

Script URL:
Version of script: 2.5.3
Hosting company: godaddy
URL of phpinfo.php: 5.4.24
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hi there

Since the last couple of weeks i have a slight issue with pop3 fetching via manual or chron job. if there are no emails to be fetched the job runs fine and if you run manually get the normal blank webpage. if there is an email - any email the web page hangs and causes the webserver to have 100% cpu resources taken up.

Nothing has changed with hesk or the webserver to my knowledge - any help?

The POP3 account is correct and works on a test

php version - 5.4.24
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 Fetch

Post by Klemen »

If there is an email, you turn "Debug mode: ON" in HESK settings and manually run POP3 fetching via browser, what does the output say?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
ruffmeister
Posts: 48
Joined: Wed Jun 16, 2010 2:52 pm

Re: POP3 Fetch

Post by ruffmeister »

debug turned on

1 email dropped into the mailbox

ran manually and the page just hangs and never completes

i log into our webserver and it then has 100% cpu usage.

Remove the email - run it manually and it finishes straight away and cpu is back to 1%
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 Fetch

Post by Klemen »

Do you know your way around PHP files?

If I were you I would try pinpointing what piece of code is causing the server to hang by stopping code execution in steps until it hangs.

What I mean is: place something like

Code: Select all

die('Line 90 works');
in the hesk_pop3.php file in line 90, run manually and see if you can see the "Line 90 works" message. If you see the message, everything before line 90 is not causing problems.

Then move the die('...') code down and try again and again... when the script hangs you will know which line is causing the problem (probably somewhere between 90 and 125).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
James Gunver
Posts: 1
Joined: Sat Feb 21, 2015 2:37 pm

Re: POP3 Fetch

Post by James Gunver »

I have the same problem. All defined setup is there. pop3 account is coming back as tested successfully, all executable permissions were granted to hesk_pop3.php and hesk_pipe.php. But none of the emails that posted to related email address is creating tickets?

This is the only show stopper for me to present solution to production. i need some healp on how to resolve this issue with "godaddy" hosting.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: POP3 Fetch

Post by Klemen »

Did you setup a cron job as instructed in the docs?
http://www.hesk.com/knowledgebase/index.php?article=65
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply