Fatal error: Call to undefined method PHPExcel_Worksheet::getRowIterator() in C:\xampp\htdocs\...

Topics: Developer Forum, Project Management Forum, User Forum
Dec 30, 2009 at 10:51 PM

This error beats me. I have copied the piece of code directly from the official PHPExcel documentation and I have searched for string "getRowIterator" in all PHPExcel class files - there is no such method.

Is this a syntax error in documentation? Is there getRowIterator() at all?


Thanx in advance!

Jan 6, 2010 at 8:35 AM
Edited Jan 6, 2010 at 8:37 AM

getRowIterator() is in the PHPExcel_Worksheet class (/Classes/PHPExcel/Worksheet.php) because you iterate through the rows in a worksheet. Requires PHPExcel 1.6.7 or above