Cant fill with sample data from batch

Discussion around this tutorial for symfony 1.0.x

Moderators: dwhittle, Ian

Cant fill with sample data from batch

Postby chester » Mon Jul 16, 2007 12:45 am

Hi everyone!
I'm new to symfony and i'm trying to build my own application based on the askeet tutorial.
There's an example to fill database with sample data from file in data/fixtures directory.
The problem is I can't make it because php throws an error:
Code: Select all
C:\usr\apache\httpd\html\hportal>php batch\load_data.php
PHP Fatal error:  Cannot redeclare class usermapbuilder in c:\usr\apache\httpd\h
tml\hportal\lib\model\map\UserMapBuilder.php on line 5

Fatal error: Cannot redeclare class usermapbuilder in c:\usr\apache\httpd\html\h
portal\lib\model\map\UserMapBuilder.php on line 5

Can anybody help ?

btw I'm running Windows php 5.0.2 if that helps
sorry for my engrish... It's not my fault ;)~ ;-)~ :wink:
chester
Junior Member
 
Posts: 19
Joined: Mon Jul 16, 2007 12:37 am

Re: Cant fill with sample data from batch

Postby chester » Sat Jul 21, 2007 10:55 am

I see nobody can help..
I changed php to 5.2.2 and now i got this error:
Code: Select all
Fatal error: Uncaught exception 'Exception' with message 'You must give a name for each fixture data entry' in C:\xampp\htdocs\symfony\lib\addon\propel\sfPropelData.class.php:101
sorry for my engrish... It's not my fault ;)~ ;-)~ :wink:
chester
Junior Member
 
Posts: 19
Joined: Mon Jul 16, 2007 12:37 am

Re: Cant fill with sample data from batch

Postby lajkonik86 » Sat Jul 21, 2007 11:37 am

Hey Chester,

Im quite new here as well. The power of the framework is great, but learning it can be a pain. As for the Askeet tutorial it is based on symfony 0.5 or something like that, it is pretty much totally outdated. Recommend you read the book, the first project tutorial, and the symfony tutorial on sitepoint
lajkonik86
Senior Member
 
Posts: 190
Joined: Fri Jun 15, 2007 11:22 am
Location: The Netherlands

Re: Cant fill with sample data from batch

Postby koriza » Tue Sep 04, 2007 11:58 pm

Clear cache:
$ symphony cc
And it will do it (at least worked for me).
koriza
Junior Member
 
Posts: 1
Joined: Tue Sep 04, 2007 11:56 pm

Re: Cant fill with sample data from batch

Postby symfonizer » Wed Mar 05, 2008 8:42 am

Try it after

php symfony clear-cache

. It worked for me too.
symfonizer
Junior Member
 
Posts: 1
Joined: Wed Mar 05, 2008 8:39 am


Return to askeet

Who is online

Users browsing this forum: No registered users and 0 guests