Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/03/2015, 09:27
gonzacrus
 
Fecha de Ingreso: febrero-2011
Ubicación: Argentina
Mensajes: 21
Antigüedad: 13 años, 2 meses
Puntos: 0
Obtengo un error desconocido al loguearme en mi sitio

Buenos dias compañeros,

Tengo un problema al loguearme a mi sitio.

El error que me muestra es este.

Cita:
Fatal error: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Authorization" 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 "RUTA/AL/ARCHIVO" on line 27
Alguien sabe a que se refiere?

El contenido del archivo que menciona es el siguiente:

Cita:
<?php

// check if user is logged in
if (!isset($_SESSION['s_serverurl']) || (isset($_SESSION['s_serverurl']) && (strpos($_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'],$_SESSION['s_serverurl']) === false))) {
$path = $_SERVER['PHP_SELF'];
$pos = strrpos($path,"/");
$path = substr($path,0,$pos+1);

$error_page_code = "timeout";
if (!isset($NO_PAGE_FORWARD)) {
include GALAXYTOOL_ROOT."/secret/errorpage.php";
exit();
}
}
if (session_name() != preg_replace("/[^a-zA-Z0-9_]/i", "", GALAXYTOOL_ROOT)) {
exit("Session ID does not match. Session ID and name properly defined before session start?");
}
if (!isset($_SESSION['s_loggedin']) || ($_SESSION['s_loggedin'] == false)) {
$error_page_code = "timeout";
if (!isset($NO_PAGE_FORWARD)) {
include GALAXYTOOL_ROOT."/secret/errorpage.php";
exit();
}
}

// check if session belongs to an outdated Galaxytool version (before upgrade)
if (isset($_SESSION['s_auth']) && $_SESSION['s_auth']->get_logon_version() != VERSION) {
$error_page_code = "timeout";
if (!isset($NO_PAGE_FORWARD)) {
include GALAXYTOOL_ROOT."/secret/errorpage.php";
exit();
}
}

// Update last action time at DB if config file was loaded before; Config file is not loaded if no DB connection is required
// do not update last_action in ajax requests
if (strpos($_SERVER['PHP_SELF'], "/ajax_") === false) {
if (isset($_SESSION['s_auth']) && isset($utablename) && is_numeric($_SESSION['s_auth']->get_setting(iAuthorization::setting_userid))) {
$query = "UPDATE $utablename SET last_action=now() WHERE id=:user_id";
$stmt = DB::getDB()->prepare($query);
$stmt->bindValue(":user_id", $_SESSION['s_auth']->get_setting(iAuthorization::setting_userid));
$stmt->execute();
}
}

?>
Tengo una modificacion hecha que los datos de la base de datos en el archivo config los llama con la variable $_SESSION desde un archivo externo.

Un saludo!
Atte, Gonzalo.-