![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
11/05/2009, 18:50
|
| | Fecha de Ingreso: diciembre-2007
Mensajes: 218
Antigüedad: 17 años, 2 meses Puntos: 1 | |
Respuesta: Error: Warning: session_start() Saludos,
Si lo pongo en la pagina main.php me manda este error:
Fatal error: main() [<a href='function.main'>function.main</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "carrito" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/compadig/public_html/paginas/cabecera.php on line 45
en esa linea yo llamo a una clase de session, la estructura d emi pagina es esta:
main.php
___________________________
| cabecera.php |
|_________________________ |
| | |
| menu | |
| lateral | |
| .php | |
|______|___________________|
| |
|pie_pagina.php |
|__________________________|
en cabecera.php antes del htm incluyo lib_carrito.php el cual contiene en la primera linea la instrucion session_star(); lo raro es q en el hosting anterior me funcionaba ok y ahora q cambie de hostin me manda el error. |