From: Andreas A. (Thyrell) <a.a...@th...> - 2001-09-07 09:53:17
|
Hi folks, did someone successfully run binarycloud on the windows platform? Especially: WinNT/2k IIS 5 PHP4 MySQL 3.xx I mean not running make, but the the maked binarycloud on the webserver? Any drawbacks, problems or specialities (except using driveletters in paths) ? Andi |
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/ |
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 |
From: Alex B. <en...@tu...> - 2001-09-07 19:41:54
|
> 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. oh. I'll commit that. I have no problem with is_default. > are not displayed. This is a problem to be solved. I think we might need to hook that stuff up to PEAR_Error. _a > 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 > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > https://lists.sourceforge.net/lists/listinfo/binarycloud-dev > |
From: Andreas A. (Thyrell) <a.a...@th...> - 2001-09-08 11:14:39
|
Hi Alex, >> 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. > oh. > I'll commit that. > I have no problem with is_default. what about just default? Andi |
From: alex b. <en...@tu...> - 2001-09-08 21:24:23
|
default is good. but if we do that, is_ isn't allowed anywhere in the def arrays. 8) _a ----- Original Message ----- From: "Andreas Aderhold (Thyrell)" <a.a...@th...> To: <bin...@li...> Sent: Saturday, September 08, 2001 3:24 AM Subject: RE: [binarycloud-dev] Binarycloud on WinNT, IIS, PHP4, MySQL > Hi Alex, > > > >> 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. > > > oh. > > I'll commit that. > > I have no problem with is_default. > > what about just default? > > Andi |
From: Andreas A. (Thyrell) <a.a...@th...> - 2001-09-09 00:38:28
|
Hi Alex, > default is good. > but if we do that, is_ isn't allowed anywhere in the def arrays. I have no problems with is_ or another descriptive naming. Important is to unify it in all def arrays. Andi ----- Original Message ----- > Hi Alex, > > > >> 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. > > > oh. > > I'll commit that. > > I have no problem with is_default. > > what about just default? > > Andi _______________________________________________ binarycloud-dev mailing list bin...@li... https://lists.sourceforge.net/lists/listinfo/binarycloud-dev |
From: Alex B. <en...@tu...> - 2001-09-09 00:48:49
|
> Hi Alex, > >> default is good. >> but if we do that, is_ isn't allowed anywhere in the def arrays. > > I have no problems with is_ or another descriptive naming. Important is to > unify it in all def arrays. In this case I prefer "default" :) -a |
From: Andreas A. (Thyrell) <a.a...@th...> - 2001-09-09 01:07:51
|
Hi Alex, >> I have no problems with is_ or another descriptive naming. Important is to >> unify it in all def arrays. > In this case I prefer "default" :) So I do :) Andi |
From: Alex B. <en...@tu...> - 2001-09-07 19:37:49
|
> 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 That's ok is cvs, now (the missing $Debug) > 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. Lang needs more testing.. :) > 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 That's a bug. Andi's fixing it this week, I think. The correct (and spec'd) naming scheme is the one you like (and I like, and everyone likes): .php.xml > be datasources.php removed from CVS? Yes, not quite yet :) > Perhaps I'm wrong, but seems to me > that it's never used. A orphan file of prexml2php times?. Yes. > 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!!. :) Doin' our best. As for scalar value: I fixed that. methinks it is time to do a 100% cvs sync. (You're seeing bugs I saw, and fixed, and commited, and synced). So... be right back. sync is done. I'll send a message. do an update :) _a > 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/ > > > _______________________________________________ > binarycloud-dev mailing list > bin...@li... > https://lists.sourceforge.net/lists/listinfo/binarycloud-dev > |
From: Andreas A. (Thyrell) <a.a...@th...> - 2001-09-08 11:14:39
|
Hi Alex, >> 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 > That's a bug. Andi's fixing it this week, I think. The correct > (and spec'd) naming scheme is the one you like (and I like, and > everyone likes): .php.xml yepp, I'll do next tuesdeay. Then I've enough time to do the changes. Andi |