Joomla.it Forum

Joomla! 2.5 (versione con supporto terminato) => Joomla! 1.6/1.7/2.5 => : compadvd 11 Sep 2011, 11:49:37

: [RISOLTO]da remoto a locale-Warning: session_start
: compadvd 11 Sep 2011, 11:49:37
Buongiorno,
ho trasferito il mio sito da remoto a locale per alcuni test, tutto ok tranne questi errori:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\xampp\htdocs\www\configuration.php:1) in C:\xampp\htdocs\www\libraries\joomla\session\session.php on line 462

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\www\configuration.php:1) in C:\xampp\htdocs\www\libraries\joomla\session\session.php on line 462

nella riga 462 trovo: session_start();

:
Start session if not started
        if ($this->_state == 'restart') {
            session_id($this->_createId());
        } else {
            $session_name = session_name();
            if (!JRequest::getVar($session_name, false, 'COOKIE')) {
                if (JRequest::getVar($session_name)) {
                    session_id(JRequest::getVar($session_name));
                    setcookie($session_name, '', time() - 3600);
                }
            }
        }

        session_cache_limiter('none');
        session_start();

Come risolvo?
Grazie!
: Re:da remoto a locale-Warning: session_start
: mau_develop 11 Sep 2011, 12:10:42
stesso problema stessa soluzione

http://forum.joomla.it/index.php/topic,144317.msg642935.html#new
: [RISOLTO]Re:da remoto a locale-Warning: session_start
: compadvd 11 Sep 2011, 12:24:00
Ciao e grazie per la risposta, avevo trovato anch'io questo post ma non funzionava...ora ho messo come formato "codifica in UTF-8 (senza BOM)" e funziona. Non so cosa voglia dire ma funziona  ;) .
Grazie
: Re:[RISOLTO]da remoto a locale-Warning: session_start
: mau_develop 11 Sep 2011, 12:56:30
cerca BOM su wiki e capisci... in pratica se apri con un editor non adatto e con altre codifiche quando chiudi il sw "crea" delle sue righe in testa ... detto proprio terra terra :):)

M.