Re: FluxBB Wiki

Hello,

I try to make Dokuwiki's authentification working with FluxBB (1.3 beta 2).

- I copied fluxbb.class.php (pasted the code from the first page of this topic)
- I edited dokuwiki's conf/local.php adding :

$conf['authtype']='fluxbb';
define('FORUM_ROOT','/data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/forum/');

Authentification works ! smile but I get loads of messages when displaying the page.

Notice: Undefined index: id in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 21

Notice: Undefined index: rev in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 24

Notice: Undefined index: do in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 25

Notice: Undefined index: idx in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 26

Notice: Undefined index: date in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 27

Notice: Undefined index: lines in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 28

Notice: Undefined index: s in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 29

Notice: Undefined index: query in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/inc/common.php on line 997

Notice: Undefined variable: q in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/inc/common.php on line 1007

Notice: Undefined index: wikitext in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 32

Notice: Undefined index: prefix in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 33

Notice: Undefined index: suffix in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 34

Notice: Undefined index: summary in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/doku.php on line 35

Notice: Undefined index: REMOTE_USER in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/inc/common.php on line 110

Notice: Undefined offset: 1 in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/inc/parserutils.php on line 251

Notice: Undefined index: ismanager in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/inc/infoutils.php on line 21

Notice: Undefined index: userinfo in /data/web/59/0e/7c/openarena.tuxfamily.org/htdocs/wiki/lib/plugins/indexmenu/action.php on line 60

Sorry for seeking support here rather than with Dokuwiki, but do you have ideas of what should I do ?

Edit: I forgot to mention, I use PostgreSQL, and php5 ( http://openarena.tuxfamily.org/phpinfo.php )

Thanks.

Last edited by Cacatoes (2008-07-25 11:57:14)

Re: FluxBB Wiki

That's because FluxBB, when in development, uses E_ALL error reporting. DokuWiki is using variables without ensuring that they are initialized first, which is triggering these notices. I assume Dokuwiki normally suppresses them.

Try adding the following to the bottom of the auth class as a temporary workaround (this won't be an issue once we're out of the testing phase, since we also suppress notices for just this reason):

error_reporting(E_ALL ^ E_NOTICE);

Re: FluxBB Wiki

That does the trick, thanks for the quick answer wink

Re: FluxBB Wiki

soory, but what does mean

Try adding the following to the bottom of the auth class as a temporary workaround

.

I have the same problem than cacatoes and i putted

error_reporting(E_ALL ^ E_NOTICE);

in the end of the auth conf, but just a few messages have desapeared.

Re: FluxBB Wiki

You put it in the auth file that you created, right?

Re: FluxBB Wiki

... no ....  i've putted it in the bottom of a file called : acl.auth.php

did i make a mystake?

Re: FluxBB Wiki

Yes. I suggested putting it at the end of the FluxBB authentication layer file.

Re: FluxBB Wiki

so, i did it but it doesn't work.

look at here : http://vinhduc.free.fr/dokuwiki/doku.php

Re: FluxBB Wiki

Then you didn't put it in the right place. Show me the contents of your file.

Re: FluxBB Wiki

which file? auth conf?

# acl.auth.php
# <?php exit()?>
# Don't modify the lines above
#
# Access Control Lists
#
# Auto-generated by install script
# Date: Thu, 07 Aug 2008 16:01:29 +0200
*               @ALL          1
*               @user         8
error_reporting(E_ALL ^ E_NOTICE);

Re: FluxBB Wiki

vinhduc wrote:

... no ....  i've putted it in the bottom of a file called : acl.auth.php

did i make a mystake?

Smartys wrote:

Yes. I suggested putting it at the end of the FluxBB authentication layer file.

Like I said, that's the wrong file.

Re: FluxBB Wiki

i'm sorry, but in what file have i got to put this code? i don't know what is a auth class

( i'm french...)

Re: FluxBB Wiki

http://fluxbb.org/forums/post/367/#p367
The code from here that you copy/pasted.

Re: FluxBB Wiki

It seems to work now !!! thank you smartys and sorry for my bad comprehension in english tongue

Re: FluxBB Wiki

Smartys wrote:
Adam wrote:

Trac has a built-in wiki. Why not use that?

Because integration is a huge hassle.

Now that Trac has been intergrated with Flux, are we still keeping dokuwiki or are we porting everything to Trac?

Re: FluxBB Wiki

I think we'll keep dokuwiki, I see no reason not to, and I don't know if theres any support for internationalisation with trac.