geekitude / dokuwiki-plugin-userhomepage

Dokuwiki plugin to automatically create user's homepage and/or namespace
https://www.dokuwiki.org/plugin:userhomepage
5 stars 9 forks source link

PHP Warning: Undefined array keys / userhomepage/action.php #48

Open jakubglowka opened 10 months ago

jakubglowka commented 10 months ago

On my dokuwiki the nginx error.log includes PHP Warnings like the following one for every page accessed by a user: "PHP message: PHP Warning: Undefined array key "do" in /config/dokuwiki/lib/plugins/userhomepage/action.php on line 115; PHP message: PHP Warning: Undefined array key "public" in /config/dokuwiki/lib/plugins/userhomepage/action.php on line 210; PHP message: PHP Warning: Undefined array key "private" in /config/dokuwiki/lib/plugins/userhomepage/action.php on line 214" How to correct it? Is it an issue connected with the dokuwiki "Jack Jackrum" incompatibility?

Installed version: 2022-08-29 PHP 8.2.13 (cli) (built: Nov 21 2023 20:24:08) (NTS) Release 2023-04-04a "Jack Jackrum"

Gadgetroch commented 6 months ago

same here

geekitude commented 6 months ago

Hi

I'll try to fix that but it will take a few weeks since my server died.

Sorry for the inconvenience

Le jeu. 11 avr. 2024, 13:17, Gadgetroch @.***> a écrit :

same here

— Reply to this email directly, view it on GitHub https://github.com/geekitude/dokuwiki-plugin-userhomepage/issues/48#issuecomment-2049460509, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACA5CCIC2YQ6TOEFXL2MIDLY4ZWOLAVCNFSM6AAAAABBM727E6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZGQ3DANJQHE . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

Gadgetroch commented 6 months ago

Can we continue to use this plugin or it's dangerous for dokuwiki ?

Gadgetroch commented 6 months ago

J'ai peut être une solution pour vous aider à debugger, pouvez-vous me contacter sur mon mail ? rocco.sette@gmail.com

geekitude commented 6 months ago

Honestly I can't respond to that, sorry 😕

Le jeu. 11 avr. 2024, 14:11, Gadgetroch @.***> a écrit :

Can we continue to use this plugin or it's dangerous for dokuwiki ?

— Reply to this email directly, view it on GitHub https://github.com/geekitude/dokuwiki-plugin-userhomepage/issues/48#issuecomment-2049556957, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACA5CCPJRYC2UYONTDW4RLTY4Z4VTAVCNFSM6AAAAABBM727E6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZGU2TMOJVG4 . You are receiving this because you commented.Message ID: @.***>

Gadgetroch commented 6 months ago

Voici les logs complets, si cela peut aider :

2024-04-11 12:24:20E_WARNING: Undefined array key "do"/config/dokuwiki/lib/plugins/userhomepage/action.php(115)
    #0 /config/dokuwiki/lib/plugins/userhomepage/action.php(115): dokuwiki\ErrorHandler::errorHandler()
    #1 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->redirect()
    #2 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #3 /app/www/public/inc/ActionRouter.php(91): dokuwiki\Extension\Event->advise_after()
    #4 /app/www/public/inc/ActionRouter.php(49): dokuwiki\ActionRouter->setupAction()
    #5 /app/www/public/inc/ActionRouter.php(62): dokuwiki\ActionRouter->__construct()
    #6 /app/www/public/inc/actions.php(19): dokuwiki\ActionRouter::getInstance()
    #7 /app/www/public/doku.php(131): act_dispatch()
    #8 {main}
2024-04-11 12:24:20E_WARNING: Undefined array key "public"/config/dokuwiki/lib/plugins/userhomepage/action.php(210)
    #0 /config/dokuwiki/lib/plugins/userhomepage/action.php(210): dokuwiki\ErrorHandler::errorHandler()
    #1 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->redirect()
    #2 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #3 /app/www/public/inc/ActionRouter.php(91): dokuwiki\Extension\Event->advise_after()
    #4 /app/www/public/inc/ActionRouter.php(49): dokuwiki\ActionRouter->setupAction()
    #5 /app/www/public/inc/ActionRouter.php(62): dokuwiki\ActionRouter->__construct()
    #6 /app/www/public/inc/actions.php(19): dokuwiki\ActionRouter::getInstance()
    #7 /app/www/public/doku.php(131): act_dispatch()
    #8 {main}
2024-04-11 12:24:20E_WARNING: Undefined array key "private"/config/dokuwiki/lib/plugins/userhomepage/action.php(214)
    #0 /config/dokuwiki/lib/plugins/userhomepage/action.php(214): dokuwiki\ErrorHandler::errorHandler()
    #1 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->redirect()
    #2 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #3 /app/www/public/inc/ActionRouter.php(91): dokuwiki\Extension\Event->advise_after()
    #4 /app/www/public/inc/ActionRouter.php(49): dokuwiki\ActionRouter->setupAction()
    #5 /app/www/public/inc/ActionRouter.php(62): dokuwiki\ActionRouter->__construct()
    #6 /app/www/public/inc/actions.php(19): dokuwiki\ActionRouter::getInstance()
    #7 /app/www/public/doku.php(131): act_dispatch()
    #8 {main}
2024-04-11 12:24:34E_WARNING: Undefined array key "REMOTE_USER"/config/dokuwiki/lib/plugins/userhomepage/helper.php(235)
    #0 /config/dokuwiki/lib/plugins/userhomepage/helper.php(235): dokuwiki\ErrorHandler::errorHandler()
    #1 /config/dokuwiki/lib/plugins/userhomepage/helper.php(21): helper_plugin_userhomepage->privateNamespace()
    #2 /config/dokuwiki/lib/plugins/userhomepage/action.php(93): helper_plugin_userhomepage->getPrivateID()
    #3 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->init()
    #4 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #5 /app/www/public/inc/Extension/Event.php(137): dokuwiki\Extension\Event->advise_after()
    #6 /app/www/public/inc/Extension/Event.php(200): dokuwiki\Extension\Event->trigger()
    #7 /app/www/public/doku.php(125): dokuwiki\Extension\Event::createAndTrigger()
    #8 {main}
2024-04-11 12:24:34E_WARNING: Undefined array key "REMOTE_USER"/config/dokuwiki/lib/plugins/userhomepage/helper.php(32)
    #0 /config/dokuwiki/lib/plugins/userhomepage/helper.php(32): dokuwiki\ErrorHandler::errorHandler()
    #1 /config/dokuwiki/lib/plugins/userhomepage/action.php(95): helper_plugin_userhomepage->getPublicID()
    #2 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->init()
    #3 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #4 /app/www/public/inc/Extension/Event.php(137): dokuwiki\Extension\Event->advise_after()
    #5 /app/www/public/inc/Extension/Event.php(200): dokuwiki\Extension\Event->trigger()
    #6 /app/www/public/doku.php(125): dokuwiki\Extension\Event::createAndTrigger()
    #7 {main}
2024-04-11 12:24:34E_WARNING: Undefined array key "REMOTE_USER"/config/dokuwiki/lib/plugins/userhomepage/action.php(97)
    #0 /config/dokuwiki/lib/plugins/userhomepage/action.php(97): dokuwiki\ErrorHandler::errorHandler()
    #1 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->init()
    #2 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #3 /app/www/public/inc/Extension/Event.php(137): dokuwiki\Extension\Event->advise_after()
    #4 /app/www/public/inc/Extension/Event.php(200): dokuwiki\Extension\Event->trigger()
    #5 /app/www/public/doku.php(125): dokuwiki\Extension\Event::createAndTrigger()
    #6 {main}
2024-04-11 12:24:34E_WARNING: Undefined array key "REMOTE_USER"/config/dokuwiki/lib/plugins/userhomepage/action.php(100)
    #0 /config/dokuwiki/lib/plugins/userhomepage/action.php(100): dokuwiki\ErrorHandler::errorHandler()
    #1 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->init()
    #2 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #3 /app/www/public/inc/Extension/Event.php(137): dokuwiki\Extension\Event->advise_after()
    #4 /app/www/public/inc/Extension/Event.php(200): dokuwiki\Extension\Event->trigger()
    #5 /app/www/public/doku.php(125): dokuwiki\Extension\Event::createAndTrigger()
    #6 {main}
2024-04-11 12:24:34E_WARNING: Undefined array key "REMOTE_USER"/config/dokuwiki/lib/plugins/userhomepage/action.php(518)
    #0 /config/dokuwiki/lib/plugins/userhomepage/action.php(518): dokuwiki\ErrorHandler::errorHandler()
    #1 /config/dokuwiki/lib/plugins/userhomepage/action.php(234): action_plugin_userhomepage->userOk()
    #2 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->acl()
    #3 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #4 /app/www/public/inc/ActionRouter.php(91): dokuwiki\Extension\Event->advise_after()
    #5 /app/www/public/inc/ActionRouter.php(49): dokuwiki\ActionRouter->setupAction()
    #6 /app/www/public/inc/ActionRouter.php(62): dokuwiki\ActionRouter->__construct()
    #7 /app/www/public/inc/actions.php(19): dokuwiki\ActionRouter::getInstance()
    #8 /app/www/public/doku.php(131): act_dispatch()
    #9 {main}
2024-04-11 12:24:37E_WARNING: Undefined array key "do"/config/dokuwiki/lib/plugins/userhomepage/action.php(115)
    #0 /config/dokuwiki/lib/plugins/userhomepage/action.php(115): dokuwiki\ErrorHandler::errorHandler()
    #1 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->redirect()
    #2 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #3 /app/www/public/inc/ActionRouter.php(91): dokuwiki\Extension\Event->advise_after()
    #4 /app/www/public/inc/ActionRouter.php(49): dokuwiki\ActionRouter->setupAction()
    #5 /app/www/public/inc/ActionRouter.php(62): dokuwiki\ActionRouter->__construct()
    #6 /app/www/public/inc/actions.php(19): dokuwiki\ActionRouter::getInstance()
    #7 /app/www/public/doku.php(131): act_dispatch()
    #8 {main}
2024-04-11 12:24:37E_WARNING: Undefined array key "public"/config/dokuwiki/lib/plugins/userhomepage/action.php(210)
    #0 /config/dokuwiki/lib/plugins/userhomepage/action.php(210): dokuwiki\ErrorHandler::errorHandler()
    #1 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->redirect()
    #2 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #3 /app/www/public/inc/ActionRouter.php(91): dokuwiki\Extension\Event->advise_after()
    #4 /app/www/public/inc/ActionRouter.php(49): dokuwiki\ActionRouter->setupAction()
    #5 /app/www/public/inc/ActionRouter.php(62): dokuwiki\ActionRouter->__construct()
    #6 /app/www/public/inc/actions.php(19): dokuwiki\ActionRouter::getInstance()
    #7 /app/www/public/doku.php(131): act_dispatch()
    #8 {main}
2024-04-11 12:24:37E_WARNING: Undefined array key "private"/config/dokuwiki/lib/plugins/userhomepage/action.php(214)
    #0 /config/dokuwiki/lib/plugins/userhomepage/action.php(214): dokuwiki\ErrorHandler::errorHandler()
    #1 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->redirect()
    #2 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #3 /app/www/public/inc/ActionRouter.php(91): dokuwiki\Extension\Event->advise_after()
    #4 /app/www/public/inc/ActionRouter.php(49): dokuwiki\ActionRouter->setupAction()
    #5 /app/www/public/inc/ActionRouter.php(62): dokuwiki\ActionRouter->__construct()
    #6 /app/www/public/inc/actions.php(19): dokuwiki\ActionRouter::getInstance()
    #7 /app/www/public/doku.php(131): act_dispatch()
    #8 {main}
2024-04-11 12:24:37E_WARNING: Undefined array key "do"/config/dokuwiki/lib/plugins/userhomepage/action.php(115)
    #0 /config/dokuwiki/lib/plugins/userhomepage/action.php(115): dokuwiki\ErrorHandler::errorHandler()
    #1 /app/www/public/inc/Extension/EventHandler.php(80): action_plugin_userhomepage->redirect()
    #2 /app/www/public/inc/Extension/Event.php(97): dokuwiki\Extension\EventHandler->process_event()
    #3 /app/www/public/inc/ActionRouter.php(91): dokuwiki\Extension\Event->advise_after()
    #4 /app/www/public/inc/ActionRouter.php(49): dokuwiki\ActionRouter->setupAction()
    #5 /app/www/public/inc/ActionRouter.php(62): dokuwiki\ActionRouter->__construct()
    #6 /app/www/public/inc/actions.php(19): dokuwiki\ActionRouter::getInstance()
    #7 /app/www/public/doku.php(131): act_dispatch()
    #8 {main}

Y'a t'il un moyen pour vous contacter de façon plus direct ?

Gadgetroch commented 6 months ago

Y'a t'il un moyen pour vous contacter de façon plus direct ?