|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
just trying to run the tutorial and i get this errorI am trying to find a clean ORM for php4 and metastorage seems
interesting. However, trying to follow the tutorial, I am stuck trying to make the setup.php script actually create the database tables in my database. The following variables have been censored ;) Database "testdatabase" is completely empty. myuser:~/cms/setup > cat local_options.php <?php $global_options["database_connection"] = "mysql://dbuser:dbpass@.../testdatabase"; $global_options["database_name"] = "testdatabase"; # why define this twice? $global_options["create_database"] = false; $global_options["debug"]=1; ?> myuser:~/cms/setup > php ./install.php X-Powered-By: PHP/4.4.2 Content-type: text/html Error: Could not parse database schema file: it was not defined the table name property Line Column Byte index u39874628:~/cms/setup > ls .. article.php cms.php createarticleform.php setup articlesreport.php cms.schema forms web category.php cmsschema.php metabase writer.php u39874628:~/cms/setup > Anyone know what I'm doing wrong? Any help would be welcome. Tw1ggz Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/metal-dev/ <*> To unsubscribe from this group, send an email to: metal-dev-unsubscribe@... <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
|
|
Re: just trying to run the tutorial and i get this errorHello,
on 04/21/2006 09:23 AM tw1ggz said the following: > I am trying to find a clean ORM for php4 and metastorage seems > interesting. However, trying to follow the tutorial, I am stuck trying > to make the setup.php script actually create the database tables in my > database. > > The following variables have been censored ;) Database "testdatabase" > is completely empty. > > > myuser:~/cms/setup > cat local_options.php > <?php > > $global_options["database_connection"] = > "mysql://dbuser:dbpass@.../testdatabase"; > $global_options["database_name"] = "testdatabase"; # why define this > twice? The database_name option is to replace in the schema . The database_connection is an opaque connection string. For MySQL and other databases it contains the database name, but in some cases (like Oracle) it is not necessary. > $global_options["create_database"] = false; > $global_options["debug"]=1; > > ?> > myuser:~/cms/setup > php ./install.php > X-Powered-By: PHP/4.4.2 > Content-type: text/html > > Error: Could not parse database schema file: it was not defined the > table name property Line Column Byte index This is odd. Can you show the generated table definition where the error message points? I suspect that is due to some PHP 4.4 bug, although PHP 4.4.2 has fixed the most serious bugs. Did you try generating the code with PHP 4.3.x ? -- Regards, Manuel Lemos Metastorage - Data object relational mapping layer generator http://www.metastorage.net/ PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/metal-dev/ <*> To unsubscribe from this group, send an email to: metal-dev-unsubscribe@... <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
| Free Forum Powered by Nabble | Forum Help |