SMFHacks.com
Newsletter Pro => Support => Topic started 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
-
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.
-
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?
-
And what version of SMF?
500 error I would try to increase the memory limit in php and the max execution time if possible.
-
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?
-
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.
-
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?
-
Try this code edit
Open Sources/ManageNews.php
Find
function SendMailing()
{
Add After
@ini_set('memory_limit', '128M');
@ini_set('max_execution_time',600');
-
thx SMFHacks, I increased the memory limit in php.ini and that solved the problem.