Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Session error


julia

Recommended Posts

Posted

Does anyone know why I could be getting these errors.

It is just on one page. Could be related to the fact that I just installed the SSL certificate. All of the pages I have that are linked from my header.php are showing as https://, but there isn't any practical reason for them to be.

 

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/littoncl/olivialitton-www/osCommerce/super100s.php:1) in /home/littoncl/olivialitton-www/osCommerce/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/littoncl/olivialitton-www/osCommerce/super100s.php:1) in /home/littoncl/olivialitton-www/osCommerce/includes/functions/sessions.php on line 67

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/littoncl/olivialitton-www/osCommerce/includes/functions/database.php:13) in /home/littoncl/olivialitton-www/osCommerce/includes/functions/database.php on line 13

 

Thanks!

Julie

Posted

Hi Julie,

 

looks like you may have more than one thing going on here, but let's start with the most obvious first.

 

The message :

 

output started at /home/littoncl/olivialitton-www/osCommerce/super100s.php:1

 

tells you something important. It means that some output to the browser was made in the file super100s.php that is messing things up - there cannot be any output to the browser before the session is started. Super100s.php is a new one on me, so I guess this is a contribution you have installed. You need to check this file to see if anything is being "echoed" out to the browser, or if there are any blank lines in there which are not enclosed by <?php ?> tags.

 

Hope this helps,

 

 

 

Mrk

Posted

Thanks Mark

 

The curious thing is that these are just some info pages and this page is an exact copy of 4 other pages that are working just fine.

Weird.

I'll go look through it again.

I just get this error the first time I look at the page

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/littoncl/olivialitton-www/osCommerce/includes/functions/database.php:13) in /home/littoncl/olivialitton-www/osCommerce/includes/functions/database.php on line 13

 

Thanks

  • 2 weeks later...
Posted

I am getting kicked out of session and have to log in very frequently. I have tried a mod its working but its giving me following error

 

 

Warning: Cannot modify header information - headers already sent by (output started at /home/www/houseofebook.com/templates/creloaded/main_page.tpl.php:10) in /home/www/houseofebook.com/includes/functions/general.php on line 29

 

 

Do you have any idea how to fix frequent logout / sessions ??

 

Naved

==============

Posted

Not an expert here by any means...but when I was getting the "Headers already sent error", I had uploaded a mainpage file into the language folder by accident.

Also, I had some links that weren't relative, and when I clicked on those pages it would log me out.

Julie

Posted

Network --> Knowledge Base --> Common Problems --> Cannot redeclare tep db connect

 

Vger

Thanks Mark

 

The curious thing is that these are just some info pages and this page is an exact copy of 4 other pages that are working just fine.

Weird. 

I'll go look through it again.

I just get this error the first time I look at the page

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /home/littoncl/olivialitton-www/osCommerce/includes/functions/database.php:13) in /home/littoncl/olivialitton-www/osCommerce/includes/functions/database.php on line 13

 

Thanks

Archived

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

×
×
  • Create New...