Jump to content

Проблема при переносе на хостинг


Recommended Posts

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/SITE.RU/data/www/SITE.RU/index.php:1) in /var/www/SITE.RU/data/www/SITE.RU/index.php on line 16

Ругается при переносе на хостинг. Можете помочь?

Link to post
Share on other sites

Ошибка скорее всего не совсем в хостере... Смысловое значение ошибки - нельзя сохдать сессию, если Вы до нее сделали вывод на страницу. Обычно такое возникает при предупреждениях или ошибках php (если конечно сами не сделали вывода в страницу). Давно работая с Симплой обратил внимание на предупреждения касательно кода php4 на серверах работаюших на php5. Обычно для решения достаточно добавить в корне index.php 2 строчки кода для скрытия предупреждений

ini_set("display_errors",0);
error_reporting(0);

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...