ComboStrap / stale

A Dokuwiki plugin to make the cache stale by touching configuration files
GNU General Public License v2.0
2 stars 1 forks source link

Undefined array key "REMOTE_USER" #7

Open j-r-git opened 1 month ago

j-r-git commented 1 month ago

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 commented 1 month ago

Are you on the last version?

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

j-r-git commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

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