Switching to Bootstrap3 theme breakes the page; error message "Problem with DOCU_INC directory."
-
Hi,
I have just installed Dokuwiki. After I changed config to make my account an admin, I have installed bootstrap3 theme sucessfully. However, once I switched to bootstrap3 theme, page is "broken" and there is this notion with red background on the top of the page: "Problem with DOCU_INC directory. Please check your Dokuwiki installation directory!"
Any suggestions? Thank you.
Martin -
Do you see any 404 errors on the browser side or errors on the app/server side which might give some hints?
@nebulon No 404 error on the browser side - it just seems as a page with wrong css (content is there but formatting is wrong). In the log, there are following warnings/errors.
Dec 13 20:45:52 [Mon Dec 13 19:45:52.454391 2021] [php7:warn] [pid 274] [client xxx] PHP Warning: Use of undefined constant DOKU_INC - assumed 'DOKU_INC' (this will throw an Error in a future version of PHP) in /app/data/templates/bootstrap3/iconify.php on line 65, referer: https://xxx/ Dec 13 20:45:52 [Mon Dec 13 19:45:52.454500 2021] [php7:warn] [pid 274] [client xxx] PHP Warning: require_once(DOKU_INCinc/init.php): failed to open stream: No such file or directory in /app/data/templates/bootstrap3/iconify.php on line 65, referer: xxx Dec 13 20:45:52 [Mon Dec 13 19:45:52.454512 2021] [php7:error] [pid 274] [client xxx] PHP Fatal error: require_once(): Failed opening required 'DOKU_INCinc/init.php' (include_path='.:/usr/share/php') in /app/data/templates/bootstrap3/iconify.php on line 65, referer: xxx -
@nebulon No 404 error on the browser side - it just seems as a page with wrong css (content is there but formatting is wrong). In the log, there are following warnings/errors.
Dec 13 20:45:52 [Mon Dec 13 19:45:52.454391 2021] [php7:warn] [pid 274] [client xxx] PHP Warning: Use of undefined constant DOKU_INC - assumed 'DOKU_INC' (this will throw an Error in a future version of PHP) in /app/data/templates/bootstrap3/iconify.php on line 65, referer: https://xxx/ Dec 13 20:45:52 [Mon Dec 13 19:45:52.454500 2021] [php7:warn] [pid 274] [client xxx] PHP Warning: require_once(DOKU_INCinc/init.php): failed to open stream: No such file or directory in /app/data/templates/bootstrap3/iconify.php on line 65, referer: xxx Dec 13 20:45:52 [Mon Dec 13 19:45:52.454512 2021] [php7:error] [pid 274] [client xxx] PHP Fatal error: require_once(): Failed opening required 'DOKU_INCinc/init.php' (include_path='.:/usr/share/php') in /app/data/templates/bootstrap3/iconify.php on line 65, referer: xxx -
@neki looks like it misses some files. Were there maybe any further install steps required? I have never attempted to install a theme in Dokuwiki...
-
@nebulon I tried both extension manager and manual install from zip file with the same result. There are no other steps. Just to be sure, I have installed another theme and it worked fine.
-
@neki then you may have to contact the upstream developers about this. If you do, maybe you can paste the link to the upstream issue here for reference.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login