¡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
- Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 518
- Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\helper.php on line 235
- Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\helper.php on line 32
- Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 97
- Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 100
- Warning: Undefined array key “do” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 115
- Warning: Undefined array key “REMOTE_USER” in G:\xampp\0cms\dkCT\lib\plugins\userhomepage\action.php on line 518
- 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:
1 Línea 518, action.php
if (($_SERVER['REMOTE_USER'] ?? null) != null) {
2 Líneas 97 y 100, action.php
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; }