amz83 Posted May 27, 2016 Share Posted May 27, 2016 Bonjour 'jai un problème, les pdf des facture en front office ne fonctionne pas. TCPDF ERROR: Some data has already been output to browser, can't send PDF file j'ai donc un peu cherché sur le forum et j'ai trouver ça: ob_end_clean(); à mettre dans classe/pdf.php ligne 83. Et la magie ça marche dans le front. Mais tout ne pouvais pas être si simple. à présent on ne peux plus agir sur les commande dans le BO Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in /homepages/18/d320362452/htdocs/classes/pdf/PDF.php on line 84Warning: Cannot modify header information - headers already sent by (output started at /homepages/18/d320362452/htdocs/classes/pdf/PDF.php:84) in/homepages/18/d320362452/htdocs/tools/tcpdf/tcpdf.php on line 8940TCPDF ERROR: Some data has already been output to browser, can't send PDF file en effet il n'y apas de buffer a delete, donc ça bloque... comment delete le buffer seulement dans le front office????? Link to comment Share on other sites More sharing options...
tuk66 Posted May 27, 2016 Share Posted May 27, 2016 Quelle version? Pouvez-vous désactiver le mode de débogage? Il n'y a pas besoin de signaler Avis PHP et avertissements dans la boutique en direct. What version? Can you disable Debug mode? There is no need to report PHP Notices and Warnings in live shop. Link to comment Share on other sites More sharing options...
amz83 Posted May 27, 2016 Author Share Posted May 27, 2016 1.5.3 j'ai desactivé le mode debug pourtant j'ai toujours l'erreur voici mon define: define('_PS_MODE_DEV_', false); if (_PS_MODE_DEV_) { @ini_set('display_errors', 'on'); define('_PS_DEBUG_SQL_', true); /* Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', true); } else { @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false); /* Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false); } Link to comment Share on other sites More sharing options...
amz83 Posted May 27, 2016 Author Share Posted May 27, 2016 si j'enleve ob_end_clean(); le Bo remarche mais le front rebug c'est un cycle infernal... Link to comment Share on other sites More sharing options...
Eolia Posted May 27, 2016 Share Posted May 27, 2016 if(ob_get_level() > 0) ob_end_clean(); Link to comment Share on other sites More sharing options...
amz83 Posted May 27, 2016 Author Share Posted May 27, 2016 Merci nikel c'était tout simple. Tu me sauves la vie encore une fois =) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now