phpbb2 debug mode

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
Thought I'd start a new thread for this as you're probably sick of my transferring stuff woes. :)

My message board is working brilliantly now except for this appearing when you pm someone:
Failed sending email :: PHP ::

DEBUG MODE

Line : 234
File : \\nas07ent\domains\m\maljonicsdreams.com\user\htdocs\phpBB2\includes\emailer.php


I know I've seen it before, I think it just went away on its own the last time. Despite what it says, the messages are getting sent but it just looks bad. Can I fix it easily; well, obviously I can't, I mean can someone help me fix it easily? :)
 

wyrd_fish

Fledgling Freddie
Joined
Dec 27, 2003
Messages
537
posting line 234 of "\\nas07ent\domains\m\maljonicsdreams.com\user\htdocs\phpBB2\includes\emailer.php" would help
 

Jonty

Fledgling Freddie
Joined
Dec 22, 2003
Messages
1,411
Hi Maljonic

Try heading over to the PHPBB Support Forums, and either searching for, say, 'Line 234' or 'emailer.php' or posting a new topic. They might be your best bet.

Let us know how you get on
 

Maljonic

Can't get enough of FH
Joined
Dec 22, 2003
Messages
1,297
wyrd_fish said:
posting line 234 of "\\nas07ent\domains\m\maljonicsdreams.com\user\htdocs\phpBB2\includes\emailer.php" would help
I didn't think it would but here you go:

324 message_die(GENERAL_ERROR, 'Failed sending email :: ' . (($this->use_smtp) ? 'SMTP' : 'PHP') . ' :: ' . $result, '', __LINE__, __FILE__);
 

Cenuij

Regular Freddie
Joined
Dec 24, 2003
Messages
14
Maljonic said:
I didn't think it would but here you go:

324 message_die(GENERAL_ERROR, 'Failed sending email :: ' . (($this->use_smtp) ? 'SMTP' : 'PHP') . ' :: ' . $result, '', __LINE__, __FILE__);
This is just a generic call to the phpbb function that outputs formatted error messages ( message_die ).

By default phpbb will try and use sendmail as your MTA. This is confirmed by the error message itself showing the line.

Failed sending email :: PHP ::

Check your general board config and make sure the path to sendmail is correct. Of course if your site is hosted it's conceivable that whoever's hosting the site may use something like exim instead of sendmail. Check with your host.
 

Mike

Fledgling Freddie
Joined
Dec 11, 2003
Messages
27
The error is an ongoing one since about 2.0.3.

They continually try to fix it, and appear to have solved it for me in 2.0.6, but some people still have problems.

The way around it is to use SMTP, rather than a sendmail-type-thing.

Other than that, turn off debugging, and put up with it.
 

RoboStac

Fledgling Freddie
Joined
Dec 23, 2003
Messages
6
It looks like a windows host from the \'s , so you need to change sendmail for the windows equivalent (probably smtp?)
 

wyrd_fish

Fledgling Freddie
Joined
Dec 27, 2003
Messages
537
using backslashes to escape chars is a PHP trick aslo...

pissed me off a while ago that one... theres a clean string function some where
 

Users who are viewing this thread

Top Bottom