Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codeigniter shows blank page with no error

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. all method mentioned on Stackoverflow or other sites. Kindly guide me.

UPDATES

I found that there is

$this->load->database();    

When i remove this, it works, but when I add again, it doesn't work. My site is on shared hosting server

like image 794
Cool Perfectionist Avatar asked Mar 24 '15 10:03

Cool Perfectionist


People also ask

Why is my CodeIgniter not working?

Often when codeigniter displays nothing, there is a syntax error. Mostly if the app was running seamlessly previously, just look around your most recent edits. For me the experience this time was the entire app, not just a page.

Is there an exception handler for CodeIgniter?

In system/core/Common.php there is an exception handler, with a block of code that looks like this: By removing the if and the return and the incorrect comment, I was able to get an error message, instead of just a blank page. This project isn't using the most recent version of CodeIgniter, hopefully they've fixed this bug by now.

What should I avoid when writing a php codeigniter question?

But avoid … Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our tips on writing great answers. Not the answer you're looking for? Browse other questions tagged php codeigniter or ask your own question.

How to test for surpassed errors in codeignitor?

You can test for this in CodeIgnitor by looking at their core library under ../system/core/Common.php and finding a section that's at about line 615 that looks like: and you should be able to trap for surpassed errors, and debug from there.


1 Answers

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.

like image 151
Aniket Singh Avatar answered Sep 19 '22 09:09

Aniket Singh