Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_redirect function error


dleturno

Recommended Posts

I am having trouble with two OSC installs. I am unable to login as a customer or access the admin login. When I attempt to log in as a customer i get a blank page and when i browse /admin/index.php I get a blank page. Now I know that means there is a PHP error somewhere. I traced the error back to tep_check_admin_login. It seems the tep_redirect fucntion is working correctly. I checked the server logs and saw several warnings about header info not being sent. I checked on that issue and read that extraneous whitespace will cause that. I removed the whitespace and still get the warning plus the blank page(s). Both sites are using SSL and have their own certs. CAN SOMEONE PLEASE HELP?!?!?! I was supposed to have these sites live Sunday but couldn't because of this issue. Thanks!

Link to comment
Share on other sites

I am having trouble with two OSC installs. I am unable to login as a customer or access the admin login. When I attempt to log in as a customer i get a blank page and when i browse /admin/index.php I get a blank page. Now I know that means there is a PHP error somewhere. I traced the error back to tep_check_admin_login. It seems the tep_redirect function is not working correctly. I checked the server logs and saw several warnings about header info not being sent. I checked on that issue and read that extraneous whitespace will cause that. I removed the whitespace and still get the warning plus the blank page(s). Both sites are using SSL and have their own certs. CAN SOMEONE PLEASE HELP?!?!?! I was supposed to have these sites live Sunday but couldn't because of this issue. Thanks!

Link to comment
Share on other sites

if you are on your own server, turn error reporting on. If your host does it for you, all the better, if not, throw together an xampp install locally to do so. Proper debugging without error message sis hard.

 

You said though you found some indication to the headers already sent issue. In most cases, 2 files are mentioned, and only one has the whitespace. In some cases though, one of the included files has the whitespace and is NOT mentioned. Try to remember when the site worked last and what you did since. Very common files are the 2 english.php or the 2 application_top.php files. You could get the error from 2 closing php tags also at the bottom of the file.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Thank you for the respone...

 

Below are the errors I receive:

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/webadmin/xxxx.com/html/admin/includes/functions/database.php:294) in /home/webadmin/xxxx.com/html/admin/includes/functions/sessions.php on line 133

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/webadmin/xxxx.com/html/admin/includes/functions/database.php:294) in /home/webadmin/xxxx.com/html/admin/includes/functions/sessions.php on line 133

 

Warning: Cannot modify header information - headers already sent by (output started at /home/webadmin/xxxx.com/html/admin/includes/functions/database.php:294) in /home/webadmin/xxxx.com/html/admin/includes/functions/general.php on line 86

Link to comment
Share on other sites

these can be cascading ... I'd check them from the bottom upwards for whitespace and/or double closing tag ... but only after I made sure application_top.php is fine.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

see what I mean? most of these were listed, so pretty obvious for checking. application_top.php is not listed. Do not even ask how long it took me to find when it first happened ;-)

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

general.php, too. ;)

 

iam newbie. i`ve same error.

 

 

 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\Program Files\xampp\htdocs\catalog\checkout_process.php:1) in C:\Program Files\xampp\htdocs\catalog\includes\functions\sessions.php on line 92

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files\xampp\htdocs\catalog\checkout_process.php:1) in C:\Program Files\xampp\htdocs\catalog\includes\functions\sessions.php on line 92

Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\xampp\htdocs\catalog\checkout_process.php:1) in C:\Program Files\xampp\htdocs\catalog\includes\functions\general.php on line 28

 

but i cant see any whit space on my application_top.php please explain me how can i fix that. sorry my bad english.

Link to comment
Share on other sites

Hi Rea,

 

you need an editor that shows you where your text ends. If you have an extra line after the line with the last code, delete those. I use TextPad (See my siggy).

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Hi Rea,

 

you need an editor that shows you where your text ends. If you have an extra line after the line with the last code, delete those. I use TextPad (See my siggy).

 

i`m very glads for your HELP!!! :thumbsup:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...