PHPExcel Class 'PHPExcel_Worksheet' not found

 ̄綄美尐妖づ 提交于 2019-12-24 13:30:31

问题


I got the following error when importing PHPExcel into my framework:

Fatal error: Class 'PHPExcel_Worksheet' not found in /var/www/library/phpexcel.class.php on line 109

I am autoloading my classes including PHPExcel but it looks like PHPExcel uses spl_autoload_register to register any existing autoloader functions with SPL. I also tried echoing the files as they were being loaded and got

/var/www/library/PHPExcel/Shared/ZipStreamWrapper.php
/var/www/library/PHPExcel/Shared/String.php
Fatal error: Class 'PHPExcel_Worksheet' not found in /var/www/library/phpexcel.class.php on line 109

So it seems Autoloader.php isn't the issue since ZipStreamWrapper.php and String.php are being loaded. Any suggestions at all would be appreciated, thanks!

来源:https://stackoverflow.com/questions/16646938/phpexcel-class-phpexcel-worksheet-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!