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 bool in /....../inc/Ui/Recent.php on line 165 #4235
Comments
Not sure about the root cause, but dokuwiki/inc/ChangeLog/ChangeLog.php Line 600 in a6016e3
bool or an array . In your case it must have returned a bool but unfortunately that case is not handled in: Line 156 in a6016e3
So yes, there is a bug here. Does it help to change Line 165 in a6016e3
if (($currentRevInfo['type'] ?? null) == DOKU_CHANGE_TYPE_DELETE) { in line 165? |
Yes, thank you. I fixed it as you said and solved the problem. |
This should be closed when the issue is fixed in DokuWiki.master. |
Fix dokuwiki#4235 Note: This class of problem, i.e. mismatch between documented return values vs. use of them in consumers, is somewhat prevalent and very hard to find unless they happen to trigger a warning or error. Fixing them as they come up is ok I guess but some sort of automated method to detect these would be great.
The problem
There is an error message.
Warning: Trying to access array offset on value of type bool in /....../inc/Ui/Recent.php on line 165
There is an error message.
I use 'Manage Access Control List'.
when I log in and open the Recent Changes page, I don't see an error message.
An error message appears when i open the Recent Changes page as a guest.
Version of DokuWiki
koas
PHP Version
8.3
The text was updated successfully, but these errors were encountered: