Giter Site home page Giter Site logo

Comments (9)

apollo13 avatar apollo13 commented on August 22, 2024 1

Works great now, thanks!

from docker-dokuwiki.

apollo13 avatar apollo13 commented on August 22, 2024

I managed to fix this in a custom docker image by adding /var/www/fixes.php with this content:

<?php

if(!defined('DOKU_INC')) define('DOKU_INC', '/var/www/');

and adding a 02-fixes.sh for cont-init.d doing the following:

#!/usr/bin/with-contenv sh

# PHP
echo "Setting PHP INI configuration..."
sed -i "s|auto_prepend_file.*|auto_prepend_file = /var/www/fixes.php|g" /etc/php7/php.ini

This way the fixes.php is loaded for every request and DOKU_INC will always be defined. This way plugins do not have to guess where it is.

from docker-dokuwiki.

wgordon17 avatar wgordon17 commented on August 22, 2024

@crazy-max Any chance you can validate if this is something you could include? I'm seeing error messages about DOKU_INC as well

from docker-dokuwiki.

crazy-max avatar crazy-max commented on August 22, 2024

@apollo13 @wgordon17 Very sorry for the delay, can you test with crazymax/dokuwiki:edge? Thanks!

from docker-dokuwiki.

wgordon17 avatar wgordon17 commented on August 22, 2024

@crazy-max That unfortunately hasn't fixed the issue for me. My issue seems specific to the Dokuwiki Bootstrap3 template.

I am currently using this as a workaround: https://github.com/giterlizzi/dokuwiki-template-bootstrap3/blob/master/css.php#L18-L22

But I'm thinking I might actually just be better served by submitting a PR to the Bootstrap3 template for this specific path, similar to how they've done it for other Docker images: https://github.com/giterlizzi/dokuwiki-template-bootstrap3/blob/master/css.php#L27-L30

from docker-dokuwiki.

crazy-max avatar crazy-max commented on August 22, 2024

@wgordon17 Thanks for your feedback. Yeah it looks like the fix of @apollo13 is the best in this kind of situation. I will make the necessary changes.

from docker-dokuwiki.

crazy-max avatar crazy-max commented on August 22, 2024

Ok should be fixed now.

from docker-dokuwiki.

apollo13 avatar apollo13 commented on August 22, 2024

@crazy-max While testing for #25 I think you broken the edge repo with the latest commit in here:

2021/02/20 10:34:48 [error] 529#529: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  Unknown: failed to open stream: No such file or directory in Unknown on line 0PHP message: PHP Fatal error:  Unknown: Failed opening required '/var/www/preload.php' (include_path='.:/usr/share/php7') in Unknown on line 0" while reading response header from upstream, client: 127.0.0.1, server: , request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm7.sock:", host: "localhost:8000"

preload.php is in /var/www/inc in my container at least.

from docker-dokuwiki.

crazy-max avatar crazy-max commented on August 22, 2024

@apollo13 Sorry my bad.. I've triggered a new release to fix that: https://github.com/crazy-max/docker-dokuwiki/runs/1941489326?check_suite_focus=true

from docker-dokuwiki.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.