Jump to content



Latest News: (loading..)

- - - - -

Help is needed please in Warning: session_start()


This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#-19   ziad

ziad
  • Members
  • 3 posts

Posted 12 April 2012 - 06:20 AM

Hello guys
every time i upload my oscommerce from my local WAMP to the web server online i get this error .....

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/cyber/public_html/ufix/index.php:2) in/home/cyber/public_html/ufix/includes/functions/sessions.php on line 102

anybody knows whats the problem??
you can check the error online :
http://67.212.187.26/~cyber/ufix/

#-18   Switch

Switch
  • Members
  • 8 posts

Posted 12 April 2012 - 06:25 AM

Check for extra whiespace or extra enters  at the top of  your index.php file. Usally before or right after the begining or ending php tags.

<?php  ?>

Edited by Switch, 12 April 2012 - 06:27 AM.


#-17   ziad

ziad
  • Members
  • 3 posts

Posted 12 April 2012 - 06:42 AM

Thank you very much
when i go to other page it will disappear but if i am trying to open it from another browser or other pc it will appear again

Edited by ziad, 12 April 2012 - 06:43 AM.


#-16   MrPhil

MrPhil
  • Members
  • 4,119 posts

Posted 12 April 2012 - 01:42 PM

The message is telling you exactly what's wrong. Your index.php should not be outputting anything to the browser on line 2, but for some reason it is. Most likely you've been hacked, and code added to the beginning of your index.php file to do something nasty. Check your index.php against a clean backup and see if something has been added at the top. If there's nothing malicious, did you do some editing or attempt to install an add-on? Editing errors either way can leave extra empty lines at the beginning or end of a file. Also look at the browser source (View > Page Source) and see if there is an error message at the very top of the page.

#-15   ziad

ziad
  • Members
  • 3 posts

Posted 15 April 2012 - 06:54 AM

Thank you very much guys ....... you were very helpful everything is working perfect now