Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: SergeantAsh on July 26, 2010, 02:56:58 PM

Title: Newsletter halts on blank page?
Post by: SergeantAsh on July 26, 2010, 02:56:58 PM
I have a forum of approximately 5000 members, I have just tried sending a Newsletter to all members but upon hitting SEND the page halts for a few seconds, then changes to a blank white page, looking at the Code view of the page it simply has basic headers without any content, nor body.

If I inspect the SMF Mail Queue (which is enabled), approximately 100 or so emails are queued, but the count doesn't increase upon refreshing so I assume the SMF Newsletter script has failed.

For information only, my Mail queue is enabled and set to 10 per minute, 5 per screen refresh but I'm not sure whether this is relevant.

I have tried sending just to a single post group of 300 members but the same occurs, it hits approximately 40 members, then stops at the white page.

Anyone any ideas?
Title: Re: Newsletter halts on blank page?
Post by: YogiBear on July 26, 2010, 03:32:11 PM
This depends on how many per hour your host will allow without causing a server bottleneck. The best way would be to ask your host how many per hour then set the throttle (the number per minute) accordingly.
Title: Re: Newsletter halts on blank page?
Post by: SergeantAsh on July 26, 2010, 04:46:00 PM
Quote from: YogiBear on July 26, 2010, 03:32:11 PM
This depends on how many per hour your host will allow without causing a server bottleneck. The best way would be to ask your host how many per hour then set the throttle (the number per minute) accordingly.

Thanks for your answer but that wasn't my question :(
Title: Re: Newsletter halts on blank page?
Post by: CapadY on July 26, 2010, 06:23:35 PM
Maybe not your question but at least a possible solution for your problem
Title: Re: Newsletter halts on blank page?
Post by: SergeantAsh on July 26, 2010, 06:31:06 PM
Quote from: capady on July 26, 2010, 06:23:35 PM
Maybe not your question but at least a possible solution for your problem

I do appreciate the help but I don't think that it is at all related. An email limitation of my hosts wouldn't affect the SMF application, particularly when queuing is setup within SMF.

Upon sending, I just get a blank white screen, surely that is an SMF bug?

100% unrelated to my host in my opinion.
Title: Re: Newsletter halts on blank page?
Post by: Kill Em All on July 28, 2010, 12:15:56 AM
This could possibly be a hosting issue. No this isn't a SMF bug unless you have file permissions set incorrectly, all files should be 644 while all folders should be 755.

Your host could be limiting your amount of emails you can send out. This can def be related to your host.
Title: Re: Newsletter halts on blank page?
Post by: SergeantAsh on July 28, 2010, 04:17:36 AM
Quote from: Kill Em All on July 28, 2010, 12:15:56 AM
This could possibly be a hosting issue. No this isn't a SMF bug unless you have file permissions set incorrectly, all files should be 644 while all folders should be 755.

Your host could be limiting your amount of emails you can send out. This can def be related to your host.

But with queuing within SMF enabled, the script that actually sends the newsletter isn't physically sending the emails right? I assume that it is storing the email content within a DB table so as to allow the queuing script itself to send them.

Therefore, there is no reason why an email limit on my host would terminate this script and result in a white/blank screen?
Title: Re: Newsletter halts on blank page?
Post by: SergeantAsh on July 28, 2010, 07:52:59 AM
Here are the sending limits imposed by my host:

http://wiki.dreamhost.com/SMTP_quota

But I still dont' see how the process of sending these emails into the SMF queue would relate to any of the above limits, surely if this were the case it would be the queue script that was killed, not the Newsletter sending process?

If you guys are right, can I get around this by altering the queuing configuration?
Title: Re: Newsletter halts on blank page?
Post by: YogiBear on July 28, 2010, 10:29:54 AM
I'm sure someone can explain this better but here goes...

Imagine a motorway (the server) which can handle x number of vehicles (packets of information) per hour without causing a traffic jam. Along the motorway are sliproads where cars (packets of information) are waiting to join that motorway.  If too many cars (packets of info) try to join at any one time the best scenario is a traffic jam. If a car (packet of information) forces itself onto that motorway the worst is a series of accidents causing a tail-back. The wreckage is your broken page or a timeout or the host halts your service.

Your host's sending limit is 100 per hour which is pretty standard.

QuoteIf you guys are right, can I get around this by altering the queuing configuration?

Set throttle (sending limit) to 1 per per minute. If the host is in a position to handle more onto the server in any given period it often will but doing this plays safe.

Now, if all the above doesn't work then we go to Plan B.  :)
Title: Re: Newsletter halts on blank page?
Post by: SergeantAsh on July 28, 2010, 10:45:48 AM
Quote from: YogiBear on July 28, 2010, 10:29:54 AM
Set throttle (sending limit) to 1 per per minute. If the host is in a position to handle more onto the server in any given period it often will but doing this plays safe.

Now, if all the above doesn't work then we go to Plan B.  :)


Thanks for that Yogi, I do understand the concept although the way that the Newsletter sending script is dieing confuses me as I thought it was just writing database rows ready for the Email Queuing function to actually send them.

I'll do as you suggest, fingers crossed that'll work, I'll report back :D

AHHHHH something just occured to me - is the big problem here that the emails are sent by a page load, not by a server-side com object or some sort, therefore the whilst the email sending page is only writing rows to the database, the codebase itself that is prompted by ANY smf page load is also sorting the 'queueing' functionality of SMF, and therefore kicking up the white page?
Title: Re: Newsletter halts on blank page?
Post by: YogiBear on July 28, 2010, 10:54:38 AM
You've effectively pre-guessed Plan B, Sgt, which is to upload a third party software such as phplist which sorts all this for you and is geared toward sending out large/very large e-mailings. The basic version is free but there's now also a pre-hosted version...

http://www.phplist.com/ (http://www.phplist.com/)


:)

Title: Re: Newsletter halts on blank page?
Post by: SergeantAsh on July 28, 2010, 03:29:33 PM
Well...tried tonight with it set to send 1 per minute, 30 per page refresh - after clicking send I opened the SMF Mail Queue in another tab and kept refreshing to see the emails build up...it got to 114 and then the sending page died again at the white screen :(

If I disabled the SMF Mail queue, the minute I hit SEND, I get the white screen.

Is this definitely 100% a host issue? I'm still not convinced, seems SMF-related to me?

What if I set the queue settings to Enable and set it to send 0 per minute - in theory won't that stop the script even talking to the host's email services and just queue them within the SMF database/app? i.e. that'll prove whether this is SMF or the host?
Title: Re: Newsletter halts on blank page?
Post by: Kill Em All on July 28, 2010, 07:10:22 PM
What version of SMF are you using? You never did say.

Yes, you can change it to 0, but I'm not sure if that would show the issue or not. It could still technically be the host's fault still.
Title: Re: Newsletter halts on blank page?
Post by: SergeantAsh on July 29, 2010, 04:22:48 AM
I'm using v2.00 RC3, sorry for not mentioning before.

What about if I configure an invalid email server within the SMF 'Mail' admin panel, turn on queuing - in theory this won't interact at all with my hosts email server and will just queue all of the mail? I could then turn on the queue and allow it to start sending?

The issue seems to be in the creation of the Newsletter emails, NOT in the queuing functionality.
Title: Re: Newsletter halts on blank page?
Post by: Norv on November 06, 2010, 11:39:29 AM
Hey SergeantAsh,
did you get to the bottom of this issue? Did you try what you said you wish to try?

Sorry for the extremely late reply. This does sound to me like a potential SMF bug though.
Title: Re: Newsletter halts on blank page?
Post by: SergeantAsh on November 06, 2010, 04:30:06 PM
Quote from: Norv on November 06, 2010, 11:39:29 AM
Hey SergeantAsh,
did you get to the bottom of this issue? Did you try what you said you wish to try?

Sorry for the extremely late reply. This does sound to me like a potential SMF bug though.

Thanks for your reply Norv, no I didn't ever find a solution to this issue, and hence it has prevented me from contacting the members of my forum :( I do firmly believe that it is an SMF fault.

Can you help? Does RC4 bring any upgrades to this functionality?
Title: Re: Newsletter halts on blank page?
Post by: Norv on November 06, 2010, 04:53:09 PM
I'm afraid RC4 doesn't really help, because we didn't realize it may have been an issue in SMF. I am investigating the issue and will let you know ASAP of any results.
Title: Re: Newsletter halts on blank page?
Post by: SergeantAsh on November 06, 2010, 04:58:39 PM
Quote from: Norv on November 06, 2010, 04:53:09 PM
I'm afraid RC4 doesn't really help, because we didn't realize it may have been an issue in SMF. I am investigating the issue and will let you know ASAP of any results.

Thanks very much Norv, if I can help, assist or provide any logs, I'm more than happy to help!!
Title: Re: Newsletter halts on blank page?
Post by: Glasso on November 06, 2010, 06:21:22 PM
Just a note I have made a cross reference to this topic on my topic about the same issue:
http://www.simplemachines.org/community/index.php?topic=407210.0
Title: Re: Newsletter halts on blank page?
Post by: SergeantAsh on November 06, 2010, 06:39:23 PM
Quote from: Glasso on November 06, 2010, 06:21:22 PM
Just a note I have made a cross reference to this topic on my topic about the same issue:
http://www.simplemachines.org/community/index.php?topic=407210.0

Nice one, well spotted with that comment you found in the code!!

// Send 50 at a time, then go for a break...
Title: Re: Newsletter halts on blank page?
Post by: GravuTrad on April 06, 2011, 07:40:37 AM
Is this bug solved?

And does it exist an option to send them by a precize timout (ex: 50 mails by hour)
Title: Re: Newsletter halts on blank page?
Post by: Illori on April 06, 2011, 07:43:16 AM
by default in smf 2.0 there is a mail queue. admin -> mail -> settings and you can configure it to how many messages get sent at a time.
Title: Re: Newsletter halts on blank page?
Post by: GravuTrad on April 06, 2011, 08:09:38 AM
Seen, by minute. ok thanks.

And so this bug is marked solved, i hope it is.
Title: Re: Newsletter halts on blank page?
Post by: GravuTrad on April 06, 2011, 08:33:20 AM
But not this option for 1.1 branch version....
Title: Re: Newsletter halts on blank page?
Post by: Illori on April 06, 2011, 11:14:46 AM
and this feature will not be part of 1.1.1* at any point in the future.
Title: Re: Newsletter halts on blank page?
Post by: GravuTrad on April 06, 2011, 11:34:04 AM
For sure lol... ;)

But no mods for it too...