app.php gives blank screen on server but works on localhost

New topics about Symfony 2 should go here

Moderators: dcobalt, tiagojsag

app.php gives blank screen on server but works on localhost

Postby barry_j » Fri May 04, 2012 11:46 pm

Hello there

I have recently finished my first Symfony2 website. It is all working perfectly on my computer through localhost.

I have uploaded the site to a linux server at Godaddy (php5.3.6) but when I go to app.php I get a blank white screen

If i go to app_dev.php I get a blank screen except for one message saying:
"You are not allowed to access this file. Check app_dev.php for more information."

I am sure it is just a setting somewhere, but can anybody help me?

Many thanks

Barry
barry_j
Member
 
Posts: 34
Joined: Fri Jul 29, 2011 2:02 pm
Location: Warwickshire, UK

Re: app.php gives blank screen on server but works on localh

Postby barry_j » Sat May 05, 2012 2:07 am

I have solved this!

In app.php, there is a line that needs to be changed from

$kernel = new AppKernel('prod', false);

to

$kernel = new AppKernel('prod', true);
barry_j
Member
 
Posts: 34
Joined: Fri Jul 29, 2011 2:02 pm
Location: Warwickshire, UK

Re: app.php gives blank screen on server but works on localh

Postby althaus » Sat May 05, 2012 12:26 pm

You simply could "Check app_dev.php for more information." -_-'
althaus
Faithful Member
 
Posts: 605
Joined: Tue Oct 18, 2011 2:20 pm
Location: Germany

Re: app.php gives blank screen on server but works on localh

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

barry_j wrote:I have solved this!

In app.php, there is a line that needs to be changed from

$kernel = new AppKernel('prod', false);

to

$kernel = new AppKernel('prod', true);

why would you want debugging on your prod?

this allowed my prod to render as well, but I'm failing to understand why.
ner0tic
Junior Member
 
Posts: 4
Joined: Sat Aug 29, 2009 4:53 pm


Return to General Symfony 2 discussion

Who is online

Users browsing this forum: No registered users and 10 guests