Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help me PLZz!


Soah

Recommended Posts

Posted

For some odd reason, I keep receiving this error message whenever I attempt to create a new account :? The account is created in the database, but this message appears as soon as I submit the info:

 

Warning: Failed to Receive in c:phpdevwwwcatalogincludesclassesemail.php on line 500

 

Warning: Cannot add header information - headers already sent by (output started at c:phpdevwwwcatalogincludesclassesemail.php:500) in c:phpdevwwwcatalogincludesfunctionsgeneral.php on line 29

 

 

I've checked through email.php for any blanked spaces before and after the code (as stated in the troubleshooting guide) yet the error persists. I would deeply appreciate your help and advice! Thx.

Posted

ftp; catalog/includes/funtions/general.php down in dreamweaver, and it will probably tell you the problem. or post the code here and hope someone will see the problem. on line 29

Posted

thx for the quick reply!

 

Here's the code i have in email.php: lines 499-504

if (EMAIL_TRANSPORT == 'smtp') {

return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers));

} else {

return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));

}

 

and in general.php: lines 29-32

header('Location: ' . $url);

 

tep_exit();

}

 

I admit I'm not a hardcore php person but i hope someone who is can share a few advice.

Posted

Do you have an email server setup on your local machine. If not then that's why you're getting the error. There aren't any error is the code.

Posted

Thanks for confirming the code rseigel!

 

I'm not entirely sure how I would go about setting up an email server and perhaps you could explain it to me a little more..

 

My friend suggested I edit a few lines in header.php, but I fear it'll only create bigger problems.

 

In admin however, I decided to play around with some of the email options. I had previously checked 'SMTP' as transport method which notified me of a problem in line 500, and when I changed it to 'sendmail' it showed an error in line 502. Also, do you suppose it has anything to do with 'Email linefeeds' and the options CRLF and LF? I haven't the slightest clue what they do so i currently have CRLF enabled.

 

At the moment, I'm currently working offline (under localhost) and I was wondering if this problem has anything to do with it.

 

I deeply appreciate your help and I await your response!

Posted

Is this your own server that you administer? What OS is it running? CRLF vs. LF is a DOS/Unix thing. Unix (or Linux) uses LF. Macs used CR, FWIW :)

I love deadlines. I like the whooshing sound they make as they fly by. ---Douglas Adams

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...