El otro día me ha dado este error
Warning (2): session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /usr/home/xxxx/web/app/controllers/usuarios_controller.php) in [/usr/home/xxxx/web/app/controllers/usuarios_controller.php, line 11]
El warning apunta a la linea 11, la última linea, pero que es lo que esta pasando? todo parece estar bien,no?!
<?php class UsusariosController extends AppController { var $uses = null; function perfil() { // toda la lógica } } ?> # en esta última linea hay un espacio!
Bueno pues resulta que en la línea 11 cuando seleccioné con mi ratón había un espacio en blanco, que es lo que estaba causando el warning.
Una vez eliminado el espacio en blanco, el warning desaparece!!
puff!! media hora con esta tontería, ya me estaba cabreando!!!
Tags de búsquedas:
Cannot send session cache limiter - headers already sent,Cannot send session cookie - headers already sent by,Warning: session_start() [function session-start]: Cannot send session cache limiter - headers already sent,Cannot send session cache limiter,Cannot send session cache limiter headers already sent,Warning: session_start(): Cannot send session cache limiter,cannot send session cache limiter - headers already sent (output started at,cannot send session cache limiter - headers already sent (output started,Warning: session_start() [function session-start]: Cannot send session cache limiter - headers already sent (output started at,session_start() [function session-start]: Cannot send session cache limiter - headers already sent (output started at,session_start() function session-start cannot send session cache limiter,session_start() [function session-start]: Cannot send session cache limiter - headers already sent,session_start() [function session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AppServ\www\practica2\Contactar php:1),can not send session cache,quitar Warning: session_start(): Cannot send session cache limiter
11 comentarios en error con sessiones: Cannot send session cache limiter – headers already sent