Support Forum

Warning message after sending PM

NA NandaNienhuis
NandaNienhuis
Member

I installed the private messaging plugin on my forum. After sending a PM to someone and clicking send, i get the following message:

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit in safe mode in /public/sites/www.voordoormetelkaar.nl/wp-content/sp-resources/forum-plugins/private-messaging/ahah/sp-pm-ahah-post.php on line 169

Warning: Cannot modify header information – headers already sent by (output started at /public/sites/www.voordoormetelkaar.nl/wp-content/sp-resources/forum-plugins/private-messaging/ahah/sp-pm-ahah-post.php:169) in /public/sites/www.voordoormetelkaar.nl/wp-includes/pluggable.php on line 899

Anyone know what goes wrong?

 

3 Answers

New Answer

MP Mr Papa
Mr Papa
Member

first suggestion would be to get your host to get you off php safe mode… crazy… if they wont, move to a real host… 

second would be to not display notices and warnings on a production site…  those should be suppressed via the php.ini file for production sites…

if you go to that line 169 in the file referenced, you can try changing

        set_time_limit(0); # take as long as needed

to

        @set_time_limit(0); # take as long as needed

to also suppress the error…

NA NandaNienhuis
NandaNienhuis
Member

Thx! Changing the line fixed the warning.

Not sure about the PHP safe mode, but will look into that aswell :)

YS Yellow Swordfish
Yellow Swordfish
Member

Steve’s recommendations on using Safe Mode and in particular setting the error reporting as it should be set for a live, production site – are worth pursuing.