Foros del Web » Creando para Internet » Sistemas de gestión de contenidos »

Error en un CMS

Estas en el tema de Error en un CMS en el foro de Sistemas de gestión de contenidos en Foros del Web. Alguien podría decirme porque me sale éste error y como podría solucionarlo. Muchas gracias. Warning: Parameter 2 to PlumeSmartyPants::parseContent() expected to be a reference, value ...
  #1 (permalink)  
Antiguo 20/10/2011, 08:24
 
Fecha de Ingreso: mayo-2010
Mensajes: 43
Antigüedad: 13 años, 11 meses
Puntos: 0
Error en un CMS

Alguien podría decirme porque me sale éste error y como podría solucionarlo. Muchas gracias.

Warning: Parameter 2 to PlumeSmartyPants::parseContent() expected to be a reference, value given in C:\wamp\www\CASDA\plume\manager\inc\class.hook.php on line 42

El dódigo de la página class.hook.php
He leido que con PHP 5.3.3 no te tira el error, yo tengo wamp el PHP 5.3.0. Podría actualizarlo sin que se viera afectado lo que tengo ya hecho, las páginas, bases de datos etc.

<?php
/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
# ***** BEGIN LICENSE BLOCK *****
# This file is part of Plume CMS, a website management application.
# Copyright (C) 2001-2005 Loic d'Anterroches and contributors.
#
# Plume CMS is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# Plume CMS is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# ***** END LICENSE BLOCK ***** */

/**
* Hook.
*/
class Hook
{

/**
* Run a hook.
*
* @param string Hook to be run
* @param array Parameters
* @return bool Success
*/
function run($hook, $params=array())
{
$success = true;
if (!empty($GLOBALS['_PX_hook'][$hook])) {
foreach ($GLOBALS['_PX_hook'][$hook] as $key => $val) {
$res = call_user_func(array($val[0], $val[1]), $hook, $params);
if ($res === false) {
$success = false;
}
}
}
return $success;
}


/**
* Register a hook.
*
* @param string Name of the hook
* @param string Plugin name
* @param string Method of the plugin
* @return bool Success
*/
function register($hook, $plugin, $method)
{
if (!isset($GLOBALS['_PX_hook'])) {
$GLOBALS['_PX_hook'] = array();
}
if (!isset($GLOBALS['_PX_hook'][$hook])) {
$GLOBALS['_PX_hook'][$hook] = array();
}
$GLOBALS['_PX_hook'][$hook][] = array($plugin, $method);
return true;
}
}
?>

Es de un CMS que se llama pluma o penacho, y no me dá el error hasta que subo la noticia con la imagen.

Si alguien sabe algún sitio donde hablen del CMS, página, foro etc. si me lo puede indicar pues no encuentro mucho al respecto.

Muy agradecido

Última edición por NAVYGAR; 20/10/2011 a las 08:41
  #2 (permalink)  
Antiguo 20/10/2011, 08:53
Avatar de Patriarka  
Fecha de Ingreso: enero-2011
Ubicación: Moreno, Buenos Aires, Argentina
Mensajes: 2.851
Antigüedad: 13 años, 3 meses
Puntos: 288
Respuesta: Error en un CMS

mostranos esta funcion
Warning: Parameter 2 to PlumeSmartyPants::parseContent() expected to be a reference

Etiquetas: cms
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:12.