Jump to content

TCPDF ERROR: Some data has already been output to browser, can't send PDF file


Recommended Posts

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 84

Warning: 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 8940
TCPDF 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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...