有用Excel导入与导出这个插件的么?导出表时报错,有没有大神帮忙看一下!

开源系统 更新 2017-10-25 17:26:10 迅睿粉丝

QQ截图20170921002546.png



导出表时报错

blob.png

<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>


ERROR - 2017-09-21 00:22:16 --> Severity: Compile Error --> 'break' not in the 'loop' or 'switch' context /data/wwwroot/test/diy/app/excel/Classes/PHPExcel/Calculation/Functions.php 581

ERROR - 2017-09-21 00:24:17 --> Severity: Compile Error --> 'break' not in the 'loop' or 'switch' context /data/wwwroot/test/diy/app/excel/Classes/PHPExcel/Calculation/Functions.php 581

ERROR - 2017-09-21 10:43:11 --> Severity: Compile Error --> 'break' not in the 'loop' or 'switch' context /data/wwwroot/test/diy/app/excel/Classes/PHPExcel/Calculation/Functions.php 581


方案

  • 迅睿粉丝 #1 · 2017-09-22 10:02:16
    应该是你的php版本太高了,PHPExcel不支持php7
  • 迅睿粉丝 #2 · 2017-09-22 11:50:48
    满意答案
    【赵绫】1楼我自己找了点资料修复这个问题,在php7也是可以用的!/diy/app/excel/Classes/PHPExcel/Calculation/Functions.php 581删除掉581行的break即可
  • 迅睿粉丝 #3 · 2017-10-25 17:26:10
    感谢大家给我解决此问题,我已经完美的解决

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关