Object could not be converted to int

Topics: Developer Forum
Oct 22, 2007 at 3:40 PM
Hi,

While running Tests/05featuredemo.php I get the following error:

Notice: Object of class PHPExcel_RichText could not be converted to int in Writer\Excel2007\Worksheet.php on line 749

Call Stack
  1. Time Function Location
1 0.0079 {main}( ) ..\05featuredemo.php:0
2 1.5024 PHPExcelWriterExcel2007->save( ) ..\05featuredemo.php:36
3 2.1018 PHPExcelWriterExcel2007_Worksheet->writeWorksheet( ) ..\Excel2007.php:287
4 2.1765 PHPExcelWriterExcel2007Worksheet->writeSheetData( ) ..\Worksheet.php:107
5 2.4189 PHPExcelWriterExcel2007Worksheet->writeCell( ) ..\Worksheet.php:708
Coordinator
Oct 22, 2007 at 6:43 PM
What versions do you use?
- PHP version 5. ...?
- PHPExcel version 1. ...?
Oct 23, 2007 at 8:35 AM

maartenba wrote:
What versions do you use?
- PHP version 5. ...?
- PHPExcel version 1. ...?


PHPExcel 1.4.5 Production
PHP 5.1.6 on Win32 (I know PHPExcel supposedly requires PHP5.2 but all other Tests run fine. The problem is only with 05featuredemo.php and 07reader.php (both returning the same "Object of class PHPExcel_RichText could not be converted to int in Writer\Excel2007\Worksheet.php on line 749" notice".

Cheers,


Antonio
Coordinator
Oct 23, 2007 at 9:11 AM
Can you try PHPExcel 1.5.0 Production?
Oct 23, 2007 at 4:40 PM

maartenba wrote:
Can you try PHPExcel 1.5.0 Production?


PHPExcel 1.5.0 Production seems to run all tests just fine, except:

Test name: 05featuredemo.php
Notice: Object of class PHPExcel_RichText could not be converted to int in C:\workspace\jet\html\tests\PHPExcel\Classes\PHPExcel\Writer\Excel2007\Worksheet.php on line 806

Test name: 07reader.php
Notice: Object of class PHPExcel_RichText could not be converted to int in C:\workspace\jet\html\tests\PHPExcel\Classes\PHPExcel\Writer\Excel2007\Worksheet.php on line 806

Test name: 12serializedfileformat.php
Notice: Undefined variable: pPHPExcel in C:\workspace\jet\html\tests\PHPExcel\Classes\PHPExcel\Writer\Serialized.php on line 95
Fatal error: Call to a member function getSheet() on a non-object in C:\workspace\jet\html\tests\PHPExcel\Classes\PHPExcel\Writer\Serialized.php on line 95
Coordinator
Oct 24, 2007 at 5:57 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Oct 24, 2007 at 6:18 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Coordinator
Oct 24, 2007 at 6:19 AM
Copied this into two work items, found the problem.