Maximum execution time of 30 seconds error because of queue

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
hp_solomon
Registered User
Posts: 269
Joined: Wed Mar 30, 2005 8:06 am

Maximum execution time of 30 seconds error because of queue

Post by hp_solomon » Wed Apr 01, 2009 3:08 am

Hi,

I got this error after sending PM to group with 14,000 members.
Fatal error: Maximum execution time of 30 seconds exceeded in /home/phpbb/public_html/cache/queue.php on line 2
How can i prevent this?

Hoping for your reply.

Thanks!
Last edited by hp_solomon on Wed Apr 01, 2009 5:44 am, edited 2 times in total.

blakebowling
Registered User
Posts: 775
Joined: Sun Apr 27, 2008 4:49 am
Location: 127.0.0.1

Re: Maximum execution time of 30 seconds error

Post by blakebowling » Wed Apr 01, 2009 3:13 am

increase your maximum php execution time (google it)

User avatar
Lumpy Burgertushie
Registered User
Posts: 66811
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Maximum execution time of 30 seconds error

Post by Lumpy Burgertushie » Wed Apr 01, 2009 3:23 am

create smaller groups.

you are probably going to have some problems when the board starts sending out all those emails to inform the people about the PM.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

blakebowling
Registered User
Posts: 775
Joined: Sun Apr 27, 2008 4:49 am
Location: 127.0.0.1

Re: Maximum execution time of 30 seconds error

Post by blakebowling » Wed Apr 01, 2009 3:27 am

Lumpy Burgertushie wrote:create smaller groups.

you are probably going to have some problems when the board starts sending out all those emails to inform the people about the PM.

robert
this works too.

hp_solomon
Registered User
Posts: 269
Joined: Wed Mar 30, 2005 8:06 am

Re: Maximum execution time of 30 seconds error

Post by hp_solomon » Wed Apr 01, 2009 3:29 am

yeah.. but i need to send out those message to those members. Checked queue.php and it has 14 MB. What is the solution to this? already set php execution time to 120 and still has error and also need to send those notification emails that they got PM .
Last edited by hp_solomon on Wed Apr 01, 2009 3:31 am, edited 1 time in total.

blakebowling
Registered User
Posts: 775
Joined: Sun Apr 27, 2008 4:49 am
Location: 127.0.0.1

Re: Maximum execution time of 30 seconds error

Post by blakebowling » Wed Apr 01, 2009 3:31 am

We gave you two solutions... increase the execution time.. and make smaller groups and send to one group at a time.

hp_solomon
Registered User
Posts: 269
Joined: Wed Mar 30, 2005 8:06 am

Re: Maximum execution time of 30 seconds error

Post by hp_solomon » Wed Apr 01, 2009 3:55 am

so this is how phpbb sent out large PM to groups that has huge membership by dividing it to smaller groups because the phpbb queue system can't handle it? This is only 14,000 members, how about phpbb sites that has more than 100,000 members? are they distributing it too to smaller groups?

any easier solution? or this is one weakness of the phpbb system.

thanks!

User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: Maximum execution time of 30 seconds error

Post by COD3M4ST3R-X » Wed Apr 01, 2009 4:02 am

hp_solomon wrote:so this is how phpbb sent out large PM to groups that has huge membership by dividing it to smaller groups because the phpbb queue system can't handle it? This is only 14,000 members, how about phpbb sites that has more than 100,000 members? are they distributing it too to smaller groups?

any easier solution? or this is one weakness of the phpbb system.

thanks!
Their is no weakness.
Use Package Size limit feature in Email Settings Page.
Default 50 mails at a time.
“Need and struggle are what excite and inspire us.”

blakebowling
Registered User
Posts: 775
Joined: Sun Apr 27, 2008 4:49 am
Location: 127.0.0.1

Re: Maximum execution time of 30 seconds error

Post by blakebowling » Wed Apr 01, 2009 4:07 am

COD3M4ST3R-X wrote:
hp_solomon wrote:so this is how phpbb sent out large PM to groups that has huge membership by dividing it to smaller groups because the phpbb queue system can't handle it? This is only 14,000 members, how about phpbb sites that has more than 100,000 members? are they distributing it too to smaller groups?

any easier solution? or this is one weakness of the phpbb system.

thanks!
Their is no weakness.
Use Package Size limit feature in Email Settings Page.
Default 50 mails at a time.
PM, not mail.

It's not a weakness in phpBB.. it's your server.

User avatar
COD3M4ST3R-X
Registered User
Posts: 2269
Joined: Sat Aug 02, 2008 5:47 am
Location: Lahore,Pakistan

Re: Maximum execution time of 30 seconds error

Post by COD3M4ST3R-X » Wed Apr 01, 2009 4:11 am

blakebowling wrote: PM, not mail.

It's not a weakness in phpBB.. it's your server.
Just FYI that error that is occuring is regarding the email notifications are being sent out abt those PM,s
Queue.php
Contains all the unsent mail.[In this case all notification emails regarding new PM,s] ;)
“Need and struggle are what excite and inspire us.”

blakebowling
Registered User
Posts: 775
Joined: Sun Apr 27, 2008 4:49 am
Location: 127.0.0.1

Re: Maximum execution time of 30 seconds error

Post by blakebowling » Wed Apr 01, 2009 4:14 am

COD3M4ST3R-X wrote:
blakebowling wrote: PM, not mail.

It's not a weakness in phpBB.. it's your server.
Just FYI that error that is occuring is regarding the email notifications are being sent out abt those PM,s
Queue.php
Contains all the unsent mail.[In this case all notification emails regarding new PM,s] ;)
I know that.. and regardless of the number of email being sent at once.. the whole file is processed (or I'm an idiot and you should ignore me in this thread) either way...

hp_solomon
Registered User
Posts: 269
Joined: Wed Mar 30, 2005 8:06 am

Re: Maximum execution time of 30 seconds error

Post by hp_solomon » Wed Apr 01, 2009 5:01 am

i have a dedicated server running on quad dual processor. i think the issue here is how phpbb handles the email queue. if the queue is already big, phpbb can't add the new email queue to queue.php. After sending PM to group of 14000 members, queue.php became 14MB then the error occurs everytime phpbb add new email queue to queue.php (file size no longer increasing) . i already set max execution time to 120 seconds and still got the error. I deleted queue.php then the error was gone but notifications were not sent to all members. I think the issue here is not the emails on queue on the mail server but the failed addition of email queue on queue.php.

please correct me if im wrong. any advice? thanks!

Locked

Return to “[3.0.x] Support Forum”