material-dokuwiki icon indicating copy to clipboard operation
material-dokuwiki copied to clipboard

Compatibility to PHP 8+ and newer DokuWiki versions

Open TineUser opened this issue 1 year ago • 2 comments

Hi,

will there be a new version of this really nice template to be compatible to PHP 8+ and newer DokuWiki versions. I really like this template but after upgrading to PHP 8+ and a newer DokuWiki version I get warning messages on the sidebar:

Warning
: Undefined array key "REDIRECT_STATUS" in
C:\xampp-dev\htdocs\dokuwiki\lib\tpl\material\sidebar.php
on line
32

Warning
: Undefined array key "HTTP_X_REAL_IP" in
C:\xampp-dev\htdocs\dokuwiki\lib\tpl\material\sidebar.php
on line
34

Warning
: Undefined array key "HTTP_X_REAL_IP" in
C:\xampp-dev\htdocs\dokuwiki\lib\tpl\material\sidebar.php
on line
39

It would be great if I can use this template with the new versions of PHP and DokuWiki. Yes, I can hide the warning messages but I thnink this isn't the right way. If there are errors they should be solved.

Kind Regards

TineUser avatar Oct 10 '22 09:10 TineUser

I have the same issue:

( ! ) Fatal error: Uncaught Error: Call to undefined function tpl_getConf() in C:\wamp64\www\ngisdoc\lib\tpl\material\sidebar.php on line 13

AndrewKlasen avatar Feb 22 '24 03:02 AndrewKlasen

Hey, thank you both for your bug reports.

I agree that this is important and should be fixed. However, I'm no longer actively maintaining the template.

If you can resolve the issue, I would welcome a pull request.

LeonStaufer avatar Feb 22 '24 05:02 LeonStaufer