demianturner / sgl-docs-tickets-migration-test

0 stars 0 forks source link

dbdo fails to generate entities for pgsql #445

Open demianturner opened 11 years ago

demianturner commented 11 years ago

If you check out the 0.4.x stable branch from SVN, the var/cache/entities/ directory is empty. This prevents the user from logging in, and Seagull fails with the error that says Login.php could not be found.

Solution: pre-populate and check in these missing files, which are generated by DB_DataObject.

demianturner commented 11 years ago

[jsheth] Oops - I think I made a mistake here in my original description. For whatever reason, the installer did not create these files (unless I failed to check the correct option during installation).

demianturner commented 11 years ago

[jsheth] I get the following error when I try to log in:

DB_DataObject Error: Unable to load schema for database and table (turn debugging up to 5 for full error message)

demianturner commented 11 years ago

[jsheth] Workaround (Thanks to AJ):

Copy Module.php from an existing entities dir into the entities dir first

Disable authorization in var/.default.conf.php and goto index.php/maintenance/action/dbgen

Click on 'rebuild dataobjects'.

I am not sure why the installer did not do this ... ?!

demianturner commented 11 years ago

[demian] hiya jsheth

you need to point out that you're using pgsql, not many users are and they don't get this prob. i just installed pg recently, not sure if i will get time to look into it, but i can guarantee prob will be a constraint failure, therefore sql loading failure, therefore db_dataobject loading failure. let me know if you find the particulars.

demianturner commented 11 years ago

[jsheth] Hi owner/Demian,

Yes this occurs on PostgreSQL. Sorry, I should have mentioned that. I will investigate this problem, and try to find out which constraint is failing, and how to fix it. Thanks for categorizing it.

My other (redone) patches for 0.4.8 are on the way. I will open tickets as necessary for each bug fix and corressponding patches.