From: Arno H. <aho...@in...> - 2001-01-01 22:50:36
|
> > If no FrontPage exists, files from pgsrc/ are *automatically* inserte= d > When I changed the db type to "mysql", it brought up a page that now ha= d > the "5 best links...." stuff at the bottom of the page, but it made no > attempt to load pgsrc into the db. (I concentrate on mysql here, filedb will be checked later) Just to get this right: you created all necessary tables as defined in th= e=20 schema script. Then you loaded the wiki URL and nothing happend? (apart=20 from a blank page?) Could you please verify the following: - does the page "FrontPage" exist in your wiki? (assuming English language wiki) - if not, is the function LoadZipOrDir() (file setupwiki.php) called? (insert a print into that function and you will see) - do you get errors when LoadZipOrDir() is executed? e.g. that the specified directory for pgsrc is not found? (change error reporting in config.php to error_reporting(E_ALL)) > Can you point me to the sources that do this autoloading please? LoadZipOrDir() in setupwiki.php does the initial loading. It is called from display.php when no FrontPage exists. You can execute t= he function directly as well, if you include stdlib.php & config.php first a= nd open a database like done in index.php. > A lot of warnings about undefineds: "id" and "hash" (this might be wron= g, > i'm doing it from memory - see the other email I sent Steve). was this in the filedb or mysql implementation? afaik I didn't clean up filedb. > It was complaing about a syntax error in the SQL statement. Synatx error would mean that the SQL statement is not executed.=20 I assume you don't mean that, do you? > I notice that the refs field in the wiki table ends up getting > set to "N;" which looks a bit odd. It's the way it should be: serialize() sets undefined variables to "N;"=20 whereas an empty array looks like "a:0:{}". Ok, one could argue we'd rath= er=20 have an empty array instead of an undefined variable. I'm going to look=20 into this. > Well, I didn't know it was supposed to autoload - sorry :). It would be > nice to expose the "load from text" that the autoload facility uses to > install from pgsrc. Shouldn't be too hard to add. Maybe we include this before 1.2. > I hope nobody mistook my wining for lack of appreciation! No - in that case I'd just ignore you :o) I'm happy about bug reports. Keep us informed. /Arno p.s. if possible please 'cc your replies to phpwiki-talk as well. That wa= y=20 we keep in sync with the other developers. If you intend to send more=20 emails I'd suggest you join that mailing list. It's low traffic. |