From: Andreas A. (Thyrell) <a.a...@th...> - 2001-09-07 18:29:44
|
Hi Salva, > Nice :-). And no more errors. Seems to me that the first problem > was having 'lang' defined as true in index page but not yet any > language selected by default, but once selected, all is ok. Thats a problem in the Langs.xml.php. The XML Tag <is_default> is not right, <flag_default> is interpreted by the Lang class. It's just a mismatch between the xml def and the Lang class. > I modify the datasources.xml.php to fit my configuration > (odd to be named xml.php and not php.xml. It's a bit > onfusing.). BTW, shouldn't be datasources.php removed from CVS? > Perhaps I'm wrong, but seems to me that it's never used. A > orphan file of prexml2php times?. You're absolutely right. This will be changed soon. >Let's see QueryExample.php. At first glance, seems to be a path >problem. The "/user/mod/user/mod" it's very suspicious, so I >change "query_example.xml.php" to remove the user.mod. in ><package>. Note: The query_example.xml.php works not quite correct. Please copy the query_example.php from the source tree, for now. Better now. Now I only get this error: > Fatal error: Call to undefined function: preparequery() in > G:/CYGWIN/BC/R2/BINARYCLOUD/build/en/ext/metabase/metabase_inter> face.php > on line 177 That's a DB setup problem. Something is wrong in datasources. We cant get metabase error messages from QueryManager without letting the script die. The errors are captured but metabase dies somewhere and the debug messages are not displayed. This is a problem to be solved. Try to echo error messages in QueryManager manually (PrepareConnection() method) to see whats going wrong. > Right now its: > <IncludePath>>BC_PATH."ext/metabase"</IncludePath>. Right would be <IncludePath>BC_PATH."/ext/metabase"</IncludePath>. > It seems that '.' after BC_PATH is not translated to "/" in > win32, so so it isnt on Unix. Its a string append operator. It like $string .= "String2" The error is the missing / in the defintion file > Warning: Cannot use a scalar value as an array in > G:/CYGWIN/BC/R2/BINARYCLOUD/build/en/binarycloud/core/Page.php > on line 161 That's because XML2PHP does not behave right. The translation of Page Definitions is faulty. Again, manually copy the files from the source tree. > I give up by the moment ;-). Well, after all, I'm working > with CVS code, so things like this are normal. I've much stress at the moment so I don't have much time for bc. I'll fix all this in the middel of next week. > PS: I will try to test it with IIS 5.0. If I do, I will send to > this list what I found. Cool. Looking forward to hear the results.. Andi |