| Author |
Post |
|
|
#1 Wed Oct 31, 2007 3:41 am
|
|
Member
Registered: Oct 2007
Posts: 4
|
This error was supposedly fixed, but when i try to register new users i get this:
UseBB General Error An error was encountered. We apologize for any inconvenience.
In file sources/functions.php on line 1164:
E_WARNING - mail() [function.mail]: SAFE MODE Restriction in effect. The mail() command is not allowed. This error should probably not have occured, so please report it to the webmaster. Thank you for your help.
If you are the webmaster of this board and you believe this is a bug, please send a bug report.
|
|
|
#2 Wed Oct 31, 2007 1:20 pm
|
|
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
|
This "error" was never reported, in fact it's hard to fix at all. Your configuration has safe mode running which in your case disables the mail() function altogether (previous reports were for the fifth parameter, not the whole function). If you want to fix this, disable user activation and put a return statement at the top of functions::usebb_mail(). It's not possible to completely support safe mode because you can seemingly block virtually anything. Safe mode was never explicitly marked as "supported".
|
|
|
#3 Thu Nov 01, 2007 12:50 am
|
|
Member
Registered: Oct 2007
Posts: 4
|
oh i see, I'm not sure what you mean by "disable user activation and put a return statement at the top of functions::usebb_mail()." I am quite the idiot when it comes to php. Would you happen to know how I would disable the safe mode? the host I'm using is gigacities.net, and it is using php 5.0, and the only way I can access the php is using phpMyAdmin - 2.8.2.
|
|
|
#4 Thu Nov 01, 2007 12:56 pm
|
|
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
|
Contact your host whether safe mode can be disabled.
|
|
|
#5 Thu Nov 08, 2007 4:24 am
|
|
Member
Registered: Oct 2007
Posts: 4
|
Hmm.. safe mode can't be turned off at my host, so I tried deactivating the email activation, but I'm not sure what you mean by "put a return statement at the top of functions::usebb_mail()"
Any help would be greatly appreciated!
|
|
|
#6 Thu Nov 08, 2007 2:41 pm
|
|
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
|
Alter the PHP code, find usebb_mail in sources/functions.php and add "return;" as the first statement. Note these PHP code changes are not officially supported, this is just a quick hack to disable all emails. Which normally isn't something you would need to do unless the host's PHP is basicly broken or missing essential functionality.
|
|
|
#7 Fri Nov 09, 2007 3:46 am
|
|
Member
Registered: Oct 2007
Posts: 4
|
Thx!! I did what you said and everything works great now! Sorry for all the dumb questions, your help was greatly appreciated!
|