You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bin/plugin.php defines the constant: 12:define('NOSESSION', 1);. This prevents the inc/init.php from running 238:auth_setup() function. In the results the $auth global variable is not initialized. However, some plugins that uses cli components relies on that object. For example notification uses it in 170:helper.cron.php to get the e-mail addresses for users to send them notifications.
There probably are reasons for not initializing the $auth variable in the cli components. However, I think that there should be some method to get the users data inside cli components.
Version of DokuWiki
2024-02-06a "Kaos"
PHP Version
8.2
Webserver and version of webserver
No response
Browser and version of browser, operating system running browser
No response
Additional environment information
No response
Relevant logs and/or error messages
The text was updated successfully, but these errors were encountered:
The problem
bin/plugin.php
defines the constant: 12:define('NOSESSION', 1);. This prevents theinc/init.php
from running 238:auth_setup() function. In the results the$auth
global variable is not initialized. However, some plugins that usescli
components relies on that object. For example notification uses it in 170:helper.cron.php to get the e-mail addresses for users to send them notifications.There probably are reasons for not initializing the $auth variable in the
cli
components. However, I think that there should be some method to get the users data insidecli
components.Version of DokuWiki
2024-02-06a "Kaos"
PHP Version
8.2
Webserver and version of webserver
No response
Browser and version of browser, operating system running browser
No response
Additional environment information
No response
Relevant logs and/or error messages
The text was updated successfully, but these errors were encountered: