This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.

Closed
Fixed

FS#999 Problem with preg_grep in inc/auth.php

ACL & Authentication

2006-12-13maximus

I don't know if this ist the right place, but the problem comes out of a dokuwiki-file, so I try it here ;-). I'm using Esthers Blog-Plugin, but on the Page where I'm including the blogindex, following errors are displayed:

Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/tuxpeople.org/subdomains/thomas/httpdocs/page/inc/auth.php on line 336

If I'm logged in, this error will not ppear, but no entry would be displayed. Is this a Blog-Plugin-Problem or a Dokuwiki-Problem? And if the problem is Dokuwiki related, what Informations do you need? PHPinfo can be found here: http://thomas.tuxpeople.org/inf.php

2006-12-13andi

Hmm this error suggests that the blog plugin submits an uncleaned ID to the auth_aclcheck function. This should be fixed by Esther. But it also suggests that you provide wrong data in the call to the blog plugin. What syntax do you use in the blogindex page?

2006-12-13maximus

This is the whole content:

~~NOTOC~~
{{blog>:blog/posts?20}}

The following is the code to create the feed, and this works: {{blogfeed>:blog/posts?10|Testfeed}}
Because of this, I'm sure that the namespace is correct.

I've tried it. Now, the errors are not longer displayed, but also no entrys. But this is probably not dokuwikis fault.

Thank you

2006-12-14Esther

Hi Thomas

Andi is right, the preg_grep() error stems from not cleaning the namespace. The Feed Plugin didn't have the same bug, that's why there were no problems with the feed. I've fixed the bug in the development code of the Blog Plugin and will release a bugfix release tomorrow.

The second problem (no entries appearing) stems from another bug I just fixed: a false setting of the cache if the Blog Plugin didn't find any entries. Try the following: {{blog>blog:posts?20}} (the first colon is not necessary). The renderer will rebuild the page then. - Hopefully this is already enough for your entries to appear again.