Loading xlsx to reader

Topics: Developer Forum, Project Management Forum, User Forum
Jan 12, 2015 at 10:39 PM

Couldn't find much in my searching online. My issue is occurring when I attempt to load xlsx files into PHPExcel. Extension xls works fine. It is not a memory issue. Please see code below:
try {
    $objReader = PHPExcel_IOFactory::createReader('Excel2007');
    $objPHPExcel = $objReader->load($file);
} catch (Exception $e) {
    die('Error loading file "' . pathinfo($inputFileName, PATHINFO_BASENAME) 
    . '": ' . $e->getMessage());
echo 'Post load data';
I do not get an error from the catch and do not get to 'Post load data'.

When attempting to perform:


I encounter the same problem. Any ideas?
Jan 13, 2015 at 2:05 PM
Alright doing further investigations. I executed the same process on two different servers with identical processes and files. Works fine on one but not the other.

What would cause it just to die out with no exceptions, no errors, nothing at all.
Jan 15, 2015 at 4:21 AM
Even further investigation.

Working server: PHP 5.3.1
Other server: PHP 5.2.8

Both support PHPExcel