Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in completing Registration


glitter

Recommended Posts

Upon completing registration, I am receiving the following error

 

Warning: Server Error in C:hshomesamanthatouchofglitter.cacatalogincludesclassesemail.php on line 456

 

Warning: Cannot add header information - headers already sent by (output started at C:hshomesamanthatouchofglitter.cacatalogincludesclassesemail.php:456) in C:hshomesamanthatouchofglitter.cacatalogincludesfunctionsgeneral.php on line 23

 

Could someone please point in the right direction to correcting this, thanks. :roll:

www.touchofglitter.ca

Link to comment
Share on other sites

It has to do with the mail configuration but not in osc! Maybe with the php.ini I'm not sure because I have the same problem !

Not only in the registration section but whenever it has to send an email.

And if U don't know it, U take an error but the registration procces works and the member does signed-up! If U find out where the error is just let me know 2

Link to comment
Share on other sites

Same problem here!

 

I just signed up with a host that provides this system already set up, and the exact same problem happens to me.

 

To check if there was a problem with the way it was set up, I dl'ed the latest version and installed it on another site. Same problem there too!

 

Both setups are nt-hosted, and I didn't do any customization.

 

Any help would be appreciated.

 

Ed

Link to comment
Share on other sites

Any help would be appreciated.

 

Open up the admin tool and click on configuration.

 

Then click on email options and make cure you have the following set

 

E-Mail Transport Method SMTP

E-Mail Linefeeds CRLF

Mark Evans

osCommerce Monkey & Lead Guitarist for "Sparky + the Monkeys" (Album on sale in all good record shops)

 

---------------------------------------

Software is like sex: It's better when it's free. (Linus Torvalds)

Link to comment
Share on other sites

I guess I spoke too soon, because although it solved the first error, next time a user signs up, they get a similar error, except this time it points to line 500 instead of 465 (paths deleted):

 

Warning: Server Error in ...catalogincludesclassesemail.php on line 500

 

Warning: Cannot add header information - headers already sent by (output started at

...catalogincludesclassesemail.php:500) in

...catalogincludesfunctionsgeneral.php on line 23

Link to comment
Share on other sites

:bigups: You put me on the right tracks. I just turned send email to false. I'm not about to mess with anything I don't know :wow: I'll just have to send the emails manually, until I can figure how to turn it back on without errors.

www.touchofglitter.ca

Link to comment
Share on other sites

An SMTP server needs to be added in the php.ini configuration file.

 

After adding it, don't forget to restart the webserver so it can read the new parameter value.

 

Windows servers need to have a specified SMTP server. A solution will be implemented later to enter the SMTP server information in the Administration Tool.

:heart:, osCommerce

Link to comment
Share on other sites

I have add the mail server to the php.ini but this is not the solution. it must be something else!

 

Well, a simple test can be done to see if it is a php problem or an osCommerce problem :)

 

Try the following script:

 

<?php

mail('[email protected]', 'This is my subject', 'This is a test email', 'From: [email protected]');

?>

 

Does the error still occur with that logic?

:heart:, osCommerce

Link to comment
Share on other sites

Hi

Same here I am getting the errors whenever it has to send a e-mail.

I am at the stage of developing it on Apache on my local machine running Windows XP.

Should the e-mail function still work or do I have to wait until I have ulploaded it my webhost?

Link to comment
Share on other sites

Yes I have my settings to:-

 

E-Mail Transport Method smtp

E-Mail Linefeeds CRLF

Use MIME HTML When Sending Emails false

Verfiy E-Mail Addresses Through DNS false

 

With the code you sent it starts up my mail editor fine but from OSC I get the error message:-

 

Warning: Failed to Connect in C:Program FilesApache GroupApache2htdocscatalogincludesclassesemail.php on line 500

 

Warning: Cannot add header information - headers already sent by (output started at C:Program FilesApache GroupApache2htdocscatalogincludesclassesemail.php:500) in C:Program FilesApache GroupApache2htdocscatalogincludesfunctionsgeneral.php on line 23

 

lines 499 onward reads:-

 

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 I am using:-

tep_snapshot-20020831

Link to comment
Share on other sites

Ok try Searching for the following under your PHP.INI file, which of course has to be under your SYSTEM (Windows) directory...

 

[mail function]

 

 

When you find that it may read something like this

[mail function]

; For Win32 only.

;SMTP = localhost

 

; For Win32 only.

;sendmail_from = [email protected]

 

As you can see, options for SMTP are "commented out" so PHP is ignoring them (comented out commands/options are indicated with ;)...

 

Ok now.. if it shows with a semi-colon in front, remove it.. specify the SMTP server, uncomment the sendmail_from to reflect the email you want.. and it should work.. if everything fails.. go to download.com and download SendMail for Windows... and just use sendmail instead of SMTP.. Hey I know it is NOT a "SOLUTION" but sure is a nice "work-around-the-Problem" solution :? (confused at even my own sentences right now.. but it is 4:38 AM sooo)... Hope this helps you

Link to comment
Share on other sites

Ok try Searching for the following under your PHP.INI file, which of course has to be under your SYSTEM (Windows) directory...

This I assume is if the php test

<?php

mail('[email protected]', 'This is my subject', 'This is a test email', 'From: [email protected]');

?>

dosn't work?

Does any one have a solution if the above test does work but the e-mail dosn't work in osc?

Link to comment
Share on other sites

Did any of the people that had these error messages (and whose php test mail script worked) get the osc mail function to work?

If so could you let me know as I am still having the problem and I do not know much php to sort it out

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...