You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2015-11-27 11:29:43

Yacine31
Member
Registered: 2015-10-19
Posts: 44

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

Bonjour,

Lorsque je souhaite imprimer en PDF dans la liste de tickets par exemple, en appuyant sur le bouton vert (pas très parlant d'ailleurs), j'ai ce message d'erreur dans un nouvel onglet.

D'où peut provenir l'erreur ?


Glpi 0.85.4

Offline

#2 2015-11-27 11:40:21

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,243

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

bonjour,
Quelle version de GLPI ?
quelle version du plugin ?


Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9

Offline

#3 2015-11-27 17:46:36

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

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

Vous avez appuyé plusieurs fois sur la bouton de génération du PDF. Il faut recharger la page entre chaque génération de PDF.


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#4 2015-12-02 15:39:16

Yacine31
Member
Registered: 2015-10-19
Posts: 44

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

Bonjour,

GLPI 0.85.4
Plugin 0.85 - GPLv3+

Je n'ai pas appuyé plusieurs fois. Je viens de refaire le test et c'est bien dès le 1er clic.

Last edited by Yacine31 (2015-12-02 16:54:33)


Glpi 0.85.4

Offline

#5 2015-12-07 12:37:46

Yacine31
Member
Registered: 2015-10-19
Posts: 44

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

Bonjour,

Avez-vous une idée sur ce problème ?
A savoir, qu'il y a un mois l'impression marchait nickel.


Glpi 0.85.4

Offline

#6 2015-12-07 17:28:19

Yacine31
Member
Registered: 2015-10-19
Posts: 44

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

Voici ce que j'ai dans les log :

2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\inc\object.class.php:191     _log()
  plugins\genericobject\inc\object.class.php:241     PluginGenericobjectObject::getMenuIcon()
  inc\html.class.php:1198                            PluginGenericobjectObject::getMenuContent()
  front\ticket.php:41                                Html::header()
2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\inc\object.class.php:191     _log()
  plugins\genericobject\inc\object.class.php:241     PluginGenericobjectObject::getMenuIcon()
  inc\html.class.php:1198                            PluginGenericobjectObject::getMenuContent()
  front\ticket.php:41                                Html::header()
2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\inc\object.class.php:191     _log()
  plugins\genericobject\inc\object.class.php:241     PluginGenericobjectObject::getMenuIcon()
  inc\html.class.php:1198                            PluginGenericobjectObject::getMenuContent()
  front\ticket.php:41                                Html::header()
2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\inc\object.class.php:191     _log()
  plugins\genericobject\inc\object.class.php:241     PluginGenericobjectObject::getMenuIcon()
  inc\html.class.php:1198                            PluginGenericobjectObject::getMenuContent()
  front\ticket.php:41                                Html::header()
2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\inc\object.class.php:191     _log()
  plugins\genericobject\inc\object.class.php:241     PluginGenericobjectObject::getMenuIcon()
  inc\html.class.php:1198                            PluginGenericobjectObject::getMenuContent()
  front\ticket.php:41                                Html::header()
2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\hook.php:49                  _log()
  :                                                  plugin_genericobject_getDropdown()
  inc\plugin.class.php:1162                          call_user_func()
  inc\plugin.class.php:1177                          Plugin::doOneHook()
  inc\dropdown.class.php:873                         Plugin::getDropdowns()
  inc\commondropdown.class.php:104                   Dropdown::getStandardDropdownItemTypes()
  inc\html.class.php:1198                            CommonDropdown::getMenuContent()
  front\ticket.php:41                                Html::header()
2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\hook.php:49                  _log()
  :                                                  plugin_genericobject_getDropdown()
  inc\plugin.class.php:1162                          call_user_func()
  inc\plugin.class.php:1177                          Plugin::doOneHook()
  inc\dropdown.class.php:873                         Plugin::getDropdowns()
  inc\commondropdown.class.php:104                   Dropdown::getStandardDropdownItemTypes()
  inc\html.class.php:1198                            CommonDropdown::getMenuContent()
  front\ticket.php:41                                Html::header()
2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\hook.php:49                  _log()
  :                                                  plugin_genericobject_getDropdown()
  inc\plugin.class.php:1162                          call_user_func()
  inc\plugin.class.php:1177                          Plugin::doOneHook()
  inc\dropdown.class.php:873                         Plugin::getDropdowns()
  inc\commondropdown.class.php:104                   Dropdown::getStandardDropdownItemTypes()
  inc\html.class.php:1198                            CommonDropdown::getMenuContent()
  front\ticket.php:41                                Html::header()
2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\hook.php:49                  _log()
  :                                                  plugin_genericobject_getDropdown()
  inc\plugin.class.php:1162                          call_user_func()
  inc\plugin.class.php:1177                          Plugin::doOneHook()
  inc\dropdown.class.php:873                         Plugin::getDropdowns()
  inc\commondropdown.class.php:104                   Dropdown::getStandardDropdownItemTypes()
  inc\html.class.php:1198                            CommonDropdown::getMenuContent()
  front\ticket.php:41                                Html::header()
2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\hook.php:49                  _log()
  :                                                  plugin_genericobject_getDropdown()
  inc\plugin.class.php:1162                          call_user_func()
  inc\plugin.class.php:1177                          Plugin::doOneHook()
  inc\dropdown.class.php:873                         Plugin::getDropdowns()
  inc\commondropdown.class.php:104                   Dropdown::getStandardDropdownItemTypes()
  inc\html.class.php:1198                            CommonDropdown::getMenuContent()
  front\ticket.php:41                                Html::header()
2015-12-07 15:59:20 [1188@SUPPORT]
  *** PHP Warning(2): preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: a numbered reference must not be zero at offset 17
  Backtrace :
  :                                                  
  plugins\genericobject\inc\functions.php:40         preg_replace()
  plugins\genericobject\hook.php:49                  _log()
  :                                                  plugin_genericobject_getDropdown()
  inc\plugin.class.php:1162                          call_user_func()
  inc\plugin.class.php:1177                          Plugin::doOneHook()
  inc\dropdown.class.php:873                         Plugin::getDropdowns()
  inc\commondropdown.class.php:104                   Dropdown::getStandardDropdownItemTypes()
  inc\html.class.php:1198                            CommonDropdown::getMenuContent()
  front\ticket.php:41                                Html::header()

Glpi 0.85.4

Offline

#7 2015-12-08 18:59:51

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

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

Ca c'est un problème du plugin genericobject.


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#8 2015-12-09 12:04:40

Yacine31
Member
Registered: 2015-10-19
Posts: 44

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

Oui j'ai vu mais comment le résoudre ?


Glpi 0.85.4

Offline

#9 2016-02-03 12:36:05

Yacine31
Member
Registered: 2015-10-19
Posts: 44

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

up

Quelqu'un a-t-il une solution pour mon problème ?


Glpi 0.85.4

Offline

#10 2016-02-05 21:12:29

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

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

Il faut poster votre demande au leader du plugin GenericObject


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

Board footer

Powered by FluxBB