一、服务器环境: 

    php + centos + apache


二、症状

    ueditor编辑界面可以显示,但单图片上传按钮点击没反应,多图片上传显示“后台配置项返回格式出错,上传功能将不能正常使用!”

ueditor-后台配置项返回格式出错,上传功能将不能正常使用!


三、分析

    1、打开浏览器调试模式,显示“后台配置项返回格式出错,上传功能将不能正常使用!”

ueditor-后台配置项返回格式出错,上传功能将不能正常使用!

    2、打开http://[domain]/include/ueditor/php/controller.php,提示“date_default_time_zone_set():Timezone ID 'Asia/chongqing' is invalid ”,而本地window开发环境并没有报这个错误。

ueditor-后台配置项返回格式出错,上传功能将不能正常使用!

    3、打开文件include\ueditor\php\controller.php,文件中调用了方法date_default_timezone_set("Asia/chongqing"); 


四、结论:

    可见时区"Asia/chongqing"的大小写出了问题,应该为"Asia/Chongqing",windows环境不区分大小写,所以没有报错,而linux环境是区分大小写的。


相关文章:

  • 2021-08-03
  • 2022-12-23
  • 2021-06-01
  • 2021-05-16
  • 2021-10-14
  • 2021-06-22
  • 2021-07-18
  • 2021-11-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案