Codeigniter shows blank page with no error

前端 未结 4 391
小鲜肉
小鲜肉 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:36

    in index.php file located in your base check

    define('ENVIRONMENT', 'development');
    

    if it's not then define it same.

    Or you can write

    error_reporting(E_ALL);
    

    At end of this file, definitely it should work.

    0 讨论(0)
  • 2021-01-13 11:41

    I had the same issue Apparently firefox doesn't show any errors (blank page) but chrome shows error 500.

    To fix it you need to install php's fileinto extention (extension=php_fileinfo.dll)

    Search based on your OS to see how to do it.

    I am using XAMPP in windows 7 - I did it as follows :

    1-go to xampp/php/php.ini
    
    2-change  
         ;php_fileinfo.dll
    to 
          php_fileinfo.dll
    
    3-save the file
    4-restart apache from xampp control
    
    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-01-13 11:44

    @guys solved this issue, there is issue with Server PHP version. Now My website is running successfully. Thanks to all participants

    0 讨论(0)
提交回复
热议问题