C
C
coderisimo2015-01-14 02:58:56
PHP
coderisimo, 2015-01-14 02:58:56

What's with the weird PHPEXCEL error?

I import data from the uploaded file. I get an error:
Fatal error: Uncaught exception 'PHPExcel_Exception' with message 'You tried to set a sheet active by the out of bounds index: 1.
BUT! if I open this file and resave it (without editing anything!) everything works as it should.
what the..**** ?
When Windows boots up, it disables potentially dangerous content. And after opening-resaving the file is considered "own" and does not cause errors. The question is how to make sure that the file does not have to be resaved

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Aksentiev, 2015-01-14
@Sanasol

Well, translate the mistake.
You put active page 1, which is not. Try 0

C
coderisimo, 2015-01-14
@coderisimo

The bottom line is that this file has 1 page. I wrote in the question that after resaving everything reads the SAME file. I think this oprationka messes up with security and blocks the content.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question