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" when migrating to PHP 8.1 #37

Closed
eduardomozart opened this issue Jan 31, 2023 · 2 comments

Comments

@eduardomozart
Copy link

eduardomozart commented Jan 31, 2023

Hello,

I upgraded my DokuWiki instance to PHP 8.1 (PHP 7.4 is deprecated now) and the following errors are being shown at the top of my Wiki:

Warning: Trying to access array offset on value of type null in /home/robertinho/public_html/wiki/lib/plugins/epub/action.php on line 104

Warning: Cannot modify header information - headers already sent by (output started at /home/robertinho/public_html/wiki/lib/plugins/dw2pdf/action.php:914) in /home/robertinho/public_html/wiki/inc/actions.php on line 38

Disabling the plug-in fixes the issue.

Please let me know if there's any information I can provide to troubleshoot and fix this issue.

@eduardomozart eduardomozart changed the title "Warning: Undefined array key 1" when migrating to PHP 8.1 "Warning: Trying to access array offset on value of type null" when migrating to PHP 8.1 Jan 31, 2023
turnermm added a commit that referenced this issue Jan 31, 2023
@turnermm
Copy link
Owner

See if this solves the problem. I can't really test since I am not yet running php 8

@eduardomozart
Copy link
Author

Applying your fix seems to dismiss the warning. Thank you!

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