bootstrap3 theme broken after recent update
- 
Hi all, Thank you for the default pages fix. I was just about to test it, when I noticed that the recent update broke (at least) the bootstrap3 theme, which is a very popular one. Package Version where the error was introduced: org.dokuwiki.cloudronapp@1.13.0-1 (also broken in org.dokuwiki.cloudronapp@1.13.1) Bootstrap3 theme is not working anymore since this Update. In the log I catch the following: Feb 01 10:04:39 [Wed Feb 01 09:04:39.781873 2023] [php:error] [pid 71] [client 172.18.0.1:50560] PHP Fatal error: Uncaught Error: Undefined constant "DOKU_INC" in /app/data/templates/bootstrap3/css.php:84\nStack trace:\n#0 {main}\n thrown in /app/data/templates/bootstrap3/css.php on line 84, referer: https://<url>/lib/exe/css.php?t=bootstrap3&tseed=<seed> Feb 01 10:04:39 <IP> - - [01/Feb/2023:09:04:39 +0000] "GET /lib/tpl/bootstrap3/css.php?f=bootstrap.css HTTP/1.1" 500 - "https://<url>/lib/exe/css.php?t=bootstrap3&tseed=<seed>" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" Feb 01 10:04:39 <IP> - - [01/Feb/2023:09:04:39 +0000] "GET /lib/exe/taskrunner.php?id=start%3Adocumentation%3Alearning%3Anetwork%3Ainterconnect&1675242279 HTTP/1.1" 200 42 "https://<url>/start/documentation/learning/network/interconnect?do=admin&page=config" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" Feb 01 10:04:39 [Wed Feb 01 09:04:39.954388 2023] [php:error] [pid 71] [client 172.18.0.1:50568] PHP Fatal error: Uncaught Error: Undefined constant "DOKU_INC" in /app/data/templates/bootstrap3/iconify.php:65\nStack trace:\n#0 {main}\n thrown in /app/data/templates/bootstrap3/iconify.php on line 65, referer: https://<url>?do=admin&page=config Feb 01 10:04:39 85.195.207.88 - - [01/Feb/2023:09:04:39 +0000] "GET /lib/tpl/bootstrap3/iconify.php?prefix=mdi&icons=check-circle HTTP/1.1" 500 - "https://<url>?do=admin&page=config" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0"Probably unrelated, but I also noticed these entries in the log: Feb 01 09:54:13 <IP> - - [01/Feb/2023:08:54:13 +0000] "GET /start HTTP/1.1" 200 3301 "https://<url>/start" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" Feb 01 09:54:20 [Wed Feb 01 08:54:20.371996 2023] [php:warn] [pid 68] [client 172.18.0.1:42250] PHP Warning: Undefined array key "gidnumber" in /app/data/plugins/authldap/auth.php on line 238, referer: https://<url>/start Feb 01 09:54:20 [Wed Feb 01 08:54:20.372042 2023] [php:warn] [pid 68] [client 172.18.0.1:42250] PHP Warning: Trying to access array offset on value of type null in /app/data/plugins/authldap/auth.php on line 238, referer: https://<url>/start
- 
Hi all, Thank you for the default pages fix. I was just about to test it, when I noticed that the recent update broke (at least) the bootstrap3 theme, which is a very popular one. Package Version where the error was introduced: org.dokuwiki.cloudronapp@1.13.0-1 (also broken in org.dokuwiki.cloudronapp@1.13.1) Bootstrap3 theme is not working anymore since this Update. In the log I catch the following: Feb 01 10:04:39 [Wed Feb 01 09:04:39.781873 2023] [php:error] [pid 71] [client 172.18.0.1:50560] PHP Fatal error: Uncaught Error: Undefined constant "DOKU_INC" in /app/data/templates/bootstrap3/css.php:84\nStack trace:\n#0 {main}\n thrown in /app/data/templates/bootstrap3/css.php on line 84, referer: https://<url>/lib/exe/css.php?t=bootstrap3&tseed=<seed> Feb 01 10:04:39 <IP> - - [01/Feb/2023:09:04:39 +0000] "GET /lib/tpl/bootstrap3/css.php?f=bootstrap.css HTTP/1.1" 500 - "https://<url>/lib/exe/css.php?t=bootstrap3&tseed=<seed>" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" Feb 01 10:04:39 <IP> - - [01/Feb/2023:09:04:39 +0000] "GET /lib/exe/taskrunner.php?id=start%3Adocumentation%3Alearning%3Anetwork%3Ainterconnect&1675242279 HTTP/1.1" 200 42 "https://<url>/start/documentation/learning/network/interconnect?do=admin&page=config" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" Feb 01 10:04:39 [Wed Feb 01 09:04:39.954388 2023] [php:error] [pid 71] [client 172.18.0.1:50568] PHP Fatal error: Uncaught Error: Undefined constant "DOKU_INC" in /app/data/templates/bootstrap3/iconify.php:65\nStack trace:\n#0 {main}\n thrown in /app/data/templates/bootstrap3/iconify.php on line 65, referer: https://<url>?do=admin&page=config Feb 01 10:04:39 85.195.207.88 - - [01/Feb/2023:09:04:39 +0000] "GET /lib/tpl/bootstrap3/iconify.php?prefix=mdi&icons=check-circle HTTP/1.1" 500 - "https://<url>?do=admin&page=config" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0"Probably unrelated, but I also noticed these entries in the log: Feb 01 09:54:13 <IP> - - [01/Feb/2023:08:54:13 +0000] "GET /start HTTP/1.1" 200 3301 "https://<url>/start" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" Feb 01 09:54:20 [Wed Feb 01 08:54:20.371996 2023] [php:warn] [pid 68] [client 172.18.0.1:42250] PHP Warning: Undefined array key "gidnumber" in /app/data/plugins/authldap/auth.php on line 238, referer: https://<url>/start Feb 01 09:54:20 [Wed Feb 01 08:54:20.372042 2023] [php:warn] [pid 68] [client 172.18.0.1:42250] PHP Warning: Trying to access array offset on value of type null in /app/data/plugins/authldap/auth.php on line 238, referer: https://<url>/start
- 
Hi all, Thank you for the default pages fix. I was just about to test it, when I noticed that the recent update broke (at least) the bootstrap3 theme, which is a very popular one. Package Version where the error was introduced: org.dokuwiki.cloudronapp@1.13.0-1 (also broken in org.dokuwiki.cloudronapp@1.13.1) Bootstrap3 theme is not working anymore since this Update. In the log I catch the following: Feb 01 10:04:39 [Wed Feb 01 09:04:39.781873 2023] [php:error] [pid 71] [client 172.18.0.1:50560] PHP Fatal error: Uncaught Error: Undefined constant "DOKU_INC" in /app/data/templates/bootstrap3/css.php:84\nStack trace:\n#0 {main}\n thrown in /app/data/templates/bootstrap3/css.php on line 84, referer: https://<url>/lib/exe/css.php?t=bootstrap3&tseed=<seed> Feb 01 10:04:39 <IP> - - [01/Feb/2023:09:04:39 +0000] "GET /lib/tpl/bootstrap3/css.php?f=bootstrap.css HTTP/1.1" 500 - "https://<url>/lib/exe/css.php?t=bootstrap3&tseed=<seed>" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" Feb 01 10:04:39 <IP> - - [01/Feb/2023:09:04:39 +0000] "GET /lib/exe/taskrunner.php?id=start%3Adocumentation%3Alearning%3Anetwork%3Ainterconnect&1675242279 HTTP/1.1" 200 42 "https://<url>/start/documentation/learning/network/interconnect?do=admin&page=config" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" Feb 01 10:04:39 [Wed Feb 01 09:04:39.954388 2023] [php:error] [pid 71] [client 172.18.0.1:50568] PHP Fatal error: Uncaught Error: Undefined constant "DOKU_INC" in /app/data/templates/bootstrap3/iconify.php:65\nStack trace:\n#0 {main}\n thrown in /app/data/templates/bootstrap3/iconify.php on line 65, referer: https://<url>?do=admin&page=config Feb 01 10:04:39 85.195.207.88 - - [01/Feb/2023:09:04:39 +0000] "GET /lib/tpl/bootstrap3/iconify.php?prefix=mdi&icons=check-circle HTTP/1.1" 500 - "https://<url>?do=admin&page=config" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0"Probably unrelated, but I also noticed these entries in the log: Feb 01 09:54:13 <IP> - - [01/Feb/2023:08:54:13 +0000] "GET /start HTTP/1.1" 200 3301 "https://<url>/start" "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/109.0" Feb 01 09:54:20 [Wed Feb 01 08:54:20.371996 2023] [php:warn] [pid 68] [client 172.18.0.1:42250] PHP Warning: Undefined array key "gidnumber" in /app/data/plugins/authldap/auth.php on line 238, referer: https://<url>/start Feb 01 09:54:20 [Wed Feb 01 08:54:20.372042 2023] [php:warn] [pid 68] [client 172.18.0.1:42250] PHP Warning: Trying to access array offset on value of type null in /app/data/plugins/authldap/auth.php on line 238, referer: https://<url>/start@gml said in bootstrap3 theme broken after recent update: Feb 01 10:04:39 [Wed Feb 01 09:04:39.954388 2023] [php:error] [pid 71] [client 172.18.0.1:50568] PHP Fatal error: Uncaught Error: Undefined constant "DOKU_INC" in /app/data/templates/bootstrap3/iconify.php:65\nStack trace:\n#0 {main}\n thrown in /app/data/templates/bootstrap3/iconify.php on line 65, referer: https://<url>?do=admin&page=config The above error is not PHP related though... I think it's because of a packaging issue, let me check. Dokuwiki plugins have this problem that they need to have be inside the main code repository paths . This makes updates quite a pain  
- 
@girish I haven't yet found out about the PHP compatibility of bootstrap3. 
 Were you able to track down the packaging issue?
- 
Hi @girish, sorry to resurrect an 18-month old thread but I thought it might be better than making a brand new thread. I'm experiencing the same issue with the latest version of Dokuwiki. I think it might be an issue with the bundled PHP version? Here's how the problem manifests using the Cloudron-packaged Dokuwiki:  That results in this error logs: Dec 30 14:33:18 [Mon Dec 30 21:33:18.755569 2024] [php:error] [pid 79] [client 172.18.0.1:32850] PHP Fatal error: Uncaught Error: Undefined constant "DOKU_INC" in /app/data/templates/bootstrap3/css.php:84\nStack trace:\n#0 {main}\n thrown in /app/data/templates/bootstrap3/css.php on line 84, referer: https://[REMOVED]/lib/exe/css.php?t=bootstrap3&tseed=a3c69f60143e699ab115489e1785128dHowever, when I install DokuWiki by hand using the LAMP stack app from Cloudron, the error doesn't present itself. The PHP versions seem to be off: 8.3.14(LAMP, working) vs8.1.2(DokuWiki package, not working).The LAMP:  The DokuWiki:  For testing purposes, would it help if I somehow manually updated the Cloudron-packaged Dokuwiki's PHP version to see if that changes things? I'd have to research doing that, but I'm happy to give it a try for learning's sake.  Thanks for all you do! 
- 
I just encountered the same issue. The main reason seems to be a hard-coded setting in the bootstrap3 plugin. 
 To make it work with the Cloudron-packaged app:- add the path /app/codeto the$doku_inc_dirsarray intemplates/bootstrap3/css.phpandtemplates/bootstrap3/iconify.php
- when setting the theme through the DokuWiki Admin panel, the following setting is added to /conf/local.php:
 
- add the path 
 
