[dokuwiki] Re: Error in current devel Release?
- From: Michael Klier <chi@xxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 27 Jun 2008 11:49:37 +0200
On Fri, Jun 27, 2008 at 10:59:22AM +0200, Andreas Gohr wrote:
> The problem is introduced by the new INIT event. To make that event
> work the load order of includes had to to be changed. The problem
> occurs when plugins load DokuWiki includes on their own. The simplest
> solution is to make those plugins to load the includes in theri
> constructor, not in the head of the file.
>
> But because this might break with a bigger number of plugins we might
> need to come up with a better solution.
>
> I think Chris and Michael wanted to write about it as well...
Yep, mail was scheduled for today, but you came first ;-).
I've been thinking about this for a while. The problem is that the global
event handler is initialized (loads all action plugins) whenever you source
inc/events.php, thus, in case for the DOKUWIKI_INIT event before the
initialization phase has finished.
However, it has to be initiazized at that point, cause otherwise we couldn't
register the DOKUWIKI_INIT event. So I think we hit a chicken egg problem
here. The only ways I see to avoid getting into trouble is a) remove the ev=
ent again or b) tell plugin authors to load their external libs at runtime. I
think any posibble other solution would probably require bigger changes in
the event system.
Best Regards,
Chi
--
Michael Klier
www: http://www.chimeric.de
jabber: chi@xxxxxxxxxxxxxxxxxx
key: http://downloads.chimeric.de/chi.asc
key-id: 0x8308F551
- Follow-Ups:
- [dokuwiki] Re: Error in current devel Release?
- From: Christopher Smith
- References:
- [dokuwiki] Error in current devel Release?
- From: Gerry Weißbach
- [dokuwiki] Re: Error in current devel Release?
- From: Gerry Weißbach
- [dokuwiki] Re: Error in current devel Release?
- From: Andreas Gohr
Other related posts:
- » [dokuwiki] Error in current devel Release?
- » [dokuwiki] Re: Error in current devel Release?
- » [dokuwiki] Re: Error in current devel Release?
- » [dokuwiki] Re: Error in current devel Release?
- » [dokuwiki] Re: Error in current devel Release?
- » [dokuwiki] Re: Error in current devel Release?
- » [dokuwiki] Re: Error in current devel Release?
- » [dokuwiki] Re: Error in current devel Release?
- [dokuwiki] Re: Error in current devel Release?
- From: Christopher Smith
- [dokuwiki] Error in current devel Release?
- From: Gerry Weißbach
- [dokuwiki] Re: Error in current devel Release?
- From: Gerry Weißbach
- [dokuwiki] Re: Error in current devel Release?
- From: Andreas Gohr