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 2009-08-26 11:52:54

ser_glpi
Member
From: PARIS
Registered: 2006-01-25
Posts: 140
Website

problème d'export PDF pour une fiche immo

Bonjour je teste glpi v0.72.1 sous Ubuntu Jaunty AMD64, et je n'ai pas d'export en PDF d'une fiche immo mais une page de navigateur(voir ci-dessous) et cela aussi bien avec Seamonkey que Firefox3?

Exemple pour un ordinateur

%PDF-1.3 %&#65533;&#65533;&#65533;&#65533; 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [6 0 R ] /Count 1 /Resources << /ProcSet 4 0 R /Font << /F1 8 0 R >> >> /MediaBox [0.000 0.000 595.280 841.890] >> endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj << /Creator (R and OS php pdf writer, http://www.ros.co.nz) /CreationDate (D:20090826) /Author (FACCHIN Serge) >> endobj 6 0 obj << /Type /Page /Parent 3 0 R /Contents [ 7 0 R 9 0 R 10 0 R 11 0 R 12 0 R 13 0 R 14 0 R 15 0 R 16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R 22 0 R 23 0 R 24 0 R 25 0 R 26 0 R 27 0 R 28 0 R 29 0 R 30 0 R 31 0 R ] >> endobj 7 0 obj << /Filter /FlateDecode /Length 352 >> stream x&#65533;&#65533;&#65533;&#65533;R&#65533;0&#65533;&#65533;<&#65533;&#65533;&#65533;&#730;lB&#65533;!eF&#65533;&#1468;@gJ&#65533;N&#65533;&#65533;&#65533;&#65533;3&#65533;-L&#65533; &#65533;&#65533;vzY&#65533;&#65533;&#65533;d&#65533;&#65533;!c &#65533;&#65533;|&#65533;&#65533;&#65533;oGw&#1970;%&#65533;zI&#65533;&#65533; &#65533;&#65533;(&#65533;_\&#65533;F&#65533; &#65533;&#65533;&#65533;&#65533;&#65533;k&#65533;}&#65533;;U&#65533;J&#65533;j&#65533;@&#65533;&#65533;G|k&#65533;XP&#65533;&#65533;&#65533;"&#65533;&#65533;&#65533;&#65533;T*&#65533;&#65533;&#65533;&#65533;r&#65533;p0&#65533;&#65533;N


le lien s'exécute dans une autre page du navigateur:

.../glpi-0.72.1/plugins/immo/front/plugin_immo.export.php?ID=3513&type=4 et donne ceci par exemple pour un moniteur

%PDF-1.3 %&#65533;&#65533;&#65533;&#65533; 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [6 0 R ] /Count 1 /Resources << /ProcSet 4 0 R /Font << /F1 8 0 R >> >> /MediaBox [0.000 0.000 595.280 841.890] >> endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj << /Creator (R and OS php pdf writer, http://www.ros.co.nz) /CreationDate (D:20090826) /Author (FACCHIN Serge) >> endobj 6 0 obj << /Type /Page /Parent 3 0 R /Contents [ 7 0 R 9 0 R 10 0 R 11 0 R 12 0 R 13 0 R 14 0 R 15 0 R 16 0 R 17 0 R 18 0 R 19 0 R 20 0 R 21 0 R 22 0 R 23 0 R 24 0 R 25 0 R 26 0 R 27 0 R 28 0 R ] >> endobj 7 0 obj << /Filter /FlateDecode /Length 282 >> stream x&#65533;&#65533;R&#65533;N&#65533;0 &#65533;&#65533;+|.&#65533;q'&#65533;V&#65533;"A#?&#65533;&#65533; &#1194;I|3AiW&#65533;C;&#65533;.&#65533;b&#65533;&#65533;&#65533;&#65533;&#65533;`\&#65533;&#65533;&#65533;&#65533;w&#65533;C]&#65533;$&#1737;v&#65533;e&#65533;b&#65533;S&#65533;&#65533;&#65533;{&#65533;&#65533;;&#65533;&#65533;&#65533;M&#65533;<&#65533;EfA&#65533;&#1634;&#65533;/Yi4&#65533;d&#65533;l&#65533;/&#65533;:&#65533;~ &#65533;&#65533;T&#65533;&#65533;&#1545;a&#65533;&#1232;&#65533;R&#65533;G&#65533;&#65533;8_<&#65533;jX&#65533;&#65533;&#65533;&#27390;&#65533;&#65533;&#65533;0&#65533;xx&#65533;v&#1414;&#65533;<&#65533; &#65533;S&#65533;p&#65533;f f&- &#65533;&#65533;R&#1034;xXU e&#563;*&#65533;&#65533;&#65533;&#65533;P&#65533;¶&#65533;&#65533;l9&#65533;J&#65533;O&#65533;&#65533;&#65533;A&#65533;|&#65533;&#65533;< Xb5&#65533;,+&#65533;"&#65533;}&#65533;&#65533;*TyXfw&#65533;&#590;1&#65533;Q&#65533;9-E&#65533;&#1042;&#805;&#65533;[&#65533;7&#37932;V endstream endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj 9 0 obj << /Filter /FlateDecode /Length 84 >> stream x&#65533;&#65533;r Q04&#65533;&#65533;332S077&#65533;30&#65533;PIQ&#65533;w3T04&#65533;3PISP&#65533;p&#65533;t&#65533;pUpQ&#65533;tq&#65533; &#65533;&#65533;C<&#65533;&#65533;<}}&#65533;<}<&#65533;&#65533;\M&#65533;&#65533;,&#65533;&#65533;&#65533; l endstream endobj 10 0 obj << /Filter /FlateDecode /Length 93 >> stre

Par ailleurs j'ouvre et je télécharge des PDF sans souci.


GLPI  0.84.8 - Plateforme PROD:  Apache/2.2.22 (Debian) PHP 5.4.36-0+deb7u3 - Operating system: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64, MySQL 5.5.41-0+wheezy1-log

Offline

#2 2009-08-26 11:56:18

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: problème d'export PDF pour une fiche immo

Vérifier en désactivant tous les plugins.

Certains fichiers (scripts) mal encodés génère ce problème.

Voir aussi en mode debug qui devrait indiquer le fichier coupable (ligne(s) vide(s) après le ?> de fin)

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2009-08-26 12:53:34

ser_glpi
Member
From: PARIS
Registered: 2006-01-25
Posts: 140
Website

Re: problème d'export PDF pour une fiche immo

En mode debug

en haut de la page des préférences dés le passage en mode debug j'obtiens

PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/inc/display.function.php at line 57
PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/inc/display.function.php at line 2302
PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/inc/display.function.php at line 2303

puis toujours sur la page des préférences mais en dessous des différents onglets :
PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/ajax/preference.tabs.php at line 45
PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/inc/display.function.php at line 2302
PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/inc/display.function.php at line 2303

lorsque je reviens pour générer ma fiche d'immo :
.../glpi-0.72.1/plugins/immo/front/plugin_immo.export.php?ID=4237&type=1
le debug affiche ceci sur la page du navigateur "PDF":

PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/lib/ezpdf/class.pdf.php at line 1916
PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/lib/ezpdf/class.pdf.php at line 1917
PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/lib/ezpdf/class.pdf.php at line 1919
PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/lib/ezpdf/class.pdf.php at line 1920
PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/lib/ezpdf/class.pdf.php at line 1921
PHP ERROR: Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1) in /var/www/glpi-0.72.1/lib/ezpdf/class.pdf.php at line 1923

erreur php-errors.log donne

26-08-2009 12:45
Warning(2): Cannot modify header information - headers already sent by (output started at /var/www/glpi-0.72.1/plugins/customfields/locales/fr_FR.php:1)
Backtrace :
/var/www/glpi-0.72.1/lib/ezpdf/class.pdf.php:1923        header()
/var/www/glpi-0.72.1/lib/ezpdf/class.ezpdf.php:456        Cpdf->stream()
/var/www/glpi-0.72.1/plugins/immo/inc/plugin_immo.export.function.php:104        Cezpdf->ezStream()
/var/www/glpi-0.72.1/plugins/immo/front/plugin_immo.export.php:51        plugin_immo_generalPdf()

En regardant et en lisant bien le message effectivement c'est un plugin qui pose problème :
Customfield/Champs Personnalisés
Les messages d'erreur disparraissent et le PB avec le plugin Immobilisation aussi

Merci wink
Remi


GLPI  0.84.8 - Plateforme PROD:  Apache/2.2.22 (Debian) PHP 5.4.36-0+deb7u3 - Operating system: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u2 x86_64, MySQL 5.5.41-0+wheezy1-log

Offline

Board footer

Powered by FluxBB