plugins:userhomemenu:start

¡Esta es una revisión vieja del documento!


USERHOMEMENU Plugin

Este plugin es muy útil ya que permite a cada usuario tener su propio espacio dentro del wiki donde publica lo que quiera.

Para la versión actual, dokuwiki tiene una serie de warnings respecto al plugin

  1. Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 518
  2. Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\helper.php on line 235
  3. Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\helper.php on line 32
  4. Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 97
  5. Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 100
  6. Warning: Undefined array key “do” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 115
  7. Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 518
  8. Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 518

y esta es una forma de quitarlos, aunque hay que entrar en los archivos y editar algo de código:

  if (($_SERVER['REMOTE_USER'] ?? null) != null) {
if ((($_SERVER['REMOTE_USER'] ?? null) != null) && (!isset($_SESSION['uhptimestamp']))) {
    $_SESSION['uhptimestamp'] = time();
// If no user is logged in and a timestamp exists, set timestamp to null (ensures that redirection will work if user just logged out and comes back before closing browser)
} elseif ((($_SERVER['REMOTE_USER'] ?? null) == null) && (isset($_SESSION['uhptimestamp']))) {
    $_SESSION['uhptimestamp'] = null;
}
  • plugins/userhomemenu/start.1792960814.txt.gz
  • Última modificación: 2026/10/25 20:40
  • por webmaster