Zum Inhalt springen

fpdf und die TYPO3 Notices

Erstellt am 26. Mai 2010 · Noch keine Antworten

Tags: PHP, PDF, TYPO3 4, Frage

hpatrick ·

Hallo zusammen,
ich hab bei der Entwicklung einer Extension ein kleines Problem beim PDF-Export. Verwenden möchte ich die FPDF lib, wozu im allgemeinen auch keine Fragen bestehen.
Will ich dann jedoch den PDF Export ausführen, wird gemeldet: "FPDF error: Some data has already been output, can't send PDF file"

Also auf error_reporting(E_ALL) umgeschaltet, da ich mir ansonsten nichts vorstellen konnte, wo eine frühere Ausgabe herkommen sollte. Das Ergebnis war das folgende:

Notice: Undefined index: systemLog in /www/htdocs/****/typo3/typo3_src-4.3.3/t3lib/class.t3lib_div.php on line 5410

Notice: Undefined variable: TYPO3_CONF_VARS in /www/htdocs/****/cms/typo3conf/ext/fpdf/class.tx_fpdf.php on line 427

Notice: Undefined index: fpdf in /www/htdocs/****/cms/typo3conf/ext/fpdf/fpdf.php on line 164

Notice: Undefined property: PDF::$tx_fpdf in /www/htdocs/****/cms/typo3conf/ext/fpdf/class.tx_fpdf.php on line 50

Notice: Trying to get property of non-object in /www/htdocs/****/cms/typo3conf/ext/fpdf/class.tx_fpdf.php on line 50

Notice: Undefined property: PDF::$tx_fpdf in /www/htdocs/****/cms/typo3conf/ext/fpdf/class.tx_fpdf.php on line 50

Notice: Trying to get property of non-object in /www/htdocs/****/cms/typo3conf/ext/fpdf/class.tx_fpdf.php on line 50

Wie kann ich den Notices am besten begegnen? Zumindest für die erste Meldung wird ja beim nächsten Core Update wieder auftauchen. Gleiches für die fpdf Meldungen...