Problem, maby, with sample file 04printing.php

Topics: Developer Forum, User Forum
Feb 10, 2009 at 3:51 PM
Hey there,

I am new to PHPExcel, and did just install to test it out.

While using change set 25092, I get this output from 04printing.php when running runall.php:

============== TEST ==============
Test name: 04printing.php

18:15:52 Create new PHPExcel object
18:15:52 Set properties
18:15:52 Add some data
18:15:52 Set header/footer
18:15:52 Add a drawing to the header
18:15:52 Set page orientation and size
18:15:52 Rename sheet
18:15:52 Write to Excel2007 format

Notice: Undefined property:  PHPExcel_Worksheet_HeaderFooterDrawing::$_imageIndex in /var/www/excel/Classes/PHPExcel/Worksheet/BaseDrawing.php on line 167

Notice: Undefined property:  PHPExcel_Worksheet_HeaderFooterDrawing::$_imageIndex in /var/www/excel/Classes/PHPExcel/Worksheet/BaseDrawing.php on line 167
18:15:52 Peak memory usage: 7.75 MB
18:15:52 Done writing file.

The same Notice where also present in release 1.6.5. The rest of the test files seams to compile with no problems in 25092.

Now my question is, can I fix it, is it a bug or shall I just ignore it?

regards
Gyde
Developer
Feb 11, 2009 at 12:41 AM
Hmm.. I tried on using PHP 5.2.6 / Linux where I didn't see those notices, strangely. Can you say what PHP version you are using?

Developer
Feb 13, 2009 at 2:14 AM
Indeed, I tried on PHP 5.2.8 / Linux, and I got those messages. A work item has been created for this:
http://www.codeplex.com/PHPExcel/WorkItem/View.aspx?WorkItemId=9246