app_dev.php works, app.php doesn't

New topics about Symfony 2 should go here

Moderators: dcobalt, tiagojsag

app_dev.php works, app.php doesn't

Postby Alhazred » Tue Jun 19, 2012 10:25 pm

Hi, I'm a Symfony newbie.
I'm following the book available on Symfony home page.

At the beginning, "Creating Pages in Symfony2" section, it says to create a routes.yml file and after a controller.
Then it says to try the application using the url
http://localhost/app_dev.php/hello/Ryan

I've tried and it works.
The tutorial also says to try
http://localhost/app.php/hello/Ryan

but in this case it doesn't work, at first I had a 404 error, I've cleared the cache and now I obtain a blank page.
What shoult I check to make the app.php work?
Alhazred
Junior Member
 
Posts: 1
Joined: Tue Jun 19, 2012 10:10 pm

Re: app_dev.php works, app.php doesn't

Postby ner0tic » Sat Aug 04, 2012 2:13 am

I'm also encountering the same issue. app_dev.php renders the site no problem, but app.php loads a blank page.

edit:
enabling debugging on the prod renders the site. This seems wrong to me.
ner0tic
Junior Member
 
Posts: 4
Joined: Sat Aug 29, 2009 4:53 pm

Re: app_dev.php works, app.php doesn't

Postby all4pages » Sat Aug 04, 2012 9:20 pm

set the permissions again to the app/log and app/cache after clearing the cache
all4pages
Junior Member
 
Posts: 27
Joined: Tue Aug 09, 2011 6:07 pm

Re: app_dev.php works, app.php doesn't

Postby pécé » Tue Aug 07, 2012 12:44 pm

First check is to read app/logs/prod.log. If it doesn't exist, check permissions on app/cache and app/logs as told above...
Visit my blog at http://blog.alterphp.com/
pécé
Member
 
Posts: 69
Joined: Fri Apr 29, 2011 3:51 pm

Re: app_dev.php works, app.php doesn't

Postby DannyVBT » Wed Aug 08, 2012 11:29 pm

I ran into this issue too recently, testing out the new RC. I believe the issue was that the AcmeDemoBundle was only being added in app/AppKernel.php if the environment was development. Also make sure you have a proper default route defined in your routing config.
DannyVBT
Junior Member
 
Posts: 1
Joined: Wed Aug 08, 2012 11:20 pm


Return to General Symfony 2 discussion

Who is online

Users browsing this forum: No registered users and 3 guests