Sorry, I cleared my Symfony cache and the error complaining about a
missing module went away. I guess the 'symfony cc' could be earlier a
bit earlier in the instructions, just before the data load.
Unfortunately I'm one of those people who follow instructions to the
letter!
Now instead I get a duplicate record error: I've tried dropping all
tables and reloading, so they definitely start completely empty:
Looks like there is no need to copy the fixtures file anymore as it
seems to find both of them? Now that would be why the one in the
plugins directory is missing the .sample extension. So can the copy
fixtures step be removed from the instructions?
C:\>symfony propel-load-data frontend
>> propel load data from "C:\...\sfGuardPlugin\data\fixtures"
>> propel load data from "C:\...sfprojects\myapp\data\fixtures"
[PropelException]
Unable to execute INSERT statement. [wrapped: Could not execute
update [Native Error: Duplicate entry 'admin' for key 2] [User Info:
INSERT INTO sf_guard_user (USERNAME
,ALGORITHM,SALT,PASSWORD,CREATED_AT,IS_SUPER_ADMIN) VALUES
('admin','sha1','38944634f8dab81b9835ab94a81bb729','7be3886ef6a7cda7d7b06829bce5ceac85e12334','2008-04-03
01:23
:53',1)]]
On Apr 3, 1:57 am, Fabien POTENCIER <[EMAIL PROTECTED]
project.com> wrote:
> markchicobaby wrote:
> > Thanks Fabien, while you've got it top of mind could you also make
> > these corrections:
>
> > 1. The command
> > cp plugins/sfGuardPlugin/data/fixtures/fixtures.yml.sample data/
> > fixtures/sfGuard.yml
>
> > is still incorrect. The file "fixtures.yml.sample" is actually called
> > "fixtures.yml"
>
> fixed
>
>
>
> > 2. The dataload needs to be after the modules are enabled. It fails
> > unless the modules are enabled which in the instructions is the next
> > step, so its out of sequence.
>
> No, you don't need to enable any module to launch the data load. Can you
> give the error message you have?
>
>
>
> > 3. Finally the dataload assumes both a backend and fronted
> > application, ie, it assumes all modules are enabled, whereas the
> > instructions indicate the modules are optional. The dataload fails
> > with a nasty error message if any one of the modules isn't enabled.
>
> Same as above.
>
> Fabien
>
>
>
> > On Apr 2, 8:00 pm, Fabien POTENCIER <[EMAIL PROTECTED]
> > project.com> wrote:
> >> markchicobaby wrote:
> >>> Hi myself and a few others (see forum thread:
> >>>http://www.symfony-project.org/forum/index.php/m/32413/?srch=sfguard+...
> >>> )
> >>> are experiencing problems with sfGuard installation instructions.
> >>> Is this a bug or is it the installation instructions? (I can confirm
> >>> that at least this line on those instructions is incorrect as the
> >>> source file is incorrectly named. Also the fixtures target directory
> >>> doesn't exist unless a user specifically creates it:
> >>> cp plugins/sfGuardPlugin/data/fixtures/fixtures.yml.sample data/
> >>> fixtures/sfGuard.yml
> >>> )
> >> I've updated the README file.
>
> >>> I've also had problems getting the propel-insert-sql task to run (it
> >>> reports that it ran with no errors, but no tables are created)
> >> Check that your propel.ini file references correctly your database
> >> settings.
>
> >> Fabien
>
> >>> Should I log these as bugs, or is it just the docs.
> >>> M
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---