[symfony-users] 500 internal server error

2010-12-06 Thread jyoti
Hi I have made a symfony project on my svn server . When I submit the form which reads user details , I get the following error message page not found Oops an error occured The server returned a 500 internal server error Something is broken. This error message I get 1 out of 5 times. This i

[symfony-users] Learning Symfony2 is difficult because...

2010-12-06 Thread Flukey
I've been doing a lot of fiddling around with Symfony2 (latest PR4 release) and reading a lot of it's documentation (I've read pretty much all of it) The problem i'm faced with now, are the best practices. I've looked at many of the bundles/projects source on symfony2bundles.org and they all have

[symfony-users] how to check if a form contains the expected value

2010-12-06 Thread Don_Busi
Hi everybody, I'm trying to write functional test for a form in my symfony (1.4) application. ...and I am strugling to test the values of forms. :-( How can I test if the "response" contains the right values pre-set in the formfields. I tried the following, but it doesn't work: $browser-> with

[symfony-users] Re: Routing with sf_method question

2010-12-06 Thread Michael Smith
Not really. I am using sf1.4. I have it basically like that post and similar to the job_create: section in the jobeet tutorial http://www.symfony-project.org/jobeet/1_4/Doctrine/en/05#chapter_05_collection_route_class but without using an object route. The lead_import_upload route is always called

[symfony-users] The error is not showed in the backend

2010-12-06 Thread Javier Garcia
Hi, I have these models: user: name: { type: varchar(255) } age: { type: integer } article: title:{ type: varchar(255) } content: { type: varchar(255) } user_id: { type: varchar(255) } I have this generator.yml list: display: [ti

[symfony-users] Re: Doctrine2, Date and Oracle

2010-12-06 Thread jwage
Hi, That is the way I was going to recommend. Setting it in your env variables. As for the error, it is related to using a date as an id. It is a DateTime object and is trying to be used as the key of an array in the UnitOfWork. Benjamin or Roman will have to comment on this. - Jon On Dec 6, 1

[symfony-users] Re: inject a dependency in constructor at runtime

2010-12-06 Thread Florian
Ok I should have reformulated my question: I know it's actually impossible to do that, but the goal of my question is: How to bypass the problem ? Do I have to modify the lib to work with setters injection ? On Dec 6, 8:59 pm, Florian wrote: > Hi, > > simple question: > > Is it possible to inje

[symfony-users] [DI] inject a dependency in constructor at runtime

2010-12-06 Thread Florian
Hi, simple question: Is it possible to inject dependency at runtime with SF2 DI container ? For example, I'm using a Zend\Paginator\Paginator who needs an adapter as first argument of its constructor. This adapter needs a Doctrine Query object as first argument of its constructor too. Can I inj

Re: [symfony-users] Prompt for Extended Permissions when registering with Facebook Connect.

2010-12-06 Thread Alex Pilon
Try this.. http://tinyurl.com/2uhq73m Thanks! On Mon, Dec 6, 2010 at 14:49, deadwards wrote: > This may be a dumb question, but I can't figure out how to prompt for > extended permissions (ex. publish_stream, email, etc.) when a user > connects their Facebook account. > > Can anyone point me in

[symfony-users] Prompt for Extended Permissions when registering with Facebook Connect.

2010-12-06 Thread deadwards
This may be a dumb question, but I can't figure out how to prompt for extended permissions (ex. publish_stream, email, etc.) when a user connects their Facebook account. Can anyone point me in the right direction? -- If you want to report a vulnerability issue on symfony, please send it to secu

Re: [symfony-users] Exception occured exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are activ

2010-12-06 Thread Alex Pilon
Can you show us the code that is being called that is generating this exception? On Mon, Dec 6, 2010 at 13:01, saichand wrote: > Hi , > > I am using Operating System : centOs. > > And using PHP Version - 5.2.9 , Mysql Version - 5. > > Symfony Vertion - 1.4.1 > > Facing the following Exception

[symfony-users] Exception occured exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active...

2010-12-06 Thread saichand
Hi , I am using Operating System : centOs. And using PHP Version - 5.2.9 , Mysql Version - 5. Symfony Vertion - 1.4.1 Facing the following Exception in my project : " 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception SQLSTATE[HY000]: General error: 2014 Cannot execute quer

[symfony-users] Re: Call to undefined method myUser::method

2010-12-06 Thread Carlos
Thanks! It was a stupid error, the methods I couldn't access are private method because thy were previously in another class... A copy / paste error... Carlos On 6 dic, 18:12, Alex Pilon wrote: > That should be working.. when you enable sfGuard you change the base class > of the myUser class to

[symfony-users] Exception occured exception 'Doctrine_Connection_Mysql_Exception' with message 'SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active...

2010-12-06 Thread saichand
Hi , I am working on Operating System : centOs. And using PHP Version - 5.2.9 , Mysql Version - 5. Symfony Vertion - 1.4.1 Facing the following Exception : " 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception SQLSTATE[HY000]: General error: 2014 Cannot execute queries while

[symfony-users] Re: Trying to use my own method to show a list in the backend: undefined offset notice

2010-12-06 Thread Javier Garcia
Workaround: instead of "select customers_name, value, date_purchased, orders_status from shop_orders LEFT JOIN ...", "select * LEFT JOIN ..." On 6 Dic, 18:39, Javier Garcia wrote: > Hi, > > i'm trying to use my own method to show a list in the backend: > > class ShopOrderPeer extends BaseShopOrde

[symfony-users] Trying to use my own method to show a list in the backend: undefined offset notice

2010-12-06 Thread Javier Garcia
Hi, i'm trying to use my own method to show a list in the backend: class ShopOrderPeer extends BaseShopOrderPeer { public static function getOrdini() { $con = Propel::getConnection(); $sql = "select customers_name, value, date_purchased, orders_status from shop_orders LE

Re: [symfony-users] Routing with sf_method question

2010-12-06 Thread Alex Pilon
http://redotheweb.com/2008/08/08/add-request-method-requirement-to-routing-in-symfony-11/ Does that shed any light for you? On Mon, Dec 6, 2010 at 11:52, Michael Smith wrote: > I have the following routin

Re: [symfony-users] Call to undefined method myUser::method

2010-12-06 Thread Alex Pilon
That should be working.. when you enable sfGuard you change the base class of the myUser class to gain access to $this->getUser()->getGuardUser(). Can you check the class type of $this->getUser() ? [ get_class($this->getUser()) ] On Mon, Dec 6, 2010 at 11:56, Gareth McCumskey wrote: > As far a

Re: [symfony-users] Call to undefined method myUser::method

2010-12-06 Thread Gareth McCumskey
As far as I am aware $this->getUser() does not access your own class that overrides sfBasicSecurityUser but is in fact an instance of sfBasicSecurityUser. I stand to be corrected however. On Mon, Dec 6, 2010 at 3:59 PM, Carlos wrote: > Hi, > > I added some methods to myUser class, and suddenly I

[symfony-users] Routing with sf_method question

2010-12-06 Thread Michael Smith
I have the following routing.yml: lead_import_upload: url: /lead/import.:sf_format param: { module: lead, action: importUpload, sf_format: html } requirements: { sf_method: get } lead_import_config: url: /lead/import.:sf_format param: { module: lead, action: importConfig, sf_

[symfony-users] Re: [Symfony2] Structuring your project (Bundles and entities)

2010-12-06 Thread Arjen
Thanks for the advice. On 4 dec, 13:39, Nicolas Hurman wrote: > Hi, > > Your structure makes sense. The point with Sf2 is that there isn't one > structure you have to follow - just do what you think is best. About the > Doctrine entities, you could store them in a separate bundle, or in you > "ma

[symfony-users] Call to undefined method myUser::method

2010-12-06 Thread Carlos
Hi, I added some methods to myUser class, and suddenly I can't access to them from the action. $this->getUser()->method returns a "Call to undefined method" error message. I really think it was working before... Maybe I modified any yml file? My myUser class and one of this methods: class myUser

Re: [symfony-users] Question about accessing a child class from a parent class

2010-12-06 Thread Diego Bello
On Mon, Dec 6, 2010 at 9:16 AM, Javier Garcia wrote: > Hi, > > i have this schema: > > shop_products: >_attributes: { phpName: ShopProduct } >products_id: { phpName: Id, type: INTEGER, size: '11', primaryKey: > true, autoIncrement: true, required: true } >products_quantity: { phpName

[symfony-users] Re: Propel 1.5 select method problem

2010-12-06 Thread Massimiliano Arione
On 6 Dic, 13:19, gurkanoluc wrote: > I'm trying to use Symfony 1.4.8 wih sfPropel15Plugin. When i try to > use methods like findPk it works very well. But when i try to use > select function, it's not working. My Schema is > :http://paste.pocoo.org/show/301282/, > My query code is :http://paste.p

Re: [symfony-users] symfony hangs up

2010-12-06 Thread Gareth McCumskey
Did you clear cache? symfony cc On Thu, Dec 2, 2010 at 12:03 PM, dianacastillo wrote: > I have symfony installed in windows and it works fine when I go here > http://localhost:8080//frontend_dev.php/ > I generated the data model but when I try to run > http://localhost:8080//frontend_dev.php/ >

[symfony-users] Propel 1.5 select method problem

2010-12-06 Thread gurkanoluc
Hello, I asked question in irc, but can not get answer. I'm trying to use Symfony 1.4.8 wih sfPropel15Plugin. When i try to use methods like findPk it works very well. But when i try to use select function, it's not working. My Schema is : http://paste.pocoo.org/show/301282/, My query code is :

[symfony-users] Question about accessing a child class from a parent class

2010-12-06 Thread Javier Garcia
Hi, i have this schema: shop_products: _attributes: { phpName: ShopProduct } products_id: { phpName: Id, type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true } products_quantity: { phpName: Quantity, type: INTEGER, size: '4', required: true } products