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
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With