Login   Register  
PHP Classes
elePHPant
Icontem

Find bug

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Simple XLSX  >  All threads  >  Find bug  >  (Un) Subscribe thread alerts  
Subject:Find bug
Summary:Bug if on List 2...N not exists data.
Messages:4
Author:beba
Date:2012-12-08 15:34:16
Update:2013-03-12 20:15:26
 

  1. Find bug   Reply  
Picture of beba
beba
2012-12-08 15:34:16
Hi, find a bug.

When Delete all rows and cols on Sheet Excel file, and this sheet get to SimpleXLSX, I have a error.

Uncaught exception 'Exception' with message 'Invalid cell index.' in
/DIR/simplexlsx.class.php:192

Stack trace:
#0 DIR/FILENAME(107): SimpleXLSX->_columnIndex(NULL)
#1 DIR/FILENAME(119): SimpleXLSX->dimension(2)
#2 DIR/FILENAME(245): SimpleXLSX->rows(2)
#3 XXXXXXX
#4 XXXXXXX

Resolve, diff:

106: $d = explode(':', $ref);
107:
108: if( is_null($d[1]) ) return false; // NEW RECORD FIX BUG
109:
110: $index = $this->_columnIndex( $d[1] );

  2. Re: Find bug   Reply  
Picture of Sergey Shuchkin
Sergey Shuchkin
2012-12-09 07:04:01 - In reply to message 1 from beba
thx, I'll add it next release

  3. Re: Find bug   Reply  
Picture of Bruce
Bruce
2013-03-12 09:16:19 - In reply to message 2 from Sergey Shuchkin
Hi Sergey,
Your code has been very helpful. Thank you very much.
I had this error too recently. When can we get the new release?
Thanks
Bruce

  4. Re: Find bug   Reply  
Picture of Sergey Shuchkin
Sergey Shuchkin
2013-03-12 20:15:26 - In reply to message 3 from Bruce
0.6.3