bobu Posted April 8, 2003 Share Posted April 8, 2003 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 More sharing options...
toolcrazy Posted April 8, 2003 Share Posted April 8, 2003 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 More sharing options...
bobu Posted April 8, 2003 Author Share Posted April 8, 2003 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 More sharing options...
bobu Posted April 8, 2003 Author Share Posted April 8, 2003 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 More sharing options...
toolcrazy Posted April 9, 2003 Share Posted April 9, 2003 I would talk to my host. It has something to do with PHP setup. Steve ------------------------- Link to comment Share on other sites More sharing options...
bobu Posted April 9, 2003 Author Share Posted April 9, 2003 What to talk about? Hey host wnna talk about an error in my php script? :) Link to comment Share on other sites More sharing options...
toolcrazy Posted April 9, 2003 Share Posted April 9, 2003 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 More sharing options...
toolcrazy Posted April 9, 2003 Share Posted April 9, 2003 One question: Did you or your host install OSC? Steve ------------------------- Link to comment Share on other sites More sharing options...
bobu Posted April 9, 2003 Author Share Posted April 9, 2003 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 More sharing options...
bobu Posted April 9, 2003 Author Share Posted April 9, 2003 Now I made a new installation and is working great. Maybe will help to The Man with the sollution. Where are you? :) Link to comment Share on other sites More sharing options...
bobu Posted April 9, 2003 Author Share Posted April 9, 2003 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 More sharing options...
bobu Posted April 9, 2003 Author Share Posted April 9, 2003 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 More sharing options...
Guest Posted April 29, 2003 Share Posted April 29, 2003 hi! I have the same problems...did anyone find a fix? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.