Tartanpig Posted May 19, 2011 Share Posted May 19, 2011 I uploaded a new copy of the fucntions folder after finding some strange code in it " @@@@||@@@@" I now get the following warning - "Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/s/t/a/stacie1818/html/includes/functions/database.php:307) in /home/content/s/t/a//html/includes/functions/sessions.php on line 203" Can someone help me repair this ? Link to comment Share on other sites More sharing options...
burt Posted May 19, 2011 Share Posted May 19, 2011 "Strange code" doesn't just appear, as you know, so you have most likely been hacked - simply uploading old files may not have cured the problem. The doorway to your site (for the hackers) still exists. What you need to do is clean the site out, add security. See http://www.oscommerce.com/forums/topic/375288-updated-security-thread/ Link to comment Share on other sites More sharing options...
Tartanpig Posted May 19, 2011 Author Share Posted May 19, 2011 "Strange code" doesn't just appear, as you know, so you have most likely been hacked - simply uploading old files may not have cured the problem. The doorway to your site (for the hackers) still exists. What you need to do is clean the site out, add security. See http://forums.oscomm...ecurity-thread/ Burt Thanks for getting back to me I have cleaned out the site with the infection but the only way I could get rid of the "@@@@||@@@@" was to reload the functions file it would not delete otherwise. I have installed osc_sec to improve security. But I have this new problem . I'll check out http://forums.oscomm...ecurity-thread/ but still need help with the "Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/s/t/a/stacie1818/html/includes/functions/database.php:307) in /home/content/s/t/a//html/includes/functions/sessions.php on line 203" problem? Link to comment Share on other sites More sharing options...
germ Posted May 19, 2011 Share Posted May 19, 2011 Headers Already Sent Click the link above for an explanation. The problem is in /includes/functions/database.php (line 307) Most likely "whitespace(s)" at the end. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Tartanpig Posted May 20, 2011 Author Share Posted May 20, 2011 Thanks Guys It was white spaces that was the problem. Every file in the functions directory I reloaded had a line extra at the bottom. Cleared them and now works good. Will now add in the security features recommended Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.