SMFHacks.com

Newsletter Pro => Support => Topic started by: jgmayes on March 24, 2010, 02:44:55 pm

Title: Getting a 500 - Internal server error when attempting to send newsletter??
Post by: jgmayes on March 24, 2010, 02:44:55 pm
For the past few days I have ben attempting to send a newsletter to my members and continue to get a 500 - Internal server error when I click "Send". We are a new forum and have approximately 1,000 members. I have not had this problem until recently.

any help would be appreciated.

Thanks
Title: Re: Getting a 500 - Internal server error when attempting to send newsletter??
Post by: SMFHacks on March 24, 2010, 03:38:37 pm
With the newsletter pro software or SMF in general?

Sounds like you are reaching a memory limit. I would check the forum's error log for any relevant errors.
Title: Re: Getting a 500 - Internal server error when attempting to send newsletter??
Post by: jgmayes on March 24, 2010, 03:47:24 pm
with newsletter pro..

here is what the error log says:

 The Don   Today at 03:42:47 pm 
 68.74.60.62     a72afafc3cbc4a4ea17fa3ff5716d1da 
 http://whitetail-mafia.com/forum/index.php?action=news;sa=mailingsend 
2: mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at "relay-hosting.secureserver.net" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
File: D:\Hosting\4245180\html\forum\Sources\Subs-Post.php
Line: 661

Any advice?
Title: Re: Getting a 500 - Internal server error when attempting to send newsletter??
Post by: SMFHacks on March 24, 2010, 04:00:09 pm
And what version of SMF?

500 error I would try to increase the memory limit in php and the max execution time if possible.
Title: Re: Getting a 500 - Internal server error when attempting to send newsletter??
Post by: jgmayes on March 24, 2010, 04:30:39 pm
SMF 1.1.11

to increase the memory limit in php or max. execution time; is that done in the server setting from host? Or is that a setting in SMF?
Title: Re: Getting a 500 - Internal server error when attempting to send newsletter??
Post by: SMFHacks on March 25, 2010, 12:35:18 pm
This is generally done on the hosted side. If you have access to the php.ini it can be increased there as well.
If the host can't do I can tell you where to add some code in SMF itself that might help.
Title: Re: Getting a 500 - Internal server error when attempting to send newsletter??
Post by: jgmayes on March 28, 2010, 08:52:28 am
Well I found that I was able to create a php5.ini file and modify the settings. However this crashed other portions of the site, since I am on a Windows server.... I did not know the difference between Linux and Windows but now I am going to make the switch. Unfortunately my store is in NOP so I have to rebuild it.

Any temporary fixed to the max esecution problem why I rebuild my store in something else?
Title: Re: Getting a 500 - Internal server error when attempting to send newsletter??
Post by: SMFHacks on March 28, 2010, 09:38:45 am
Try this code edit

Open Sources/ManageNews.php

Find
Code: [Select]
function SendMailing()
{
Add After
Code: [Select]
@ini_set('memory_limit', '128M');
@ini_set('max_execution_time',600');
Title: Re: Getting a 500 - Internal server error when attempting to send newsletter??
Post by: scept1c on April 15, 2010, 06:39:20 am
thx SMFHacks, I increased the memory limit in php.ini and that solved the problem.