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

"/home/robertinho/public_html/wiki/inc/template.php on line 1805 dokuwiki mode_ tpl_readthedokus loggedIn notFound" #29

Closed
eduardomozart opened this issue Feb 1, 2023 · 2 comments

Comments

@eduardomozart
Copy link
Contributor

eduardomozart commented Feb 1, 2023

Hello,
I started using the Read the Dokus template. I'm running PHP 8.1 with the latest stable release (DokuWiki "Igor") and I'm receiving the following error message at the top of the popup page when opening the Media Uploader while editing a page:

/home/robertinho/public_html/wiki/inc/template.php on line 1805
dokuwiki mode_ tpl_readthedokus loggedIn notFound ">

image

@my17560
Copy link
Owner

my17560 commented Feb 2, 2023

I confirmed the warning messages. Seems like some messages were trimmed on your screen. Actually, I got these messages.

Warning: Undefined variable $fullscreen in /Users/masaki/Projects/bitsmist.com/public/lib/exe/mediamanager.php on line 124
/Users/masaki/Projects/bitsmist.com/public/inc/template.php on line 1805

There are two warnings and both of them come from Dokuwiki itself, not the template. So the author of Dokuwiki is responsible for these.

The quick fix below suppress the warnings, but I'm not sure if it's correct.

lib/exe/mediamanager.php line 13-17

    global $INPUT;
    global $lang;
    global $conf;
+    global $fullscreen;
    // handle passed message

int/template.php fix line 1805

-        (isset($INFO) && $INFO['exists']) ? '' : 'notFound',
+        (isset($INFO['exists']) && $INFO['exists']) ? '' : 'notFound',

@eduardomozart
Copy link
Contributor Author

eduardomozart commented Feb 2, 2023

Hello,
I've edited the inc/template.php file and the error seems to be fixed. I've suggested your code change to be applied at the DokuWiki source code, as can be seen here dokuwiki/dokuwiki#3873
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