Fatal error: Class PHPExcel_Shared_OLE_PPS_File not found

Topics: Developer Forum, Project Management Forum, User Forum
Jun 29, 2011 at 3:56 PM
Edited Jun 30, 2011 at 2:41 AM

Fatal error: Class PHPExcel_Shared_OLE_PPS_File not found

 This error appears when testing the test script "01simple-download-xls.php" in my PC in Linux (OpenSuse 11.1, Apache 2, PHP 5.2.14)

Fatal error: Class 'PHPExcel_Shared_OLE_PPS_File' not found in /srv/www/htdocs/Certificados/Clases/PHPExcel/PHPExcel/Writer/Excel5.php on line 165

To reproduce the error is necessary to put in the beginning of the script:


           ini_set("display_errors", "on");

 On the same PC on Linux (OpenSuse 11.1, Apache 2, PHP 5.2.14)  the Excel 2007 (01simple-download-xlsx.php) IS GENERATED OK. 

 In a online server (free hosting) with Linux IS THE SAME ERROR.

This same script (with the same path folder) in my PC with Windows XP with Wamp (PHP 5.3.5, Apache 2.2.17) IS GENERATED OK. 

Jun 29, 2011 at 4:24 PM

I forgot the PHPExcel version. Is the last: v 1.7.6.

Thanks for reply.

Sep 13, 2011 at 3:33 PM


I found the solution:

In Windows works because windows not is case sensitive in the file names.
Linux yes.

So, the solution is convert name of files and folders that the scripts search (for Excel 5 generation)

\PHPExcel\PHPExcel\Shared\ole\ to \PHPExcel\PHPExcel\Shared\OLE\
\PHPExcel\PHPExcel\Shared\ole.php to \PHPExcel\PHPExcel\Shared\OLE.php

\PHPExcel\PHPExcel\Shared\OLE\pps to \PHPExcel\PHPExcel\Shared\OLE\PPS
\PHPExcel\PHPExcel\Shared\OLE\pps.php to \PHPExcel\PHPExcel\Shared\OLE\PPS.PHP

\PHPExcel\PHPExcel\Shared\OLE\PPS\file.php to \PHPExcel\PHPExcel\Shared\OLE\PPS\File.php
\PHPExcel\PHPExcel\Shared\OLE\PPS\root.php to \PHPExcel\PHPExcel\Shared\OLE\PPS\Root.php

Hopefully this serves to save time and headaches to someone else ;-)

Thanks and thanks for the class. I will send a payment.