I set that line after forgetting it... and got the wiki to appear, but now i am getting the auth failed contact wiki admin thing... I think i will start over with step one again, just to make sure i did it right.
Make sure in conf/local.php you have the line: $conf['useacl'] = 1; I accidentally omitted that my first go round.
Also omitted from my initial posting, was conf/acl.auth.php <?php
/* allows all users to view wiki pages */
* @ALL 1
/* grant admin user all rights */
* @Administrator 16
/* grant member create & edit rights */
* @Member 8
?> That should make it all good to go.
Re: $CookieUserID = @$_COOKIE[$Configuration['COOKIE_USER_KEY']];
$VerificationKey = @$_COOKIE[$Configuration['COOKIE_VERIFICATION_KEY']]; I initially had issues that would not set the cookie user & verification key via $Context if the login was not persistent (ie. session only). I figured it out, but forgot to remove those lines.
I've eliminated those in my post above, and replaced:
if (($CookieUserID != '' && $VerificationKey != '')||($Context->Session->UserID > 0)) { withif ($Context->Session->UserID > 0) { It does the same exact thing, just dumps extraneous code.
$_SERVER['REMOTE_USER'] is how DokuWiki stores usernames. $row->Name; is that info from the database.
I'm just testing this, but it doesn't work! :-( I'm logged in at Vanilla, but DokuWiki thinks, I'm not! And if I try to login in at DokuWikis login screen, the screen allways just reloads! :-(
define('NOSESSION', true) somewhere in dokuwiki.php.
Anyway, I've written a new class for this purpose (ie. make DokuWiki use Vanilla authentication). The source is in the wiki at: vanilla:integration:dokuwiki
Works for me, I hope someone else will find it useful too.
Took me some time, until it realy worked, but now it runs like a rocket!
Thank you very much!
Tschüss
Tiggr (aka Marcus)
PS:
Forum: http://www.orgaohnenamen.de/forum
Wiki: http://www.orgaohnenamen.de/wiki
(I still have to do something about design...)
Just to let you know, the reason you get all the errors is because Vanilla sets it's error reporting to all, but Dokuwiki uses a bad practice and doesn't check if the variables are set first. To put it simply, it's a Dokuwiki bug. To fix it, you can change the core of Dokuwiki, or you can add error_reporting(0); after the require_once lines in vanilla.class.php
However, I can't log in. I get the same problem as Tiggr, but I've definitely got it in there (local.php actually, since that's where your settings should go).
I follow the instruction of the wiki page for integration of dokuwiki.
I think i have done correctly the instruction. first I had the problem with magic-quotes-gpc. i created a file htaccess whith this line : SetEnv MAGIC_QUOTES 0. it's ok
Comments
$conf['useacl'] = 1;
I accidentally omitted that my first go round.
Also omitted from my initial posting, was conf/acl.auth.php
<?php /* allows all users to view wiki pages */ * @ALL 1 /* grant admin user all rights */ * @Administrator 16 /* grant member create & edit rights */ * @Member 8 ?>
That should make it all good to go.
$CookieUserID = @$_COOKIE[$Configuration['COOKIE_USER_KEY']]; $VerificationKey = @$_COOKIE[$Configuration['COOKIE_VERIFICATION_KEY']];
I initially had issues that would not set the cookie user & verification key via $Context if the login was not persistent (ie. session only). I figured it out, but forgot to remove those lines.
I've eliminated those in my post above, and replaced:
if (($CookieUserID != '' && $VerificationKey != '')||($Context->Session->UserID > 0)) {
with
if ($Context->Session->UserID > 0) {
It does the same exact thing, just dumps extraneous code.
$_SERVER['REMOTE_USER'] is how DokuWiki stores usernames. $row->Name; is that info from the database.
The only line you should need to change is the path to Vanilla.
I'm just testing this, but it doesn't work! :-( I'm logged in at Vanilla, but DokuWiki thinks, I'm not! And if I try to login in at DokuWikis login screen, the screen allways just reloads! :-(
Tiggr
define('NOSESSION', true)
somewhere in
dokuwiki.php
.Anyway, I've written a new class for this purpose (ie. make DokuWiki use Vanilla authentication). The source is in the wiki at: vanilla:integration:dokuwiki
Works for me, I hope someone else will find it useful too.
To fix it, you can change the core of Dokuwiki, or you can add
error_reporting(0);
after the require_once lines in vanilla.class.php
However, I can't log in. I get the same problem as Tiggr, but I've definitely got it in there (local.php actually, since that's where your settings should go).
(sorry my english is not very good)
I follow the instruction of the wiki page for integration of dokuwiki.
I think i have done correctly the instruction. first I had the problem with magic-quotes-gpc. i created a file htaccess whith this line : SetEnv MAGIC_QUOTES 0. it's ok
Now, I obtain these error
have you a idea about that ?
Thank
I use vanilla 1.1.3 and dokuwiki 2007-06-26b
I add this line like rmccue :
error_reporting(0);
I don't have any mor error, but i don't believe the identification is working,
I'm coming back soon
All I have done is make the changes noted in the documentation file located here:
http://lussumo.com/docs/doku.php?id=vanilla:integration:dokuwiki
I've not been able to get it working. Right now, all I get is a blank screen when I try and go to the wiki.
Does anyone have more detailed steps... any order.. any things that need to be configured outside of those file changes... etc?
Thanks in advance
JB