Codeigniter Rest Server - Fatal error: Class 'CI_Exceptions' not found

孤者浪人 提交于 2021-02-11 12:44:52

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/51914135/codeigniter-rest-server-fatal-error-class-ci-exceptions-not-found

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