UseBB Community

The official board for UseBB help and discussion

UseBB Community » Help & Support » Safe Mode funtion.mail

Safe Mode funtion.mail

Moderators: Gaia.

Page: 1

Author Post
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.
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".
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
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.
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
Contact your host whether safe mode can be disabled.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
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!
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.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
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!

Page: 1

UseBB Community » Help & Support » Safe Mode funtion.mail

UseBB Community is powered by UseBB 1 Forum Software