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

Warning: Trying to access array offset on value of type null in /home/.../wiki/lib/plugins/move/action/rename.php on line 42 #255

Closed
DavWai opened this issue Sep 14, 2023 · 4 comments

Comments

@DavWai
Copy link

DavWai commented Sep 14, 2023

This message appears when the page is open at first timme of the session.

Warning: Trying to access array offset on value of type null in /home/.../wiki/lib/plugins/move/action/rename.php on line 42

@kyjanond
Copy link

kyjanond commented Oct 2, 2023

+1

@kianworld
Copy link

+1. Appears when I'm logged out.

@mboehn
Copy link

mboehn commented Jan 22, 2024

This is the same issue as in #256

@nicola-myo
Copy link

It can be resolved checking the null value of the array $USERINFO adding before the line 42:
if (!is_null($USERINFO)) ...

dregad added a commit to dregad/dokuwiki-plugin-move that referenced this issue Apr 26, 2024
Warning: Trying to access array offset on value of type null in
./dokuwiki/move/action/rename.php on line 42

$USERINFO is null when user is not logged in.

Regression introduced by 0af31bb (michitux#246).

Fixes michitux#256, michitux#255
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

6 participants