IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Symfony PHP Discussion :

Form sans problème dans app_dev, page blanche avec app [2.x]


Sujet :

Symfony PHP

  1. #1
    Membre du Club
    Homme Profil pro
    Inscrit en
    Janvier 2009
    Messages
    67
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 67
    Points : 45
    Points
    45
    Par défaut Form sans problème dans app_dev, page blanche avec app
    Bonjour,

    J'ai un formulaire qui s'affiche très bien et sans erreur dans app_dev.php, lorsque je passe par app.php, j'ai une page blanche.

    Dans mon formulaire j'ai 4 entities, (promoteur, fiscalite, gestionnaire et notaire) si je laisse uniquement fiscalite, pas de problème le formulaire s'affiche

    Voici un extrait du formulaire

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
     
    $builder
    		->add('promoteur', 'entity', array(
    	            'class' => 'Assist\SiteBundle\Entity\Promoteur',
    	            'property' => 'nom_promoteur',
    	            'expanded' => false,
    	            'multiple' => false,
    	            'required' => true
                ))
    		->add('fiscalite', 'entity', array(
    	            'class' => 'Assist\SiteBundle\Entity\Fiscalite',
    	            'property' => 'nom',
    	            'expanded' => true,
    	            'multiple' => true,
    	            'required' => true
                ))
    		->add('gestionnaire', 'entity', array(
    	            'class' => 'Assist\SiteBundle\Entity\Gestionnaire',
    	            'property' => 'nom_gestionnaire',
    	            'expanded' => false,
    	            'multiple' => false,
    	            'required' => false
                ))
    		->add('notaire', 'entity', array(
    	            'class' => 'Assist\SiteBundle\Entity\Notaire',
    	            'property' => 'nom_notaire',
    	            'expanded' => false,
    	            'multiple' => true,
    	            'required' => false
                ))
    Mon fichier de log prod.log n'affiche rien sur ça.

    Merci pour votre aide

  2. #2
    Membre éclairé

    Profil pro
    Inscrit en
    Juin 2004
    Messages
    772
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations forums :
    Inscription : Juin 2004
    Messages : 772
    Points : 872
    Points
    872
    Par défaut
    et qu'affiche-t-il d'autre ?
    • Mon blog PHP : http://blog.alterphp.com
    • "Peace cannot be kept by force, it can only be achieved by Understanding" -- Albert Einstein

  3. #3
    Membre du Club
    Homme Profil pro
    Inscrit en
    Janvier 2009
    Messages
    67
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 67
    Points : 45
    Points
    45
    Par défaut
    Rien...

    J'ai vidé le cache, vider le fichier prod.log. Je vais sur la page de mon formulaire, j'actualise, je re actualise, le fichier prod.log est toujours vide

  4. #4
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    montre tes valeurs de :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    display_errors
    error_reporting
    output_buffering

  5. #5
    Membre du Club
    Homme Profil pro
    Inscrit en
    Janvier 2009
    Messages
    67
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 67
    Points : 45
    Points
    45
    Par défaut
    error_reporting = E_ALL | E_STRICT
    display_errors = On
    output_buffering = 4096

  6. #6
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    c'est Ok sauf le output_buffering qui doit être a zéro, mais en effet c'est étrange

  7. #7
    Membre du Club
    Homme Profil pro
    Inscrit en
    Janvier 2009
    Messages
    67
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 67
    Points : 45
    Points
    45
    Par défaut
    A 0 ça ne change rien...

  8. #8
    Membre averti
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2004
    Messages
    318
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 40
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2004
    Messages : 318
    Points : 362
    Points
    362
    Par défaut
    Question idiote, as-tu regardé les logs Apache et PHP ?

  9. #9
    Membre averti

    Inscrit en
    Juin 2008
    Messages
    307
    Détails du profil
    Informations forums :
    Inscription : Juin 2008
    Messages : 307
    Points : 364
    Points
    364
    Par défaut
    peux tu me dire ce que tu as dans ton routing.yml (dans app et ds le dossier ressource/config de ton bundle) ?

    Je sais que quand j'avais installé le framework j'avais remarqué que les routes du AcmeBundle n'étaient que que dans routing_dev.yml et qu'il n'y avait rien dans le routing.yml. Et quand tu utilisais app.php ca affichait des pages blanches alors que app_dev fonctionnait correctement.

  10. #10
    Membre du Club
    Homme Profil pro
    Inscrit en
    Janvier 2009
    Messages
    67
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 67
    Points : 45
    Points
    45
    Par défaut
    And the winner is...

    Citation Envoyé par Guybrush113 Voir le message
    Question idiote, as-tu regardé les logs Apache et PHP ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP Warning:  require(/public_html/app/cache/prod/doctrine/orm/Proxies/AssistSiteBundleEntityAdresseProxy.php): failed to open stream: No such file or directory in /public_html/vendor/doctrine/lib/Doctrine/ORM/Proxy/ProxyFactory.php on line 85
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP Stack trace:
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   1. {main}() /public_html/web/app.php:0
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   2. Symfony\\Component\\HttpKernel\\Kernel->handle() /public_html/web/app.php:12
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   3. Symfony\\Bundle\\FrameworkBundle\\HttpKernel->handle() /public_html/app/bootstrap.php.cache:547
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   4. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /public_html/app/cache/prod/classes.php:4832
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   5. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /public_html/app/cache/prod/classes.php:3853
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   6. call_user_func_array() /public_html/app/cache/prod/classes.php:3883
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   7. Assist\\SiteBundle\\Controller\\ProgrammeController->editerAction() /public_html/app/cache/prod/classes.php:3883
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   8. Symfony\\Component\\Form\\Form->createView() /public_html/src/Assist/SiteBundle/Controller/ProgrammeController.php:69
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   9. Symfony\\Component\\Form\\Form->createView() /public_html/vendor/symfony/src/Symfony/Component/Form/Form.php:927
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  10. Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType->buildView() /public_html/vendor/symfony/src/Symfony/Component/Form/Form.php:917
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  11. Symfony\\Component\\Form\\Extension\\Core\\ChoiceList\\ArrayChoiceList->getChoices() /public_html/vendor/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:112
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  12. Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\EntityChoiceList->load() /public_html/vendor/symfony/src/Symfony/Component/Form/Extension/Core/ChoiceList/ArrayChoiceList.php:46
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  13. Doctrine\\ORM\\EntityRepository->findAll() /public_html/vendor/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php:135
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  14. Doctrine\\ORM\\EntityRepository->findBy() /public_html/vendor/doctrine/lib/Doctrine/ORM/EntityRepository.php:156
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  15. Doctrine\\ORM\\Persisters\\BasicEntityPersister->loadAll() /public_html/vendor/doctrine/lib/Doctrine/ORM/EntityRepository.php:170
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  16. Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator->hydrateAll() /public_html/vendor/doctrine/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:704
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  17. Doctrine\\ORM\\Internal\\Hydration\\SimpleObjectHydrator->_hydrateAll() /public_html/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php:99
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  18. Doctrine\\ORM\\Internal\\Hydration\\SimpleObjectHydrator->_hydrateRow() /public_html/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:43
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  19. Doctrine\\ORM\\UnitOfWork->createEntity() /public_html/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:129
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  20. Doctrine\\ORM\\Proxy\\ProxyFactory->getProxy() /public_html/vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php:2022
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP Fatal error:  require(): Failed opening required '/public_html/app/cache/prod/doctrine/orm/Proxies/AssistSiteBundleEntityAdresseProxy.php' (include_path='.:/usr/share/php:/usr/share/pear') in /public_html/vendor/doctrine/lib/Doctrine/ORM/Proxy/ProxyFactory.php on line 85
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP Stack trace:
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   1. {main}() /public_html/web/app.php:0
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   2. Symfony\\Component\\HttpKernel\\Kernel->handle() /public_html/web/app.php:12
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   3. Symfony\\Bundle\\FrameworkBundle\\HttpKernel->handle() /public_html/app/bootstrap.php.cache:547
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   4. Symfony\\Component\\HttpKernel\\HttpKernel->handle() /public_html/app/cache/prod/classes.php:4832
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   5. Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw() /public_html/app/cache/prod/classes.php:3853
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   6. call_user_func_array() /public_html/app/cache/prod/classes.php:3883
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   7. Assist\\SiteBundle\\Controller\\ProgrammeController->editerAction() /public_html/app/cache/prod/classes.php:3883
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   8. Symfony\\Component\\Form\\Form->createView() /public_html/src/Assist/SiteBundle/Controller/ProgrammeController.php:69
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP   9. Symfony\\Component\\Form\\Form->createView() /public_html/vendor/symfony/src/Symfony/Component/Form/Form.php:927
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  10. Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType->buildView() /public_html/vendor/symfony/src/Symfony/Component/Form/Form.php:917
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  11. Symfony\\Component\\Form\\Extension\\Core\\ChoiceList\\ArrayChoiceList->getChoices() /public_html/vendor/symfony/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php:112
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  12. Symfony\\Bridge\\Doctrine\\Form\\ChoiceList\\EntityChoiceList->load() /public_html/vendor/symfony/src/Symfony/Component/Form/Extension/Core/ChoiceList/ArrayChoiceList.php:46
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  13. Doctrine\\ORM\\EntityRepository->findAll() /public_html/vendor/symfony/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php:135
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  14. Doctrine\\ORM\\EntityRepository->findBy() /public_html/vendor/doctrine/lib/Doctrine/ORM/EntityRepository.php:156
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  15. Doctrine\\ORM\\Persisters\\BasicEntityPersister->loadAll() /public_html/vendor/doctrine/lib/Doctrine/ORM/EntityRepository.php:170
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  16. Doctrine\\ORM\\Internal\\Hydration\\AbstractHydrator->hydrateAll() /public_html/vendor/doctrine/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:704
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  17. Doctrine\\ORM\\Internal\\Hydration\\SimpleObjectHydrator->_hydrateAll() /home/consult-Sitealisatio
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: Hydrator->_hydrateRow() /public_html/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:43
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  19. Doctrine\\ORM\\UnitOfWork->createEntity() /public_html/vendor/doctrine/lib/Doctrine/ORM/Internal/Hydration/SimpleObjectHydrator.php:129
    [Thu Oct 06 16:50:35 2011] [warn] [client XX.XXX.XX.XXX] mod_fcgid: stderr: PHP  20. Doctrine\\ORM\\Proxy\\ProxyFactory->getProxy() /public_html/vendor/doctrine/lib/Doctrine/ORM/UnitOfWork.php:2022

  11. #11
    Membre éclairé

    Profil pro
    Inscrit en
    Juin 2004
    Messages
    772
    Détails du profil
    Informations personnelles :
    Âge : 40
    Localisation : France, Loire Atlantique (Pays de la Loire)

    Informations forums :
    Inscription : Juin 2004
    Messages : 772
    Points : 872
    Points
    872
    Par défaut
    Vide le dossier app/cache pour voir...
    • Mon blog PHP : http://blog.alterphp.com
    • "Peace cannot be kept by force, it can only be achieved by Understanding" -- Albert Einstein

  12. #12
    Membre du Club
    Homme Profil pro
    Inscrit en
    Janvier 2009
    Messages
    67
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 67
    Points : 45
    Points
    45
    Par défaut
    Effectivement le dossier "/public_html/app/cache/prod/doctrine/orm/Proxies/" est vide, alors que "/public_html/app/cache/dev/doctrine/orm/Proxies/" contient 2 fichiers, je vais creuser.

  13. #13
    Membre du Club
    Homme Profil pro
    Inscrit en
    Janvier 2009
    Messages
    67
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Janvier 2009
    Messages : 67
    Points : 45
    Points
    45
    Par défaut
    Bon j'avais une merde dans les entités, j'ai découvert ça à l'aide de
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
         php app/console cache:warmup --env=prod --no-debug
    Ca m'a rempli le dossier. Bizarre que ça fonctionne en mode dev...

    cf : http://groups.google.com/group/symfo...7482e40efd7f8e

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. [2.x] page blanche avec app.php, mais pas avec app_dev.php (page OK)
    Par lou_lou43 dans le forum Symfony
    Réponses: 12
    Dernier message: 15/05/2012, 15h17
  2. Problème mise en page tableau avec Netscape
    Par langela94 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 13/02/2006, 14h31
  3. Son dans une page Web avec Firefox
    Par diod dans le forum Applications et environnements graphiques
    Réponses: 4
    Dernier message: 02/12/2005, 17h49
  4. Réponses: 7
    Dernier message: 14/09/2005, 10h50
  5. [HVMenu] problème dans les pages ASPX (urgent svp)
    Par hatembr dans le forum Général JavaScript
    Réponses: 4
    Dernier message: 13/01/2005, 09h37

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo