I work on an app in symfony 2 which uses the sonata-admin bundle. I added 6 vars in my entity, and I can edit their value in my back-office to see the result in the front office.
Everything works fine when I go to my website in app_dev.php (and app_dev.php/admin for the back office)
But when I try to access to the website within the app.php, the changes don't show in my front office and I have a 404 error in the back. If I explicite the vars's typos in the $formMapper of the sonata admin's configureFormFields function, I can see my form but it doesn't get back the values already stored in the database.
I must precise I tried all clear cache options possible, with --env, --no-debug, and I tried to delete the app/cache/prod folder, create it again with the permissions. Apache logs do not show anything in particular.
Thank you for your help.
app/logs? - Diego Ferritail -f app/logs/prod.log | grep -v DEBUG. Run that, reload the page. You should get some meaningful information from that. - Darragh Enrightphp app/check.php, and browse tohttp://yourdomain.com/config.phpwhich might confirm if there is a server-level issue. - Darragh Enrightdomain.com/config.phpand I saw the error : the timezone was not defined in my php.ini. I defined it and now everything is OK. Thank you ! - Rubix