Codeigniter Rest Server-致命错误:找不到类"CI_Exceptions" [英] Codeigniter Rest Server - Fatal error: Class 'CI_Exceptions' not found

查看:77
本文介绍了Codeigniter Rest Server-致命错误:找不到类"CI_Exceptions"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用CodeIgniter rest服务为我的android应用创建rest API.在本地主机上一切都很好.但是,当我将其上传到实时服务器上并再次进行测试时,它会引发错误.我是第一次创建rest API,所以我不知道自己在做什么错.在localhost上仍然可以正常工作.请帮助我找出错误之处,或者这是实时服务器问题.您的回答将不胜感激.谢谢

I try to create a rest API for my android app using CodeIgniter rest services. Everything is fine on localhost. but when I upload it on live server and test again it throws the error. I creating rest API very first time so I have no idea what I'm doing wrong. It still works fine on localhost. Please help me to find out where I make mistake or it is a live server problem. Your answers will be appreciated. Thanks

推荐答案

我将给出我的问题的答案.我希望这会帮助其他人解决此类错误.我将特定域的服务器上的PHP版本从5.4.45更改为7.1.8 .在更改PHP版本之前,它会显示错误未找到CI_Exceptions类.然后我更改了PHP版本,现在对我有用.我也遇到了其他一些问题,但是我通过stackoverflow解决了这些问题我希望这对其他人有帮助

I'm going to give answer of my question. I hope this will help others to solve this type of error. I changed my PHP version on server of a particular domain from 5.4.45 to 7.1.8. Before I changing my PHP version it gives me error CI_Exceptions class not found. and then I changed my PHP version and now that's working for me. I faced some other problems also but I solved them by help of stackoverflow I hope this will help others

这篇关于Codeigniter Rest Server-致命错误:找不到类"CI_Exceptions"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆