wiki problem

wiki problem

by Randy Vermaas -
Number of replies: 4

After I made a wiki-source I am not able to access it. I see these warnings:

Warning: wiki_to_html() [function.wiki-to-html]: open_basedir restriction in effect. File(/wiki.php) is not within the allowed path(s): (/usr/local/psa/home/vhosts/vermaas.org/httpdocs) in /usr/local/psa/home/vhosts/vermaas.org/httpdocs/opdc/lib/weblib.php on line 601

Warning: wiki_to_html(wiki.php) [function.wiki-to-html]: failed to create stream: Operation not permitted in /usr/local/psa/home/vhosts/vermaas.org/httpdocs/opdc/lib/weblib.php on line 601

Fatal error: wiki_to_html() [function.wiki-to-html]: Failed opening required 'wiki.php' (include_path='.:') in /usr/local/psa/home/vhosts/vermaas.org/httpdocs/opdc/lib/weblib.php on line 601

Could someone help me?

Thanks

Average of ratings: -
In reply to Randy Vermaas

Re: wiki problem

by Randy Vermaas -
still not working.......does someone have a solution?
In reply to Randy Vermaas

Re: wiki problem

by Eloy Lafuente (stronk7) -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Peer reviewers Picture of Plugin developers Picture of Testers
It seems to be some problems with certain apache configurations and php version. I've found this bug:

http://bugs.php.net/19292

I don't know if it will clarify your something but... smile

And one question:

What is the matter (brower output) if you change the line 601 of lib/weblib.php from:

require_once('wiki.php');

to:

require_once('./wiki.php');

or to:

require_once('../wiki.php');

or to:

require_once('/usr/local/psa/home/vhosts/vermaas.org/httpdocs/opdc/lib/wiki.php');

???

Ciao.
In reply to Eloy Lafuente (stronk7)

Re: wiki problem

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
I've changed the code to:

require_once("$CFG->libdir/wiki.php");

Hopefully this will always work.