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

Undefined array key "REMOTE_USER" #7

Open
j-r-git opened this issue Jul 29, 2024 · 4 comments
Open

Undefined array key "REMOTE_USER" #7

j-r-git opened this issue Jul 29, 2024 · 4 comments

Comments

@j-r-git
Copy link

j-r-git commented Jul 29, 2024

Hello,

in the dokuwiki error log, I see lots of errors like:

lib/plugins/stale/helper.php(44) E_WARNING: Undefined array key "REMOTE_USER"

In a similar discussion here: https://forum.dokuwiki.org/d/21686-tplmod-e-warning-undefined-array-key-remote-user

the suggested solution is to replace $_SERVER['REMOTE_USER'] with $INPUT->server->str('REMOTE_USER') - maybe this helps here, too?

Best regards,

Jörg

@gerardnico
Copy link
Member

Are you on the last version?

Line 44 does not have any of the remote user call.

@j-r-git
Copy link
Author

j-r-git commented Jul 29, 2024

Thanks for your quick reply!

Hm - the extension admin page in my Dokuwiki installation does not show any update available. The official plugin page (https://www.dokuwiki.org/plugin:stale) has 2021-09-04 as the last version. This is also what I see in lib/plugins/stale/plugin.info.txt.

However here on GitHub it see that there is a version 2023-02-20 available. Should I install this version manually?

Anyway - the call is now in line 46.

Jörg

@gerardnico
Copy link
Member

May be a version conflict.

The call should not give any warning because it's followed by 2 questions mark.

Can you click on the update button to update it and check if you still get the warning?

@j-r-git
Copy link
Author

j-r-git commented Jul 30, 2024

Hi again,

I had already installed the new version manually, and there is silence in the logs since then. Apparently this has been fixed in the 2023-02-20 version, so sorry for the false alert and thanks very much for your help. Now I have to find out what's wrong with my dokuwiki update manager.

But most importantly: Thanks very much for this extremely helpful plugin!

Jörg

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

2 participants