Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cannot redeclare tep_session_start()


bobu

Recommended Posts

Hi,

 

How can i solve this error?

Fatal error: Cannot redeclare tep_session_start() (previously declared in /home/cldumitr/public_html/osc/includes/functions/sessions.php:67) in /home/cldumitr/public_html/osc/includes/functions/sessions.php on line 66

 

I tried to switch sessions to mysql and did not solved it.

Maybe someone will give me a hint or something.

 

Thank you in advance,

Bobu, Bucharest, Romania

Link to comment
Share on other sites

Is this a new instal or an exisiting one?

 

If it is a new install your host may have the auto_start_sessions set to true on the PHP.ini file. It needs to be set to false. There is a way to get around it with .htacess , but not sure of the code.

Steve

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

Link to comment
Share on other sites

It is a new install, 2 or 3 days old. I don`t know if it worked or not until now. The error apears only when i try to check out. The link of the error is http://imbracaminte.ro/osc/checkout_shipping.php.

 

I have read the posts in forums, and the documentation available for osc but i didn`t find a sollution to it.

 

When i switch to mysql for managing sessions also i get an error when i try to checkout:

 

Fatal error: Cannot redeclare _sess_open() (previously declared in /home/cldumitr/public_html/osc/includes/functions/sessions.php:18 in /home/cldumitr/public_html/osc/includes/functions/sessions.php on line 18

 

It seems that is something wrong with the code. If i enter this error to Google search i find several sites with the same error. Maybe it is a big issue. And maybe your site is next. Hope not! :)

 

I need some help to solve this problem.

 

Thanks.

Link to comment
Share on other sites

I checked the variables in php.ini at my isp and they are:

 

Session Support enabled

Registered save handlers files user

 

Directive Local Value Master Value

session.auto_start Off Off

session.bug_compat_42 On On

session.bug_compat_warn On On

session.cache_expire 180 180

session.cache_limiter nocache nocache

session.cookie_domain no value no value

session.cookie_lifetime 0 0

session.cookie_path /osc/admin /

session.cookie_secure Off Off

session.entropy_file no value no value

session.entropy_length 0 0

session.gc_dividend 100 100

session.gc_maxlifetime 1440 1440

session.gc_probability 1 1

session.name osCAdminsID PHPSESSID

session.referer_check no value no value

session.save_handler files files

session.save_path /tmp /tmp

session.serialize_handler php php

session.use_cookies On On

session.use_only_cookies Off Off

session.use_trans_sid On On

Link to comment
Share on other sites

I don't think it is OSC, it can not set sessions which is usally a config error on your host side. send them the first part of the error. If you haven't done any editing, IT is not OSC.

 

Fatal error: Cannot redeclare tep_session_start()

Steve

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

Link to comment
Share on other sites

I made agressive editing. And yes my provider have CPanel X v.6 that have an option to instal OSC automaticaly. I used this installation and it worked fine. Everything is working fine in my shop until i try to checkout when i`m logged as a user. I can`t figure what the problem is. All i know is several users have the same error, i used google to see that. Maybe someone has solved this and reads this postings. Maybe a developer has the answer. Who knows!? ;)

Link to comment
Share on other sites

Also from this new installation i copied the files in the old one:

 

checkout_shipping.php

- /application_top.php

- /classes/http_client.php

- /functions/sessions.php

 

And the error is still there.

 

I have osCommerce 2.2-CVS. My shop is in EURO and language is romana.php. I dont`t think this is the cause of the error.

 

Now i have the session in mysql and error is:

 

Fatal error: Cannot redeclare _sess_open() (previously declared in /home/cldumitr/public_html/osc/includes/functions/sessions.php:18) in /home/cldumitr/public_html/osc/includes/functions/sessions.php on line 18

Link to comment
Share on other sites

I observed another thing. When i switch from romanian to english i can check out. I understan that the problem is with redeclaring the same function. What files in romanian folder do i need to check out if i get this error trying to use http://imbracaminte.ro/osc/checkout_shipping.php link and i get this error.

 

I know i posted to many times but the problem is on the move is not a static one. :)) Maybe i`ll recive a feedback from a kindly user.

Link to comment
Share on other sites

  • 3 weeks later...

Archived

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

×
×
  • Create New...