You said when manually entering a job it works.. does this mean when you
create a job through the website on a web server it works? Could it be you
are running the unit test as a different user? It seems like the problem you
are having is related to directory permissions. Check the permissions of the
directory in which the 'jobs' directory is attempted to be created in.

On Sun, Nov 7, 2010 at 05:56, Luis Cordova <cordo...@gmail.com> wrote:

> with:
>
> with('response')->debug()->
>
> I am getting this:
>
>   Response debug
>
>
> # WARNING
> # An error occurred when processing this request.
> # The real response content has been replaced with the exception message to
> ease debugging.
> HTTP/1.X 500
> Content-Type: text/html; charset=utf-8
>
> exception 'Exception' with message 'Failed to create file upload directory
> "/jobs".' in
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/validator/sfValidatedFile.class.php:97
> Stack trace:
> #0
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php(392):
> sfValidatedFile->save()
> #1
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php(328):
> sfFormDoctrine->saveFile('logo', NULL, Object(sfValidatedFile))
> #2
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php(189):
> sfFormDoctrine->processUploadedFile('logo', NULL, Array)
> #3
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/form/addon/sfFormObject.class.php(181):
> sfFormDoctrine->processValues(Array)
> #4
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/form/addon/sfFormObject.class.php(159):
> sfFormObject->updateObject()
> #5
> /home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/form/addon/sfFormObject.class.php(130):
> sfFormObject->doSave(Object(Doctrine_Connection_Mysql))
> #6
> /home/cordoval/symfony-projects/jobeet/apps/frontend/modules/job/actions/actions.class.php(96):
> sfFormObject->save()
> #7
> /home/cordoval/symfony-projects/jobeet/apps/frontend/modules/job/actions/actions.class.php(41):
> jobActions->processForm(Object(sfWebRequest), Object(JobeetJobForm))
>
> and with
>
> with('form')->debug()->
>
> I get:
>
>
>   Form debug
>
>
> Submitted values: array (  'category_id' => '289',  'type' => 'full-time',
>  'company' => 'Sensio Labs',  'url' => 'http://www.sensio.com/',
>  'position' => 'Developer',  'location' => 'Atlanta, USA',  'description' =>
> 'You will work with symfony to develop websites for our customers.',
>  'how_to_apply' => 'Send me an email',  'is_public' => false,  'email' => '
> for.a....@example.com',  'id' => '',  '_csrf_token' =>
> '6d5dfd7e1e52d6e8e320ba72eaab5721',  'logo' =>
> '/home/cordoval/symfony-projects/jobeet/web/uploads/jobs/sensio-labs.gif',)
> Errors:
> not ok 19 - last request threw an uncaught exception Exception: Failed to
> create file upload directory /jobs.
>
> But then it does not help too much
>
> what could be wrong?
>
> On Sun, Nov 7, 2010 at 5:39 AM, Luis Cordova <cordo...@gmail.com> wrote:
>
>> On jobeet day 11 it says symfony simulates uploading a file on a form:
>>
>> after issuing:
>>
>> ./symfony test:functional frontend jobActions
>>
>> I get:
>>
>> >   3.1 - Submit a Job
>> # get /job/new
>> ok 16 - request parameter module is job
>> ok 17 - request parameter action is new
>> # post /job
>> ok 18 - request parameter module is job
>> ok 19 - request parameter action is create
>> not ok 20 - last request threw an uncaught exception Exception: Failed to
>> create file upload directory /jobs.
>> #     Failed test
>> (/home/cordoval/symfony-projects/sfproject/lib/vendor/symfony/lib/test/sfTestFunctionalBase.class.php
>> at line 425)
>>
>> Manually it works for entering a job.
>>
>> How can I introspect where the problem is?
>>
>> Thanks,
>>
>> Luis
>>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Alex Pilon
(613) 608-1480

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to