无法打开PHPExcel文件,因为文件格式或文件扩展名无效

无法打开PHPExcel文件,因为文件格式或文件扩展名无效,php,wordpress,phpexcel,Php,Wordpress,Phpexcel,我开发了wordpress插件,使用PHPExcel库将自定义帖子内容导出到excel文件,当我将插件上载到服务器时,本地计算机上的一切正常打开excel文件时会出现此错误 file cannot open file because the file format or file extension is not valid 我在记事本中打开excel文件查看错误,我发现了这个 Parse error: syntax error, unexpected '[', expecting ')' i

我开发了wordpress插件,使用PHPExcel库将自定义帖子内容导出到excel文件,当我将插件上载到服务器时,本地计算机上的一切正常打开excel文件时会出现此错误

file cannot open file because the file format or file extension is not valid
我在记事本中打开excel文件查看错误,我发现了这个

Parse error: syntax error, unexpected '[', expecting ')' in /Classes/PHPExcel/Writer/Excel2007/Chart.php on line 637
在服务器5.3.28-1上运行的php版本

我怎样才能解决这个问题


谢谢你

很明显,你最近(19到5天前)从github上下载了这个,并且正在运行PHP