Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jakubglowka opened this issue Jan 4, 2024 · 7 comments
Open

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

jakubglowka opened this issue Jan 4, 2024 · 7 comments

Comments

@jakubglowka
Copy link

jakubglowka commented Jan 4, 2024

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
Copy link

same here

@geekitude
Copy link
Owner

geekitude commented Apr 11, 2024 via email

@Gadgetroch
Copy link

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

@Gadgetroch
Copy link

J'ai peut être une solution pour vous aider à debugger, pouvez-vous me contacter sur mon mail ? [email protected]

@geekitude
Copy link
Owner

geekitude commented Apr 11, 2024 via email

@Gadgetroch
Copy link

Gadgetroch commented Apr 11, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants