From: IFEROE <IF...@te...> - 2001-09-07 17:59:40
|
Hi I'm testing binarycloud with: Win2k Apache 1.3.14 (a bit outdated, I know) MySQL 3.23.32 PHP 4.0.4pl1 I have just downloaded BC from CVS and changed processprepend.php and xml2php.php to point to my php.exe. First run: I get a nice: Fatal error: Call to a member function on a non-object in G:/CYGWIN/BC/R2/BINARYCLOUD/build/en/binarycloud/core/Lang.php on line 365 For other mails I've read, I know where the problem is, so I add the missing 'global $Debug' to Lang.php. Now the index page loads ok. But I noticed a not very correct: Your current language is: BC_LANG_NAME But that should be for not being defined. I select "English" and after hitting "Set" button I get a more convincing: Your current language is: English. 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. Now, because I'm very interested in database access, it's time to try the query_example. I modify the datasources.xml.php to fit my configuration (odd to be named xml.php and not php.xml. It's a bit confusing.). 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?. I Load the data in MySQL and aunch browser (IE 5.5) to load query_example.php. Oops, I get: Warning: Failed opening 'G:/CYGWIN/BC/R2/BINARYCLOUD/build/en/user/mod/user/mod/query_ex ample/QueryExample.php' for inclusion (include_path='G:/CYGWIN/BC/R2/BINARYCLOUD/build/en/ext/pear') in ./prepend.php on line 44 Fatal error: Cannot instantiate non-existent class: queryexample in G:/CYGWIN/BC/R2/BINARYCLOUD/build/en/binarycloud/core/Page.php on line 139 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>. 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_interface.php on line 177 Strange, because seems to be a problem in metabase. But I doubt it, because I've used metabase before and works very well and without any problem. So I do some checking, and find out that the culprit is the includepath in datasource.xml.php. Right now its: <IncludePath>BC_PATH."ext/metabase"</IncludePath>. It seems that '.' after BC_PATH is not translated to "/" in win32, so what metabase gets as include path in my machine is G:/CYGWIN/BC/R2/BINARYCLOUD/build/enext/metabase. Of course, that makes SetupInterface() fails and metabase_mysql.php is not included, so PrepareQuery() is undefined. I fix it, but now I get another two errors: Warning: Cannot use a scalar value as an array in G:/CYGWIN/BC/R2/BINARYCLOUD/build/en/binarycloud/core/Page.php on line 161 Fatal error: Call to a member function on a non-object in G:/CYGWIN/BC/R2/BINARYCLOUD/build/en/binarycloud/core/Page.php on line 161 The line 161 of Page.php seems to be where the module output is processed. Perhaps the new problem is because of the changes I did? :-/. I give up by the moment ;-). Well, after all, I'm working with CVS code, so things like this are normal. Nevertheless, I should say that I'm very impressed by the high quality of binarycloud code. This stuff is cool!. And very well documented (although the documentation is a bit outdated compared with the actual CVS code). It's great to find people that actually THINKS before start coding. Not very usual nowadays. I look forward to use the final release. Great job!!. Happy binaryclouding :-) Salva PS: I will try to test it with IIS 5.0. If I do, I will send to this list what I found. ___________________________________________________________________ Consigue tu e-mail gratuito TERRA.ES Haz clic en http://www.terra.es/correo/ |