Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sendmail_from not set in php.ini - Please help newbie with OScommerce


webmandman

Recommended Posts

i get the following error message in a file i have to save by a prompt window when i click on checkout link:

 

PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Websites\ocdieselstore344\ocdieselstore.com\catalog\includes\modules\shipping\upsxml.php on line 795

PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Websites\ocdieselstore344\ocdieselstore.com\catalog\includes\modules\shipping\upsxml.php on line 1005

PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Websites\ocdieselstore344\ocdieselstore.com\catalog\includes\modules\shipping\upsxml.php on line 795

PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Websites\ocdieselstore344\ocdieselstore.com\catalog\includes\modules\shipping\upsxml.php on line 857

 

if i have to modify the php.ini file, i know this much, i don't have access to that file because i'm on a shared hosting plan.

 

what do you make of this error and what do you recommend?

Link to comment
Share on other sites

UPDATE: i added this to the includes/modules/shipping/upsxml.php file:

 

ini_set("SMTP","smtp.myserver.com");

ini_set("sendmail_from","[email protected]");

 

BUT NOW I GET THESE ERRORS in the same file(upsxml.php):

 

PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: SMTP server response: 501 syntax error in C:\Websites\mydomain.com\catalog\includes\modules\shipping\upsxml.php on line 798

PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: SMTP server response: 501 syntax error in C:\Websites\mydomain.com\catalog\includes\modules\shipping\upsxml.php on line 1008

PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: SMTP server response: 501 syntax error in C:\Websites\mydomain.com\catalog\includes\modules\shipping\upsxml.php on line 798

PHP Warning: error_log() [<a href='function.error-log'>function.error-log</a>]: SMTP server response: 501 syntax error in C:\Websites\mydomain.com\catalog\includes\modules\shipping\upsxml.php on line 860

 

Help please!

Link to comment
Share on other sites

MORE TO ADD: when entering this page catalog/login.php?action=process to log in and the user doesn't exist i get the same error above.

when i go to checkout_shipping.php (if i'm not logged in) i end up at the login.php successfully.

when i go to checkout_shipping.php (logged in) i get the same error above.

 

error mentioned above: smtp server response: 501 .... in /shipping/upsxml.php

Link to comment
Share on other sites

MORE TO ADD: when entering this page catalog/login.php?action=process to log in and the user doesn't exist i get the same error above.

Until you fixed that issue with SMTP on the Windows server I would suggest turning the sending of emails off after an error in the admin section of UPS XML. Then it probably would be a good idea to set up an error log somewhere (upload an empty text file, rename it to the whateverthenameyouwantittobe.log or upsxml_error and make sure it can be written to by the webserver).

Then edit and uncomment the particular line in the shipping module upsxml.php:

		// to enable logging of just the errors, do as above but call the file upsxml_error.log
//		$this->ups_error_file = '/srv/www/htdocs/catalog/includes/modules/shipping/upsxml_error.log';

Link to comment
Share on other sites

UPDATE: hey Jan, i did turn off emailing of errors yesterday. which was good because the site wouldn't bring up any ugly php error pages. but then i got the following shipping message:

Rating and Server 1.00001 ... blah blah...An unknown error occured while attempting to contact the UPS gateway.

 

then i uncommented one line in the upsxml.php file

~line 778: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

 

and now i don't get any errors, but SOMEHOW 15lbs are added to the ups quote. i found where the weight value is submitted to UPS, but did not find any hard coded "add 15 lbs" to weight. if you know what i mean.

 

Any suggestions????????????

Link to comment
Share on other sites

Almost forgot to mention, complete checkout is possible now, and i can succesfully buy products, however, when i click on "CONFIRM ORDER" which submits orders to authorize.net and error came like:

unable to contact merchant.

Your transaction was successfully made.

 

and this page is not that pretty. plus there's no link back to my store or anywhere.

if i visit my store again and check my account the order is my history, plus the admin shows its pending as well.

Link to comment
Share on other sites

UPDATE: hey Jan, i did turn off emailing of errors yesterday. which was good because the site wouldn't bring up any ugly php error pages. but then i got the following shipping message:

Rating and Server 1.00001 ... blah blah...An unknown error occured while attempting to contact the UPS gateway.

 

then i uncommented one line in the upsxml.php file

~line 778: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);

OK, that makes sense. The infamous certificate error.

 

SOMEHOW 15lbs are added to the ups quote. i found where the weight value is submitted to UPS, but did not find any hard coded "add 15 lbs" to weight. if you know what i mean.

There is a hard coded value somewhere in the admin for that (admin->configuration->Shipping/Packaging->Package Tare weight.) You might have put 15 there.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...