CodeIgniter Blank Page

前端 未结 6 1130
深忆病人
深忆病人 2021-01-16 01:43

n00b here. After searching the forums I have not yet come across this problem as I am experiencing it.

I have a CI site that was working correctly until about three

相关标签:
6条回答
  • 2021-01-16 02:32

    First Try to active error handlers for displaying of errors for addittional info to post here what error is occuring..

     // change settings for error handler to show errors
            // $this setup is used for checking errors for development to be shown.... 
            ini_set('display_errors', 1);
            error_reporting(E_ALL);
    

    by the way if your using CI version 2 higher you can see it in its index.php file an configuration for displaying error also.

    define('ENVIRONMENT', 'development'); //just set up environtment to development
    
    0 讨论(0)
  • 2021-01-16 02:32

    This was fixed by copying the application into a fresh CI 2.3 install.

    I have no idea what actually caused this "erratic" behaviour.

    The application worked correctly as designed whenever a BUTTON was CLICKED but gave the blank death screen when ENTER was PRESSED.

    This inconsistent behaviour is what threw me. The fact that my logs (CI and APACHE) also showed nothing was also very strange. Had this been a parse error, surely the behaviour on "Click" and on "Enter Press" should have been the same.

    My non-view controllers for various ad-hoc admin jobs are now also working correctly, which they were not before, as they use "Enter Press" (having no buttons to "Click").

    I am still going to invite best guesses as to why this behaviour occurred the way it did.

    Surely someone out there (Phil Sturgeon et al) with extensive CI experience has encountered this non-consistent blank screen behaviour and knows what caused it.

    Thank you to all the people who took the time and effort to assist me!!!

    Big UP!!! StackOverflow!!!

    0 讨论(0)
  • 2021-01-16 02:35

    Installing php5-pgsql worked for me

    0 讨论(0)
  • 2021-01-16 02:37

    My problem was Apache stop working because of ...Skype! Skype actually work on the same 443 and Apache didn't start! I hate this Skype! Bring me nuts for a while.

    0 讨论(0)
  • 2021-01-16 02:48

    Even though there are accepted answers I wanted to add a way that worked for me to figure out this problem.

    Usually the "Blank Page" indicates a PHP parsing error somewhere in the code. Strange thing for me was that on my local MAMP based test server the code ran fine. I FTP it to my hosted server and all of a sudden, blank page of death.

    Even though I had errors on, log errors on, display errors on, nothing appears in any log file.

    I was able to find the error by a funny little trick. I added an echo line in CodeIgniter.php in the system/core. Obviously hacking the core was not a great idea but all I wanted to do was to see how far it was getting in the load process.

    When my echo appeared after trying to load a page on the remote hosted server it also displayed the parsing problem in a derived controller! Not sure why the error did not come out without the "echo" added. But adding it seemed to trigger some output to be generated, IE my echo line and the PHP parse error was appended.

    Not sure if this will help anyone but it turned out to be a nice easy way to find the error which only showed on the remote server.

    Obviously, don't forget to put your core file back to its original state without the echo.

    0 讨论(0)
  • 2021-01-16 02:51

    probably error in INCLUDE login.php

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