Codeigniter shows blank page with no error

前端 未结 4 402
小鲜肉
小鲜肉 2021-01-13 11:12

I have one codeigniter app which was working fine on localhost. When I uploaded the same on server, it shows blank page & returning no error. I have also used approx. al

4条回答
  •  时光说笑
    2021-01-13 11:43

    First you need to go on root directrory of ci and open index.php file where you get enviornment which by default set to production, so first if you are a developer so change the environment to developer. Then save it and refresh your page. You must show the errors else blank page then if its your database mysql problem then you must firt try this it may help your problem. go to config->database.php and open this file. Where you get

    $db['default']['dbdriver'] = 'mysql';
    

    this line you must change this to -

    $db['default']['dbdriver'] = 'mysqli';
    

    Hope it will help if not then there must be any other problem. Good luck

提交回复
热议问题