Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Please Help!


RareImaganation

Recommended Posts

Posted

Warning: Cannot modify header information - headers already sent by (output started at /data/3/0/136/77/136403/user/138143/htdocs/store/Order_Info_Process.php:147) in /data/3/0/136/77/136403/user/138143/htdocs/store/includes/functions/general.php on line 29

 

I was trying to do a test credit card purchase to see if my processor is set up and working ok. During the checkout process I inserted all information asked and then hit submit, thinking it would take me to the next screen which (I would assume) would be the page that would ask me to input all of my credit card information - instead I received a page with the above error message.

 

I went to my "includes" folder to see if there was a file/form called funtions but did not see it, also looked for a file/form called general.php; however, all I saw was a file called general.js. Where would I go to look to correct the error I am getting?

 

You can test this yourself at www.rareimagination.com/store - just use the $1.00 test product and put in the shopping cart and try to check out.

 

Your help is greatly appreciated... I need to put an order through for a customer today.

 

Thanks! Kristen

Posted

Look in the Documentation under common problems. It's there.

Posted
Warning: Cannot modify header information - headers already sent by (output started at /data/3/0/136/77/136403/user/138143/htdocs/store/Order_Info_Process.php:147) in /data/3/0/136/77/136403/user/138143/htdocs/store/includes/functions/general.php on line 29

 

I was trying to do a test credit card purchase to see if my processor is set up and working ok. During the checkout process I inserted all information asked and then hit submit, thinking it would take me to the next screen which (I would assume) would be the page that would ask me to input all of my credit card information - instead I received a page with the above error message.

 

I went to my "includes" folder to see if there was a file/form called funtions but did not see it, also looked for a file/form called general.php; however, all I saw was a file called general.js. Where would I go to look to correct the error I am getting?

 

You can test this yourself at www.rareimagination.com/store - just use the $1.00 test product and put in the shopping cart and try to check out.

 

Your help is greatly appreciated... I need to put an order through for a customer today.

 

Thanks! Kristen

 

 

Well, I found my own answer, after digging deeper in the file manager; however, I now have a new question...

It appears the error message referred to above is relating to the following:

 

<?php

/*

$Id: general.php,v 1.5.2.1 2005/06/12 00:04:16 Michael Sasek Exp $

 

osCMax Power E-Commerce

http://oscdox.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

////

// Stop from parsing any further PHP code

function tep_exit() {

tep_session_close();

exit();

}

 

////

// Redirect to another page or site

function tep_redirect($url) {

if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page

if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url

$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL

}

} <--- this is line 29 if I counted correctly, which is where the error message is pointing to. I have not touched this file at all, came standard with the install- am I supposed to do something to make this work?

 

Thanks Again - Kristen

Posted
Look in the Documentation under common problems. It's there.

 

Thanks for your help... Can you tell me if WordPad is an ok text editor to use when working with PHP? I have opened the files in question (per the instructions in Documentation under common problems, as you suggested) in both WordPad and NotePad ---- in WordPad there is a space after the end PHP tag (?>) which I removed, but then I wanted to check the original file in NotePad just to see if there was a difference, and I do not see a space after the end tag.

 

I am not sure if I am fixing my problem or creating a new one?

 

Thanks, Kristen

Posted

Get Notepad++ or Crimson Editor. I like Notepad++. It is very useul and intuitive for osC files. By the way, DON"T use the built in file manager for on osC. Get an FTP cient of your own. I use Filezilla for it; also esy and free like N++. Crimson Editor dos both for you! Something like Dreamweaver will do this, too, but costs $$$. Don't bother with design view though, you won't see much with php files.

Archived

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

×
×
  • Create New...