Welcome Guest, Not a member yet? Register   Sign In
Blank page on live system
#1

[eluser]davidbehler[/eluser]
Hey,
I know there are countless posts about a blank page showing instead of the actual content of the page but none of them seemed to describe the problem I got.

On my pc I got an vm with ubuntu running on it and web server and all installed --> works just fine. But now I uploaded my files to my online web server and all I get is a blank page.

As far as i can tell, there is an infinite loop going on but I don't know why. My default controller is called again and again and again...I added a counter to see how often it was called and displayed the count after each load. It ended @ 1000+.

Any idea why that happens?

I have just set log_threshold to 4 and the log file contains the following:

Code:
DEBUG - 2008-09-16 12:03:37 --> Config Class Initialized
DEBUG - 2008-09-16 12:03:37 --> Hooks Class Initialized
DEBUG - 2008-09-16 12:03:37 --> URI Class Initialized
DEBUG - 2008-09-16 12:03:37 --> No URI present. Default controller set.
DEBUG - 2008-09-16 12:03:37 --> Router Class Initialized
DEBUG - 2008-09-16 12:03:37 --> Output Class Initialized
ERROR - 2008-09-16 12:03:37 --&gt; Severity: Warning  --&gt; fopen(/www/htdocs/my_username/dbm/system/cache/fc490ca45c00b1249bbe3554a4fdf6fb) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: Permission denied /www/htdocs/my_username/dbm/system/codeigniter/Common.php 49
DEBUG - 2008-09-16 12:03:37 --&gt; Input Class Initialized
DEBUG - 2008-09-16 12:03:37 --&gt; Global POST and COOKIE data sanitized
DEBUG - 2008-09-16 12:03:37 --&gt; Language Class Initialized
DEBUG - 2008-09-16 12:03:37 --&gt; Loader Class Initialized
DEBUG - 2008-09-16 12:03:37 --&gt; Helpers loaded: url, form
DEBUG - 2008-09-16 12:03:37 --&gt; Database Driver Class Initialized
DEBUG - 2008-09-16 12:03:37 --&gt; Session Class Initialized (db)
DEBUG - 2008-09-16 12:03:37 --&gt; Session garbage collection performed.
DEBUG - 2008-09-16 12:03:37 --&gt; Validation Class Initialized
DEBUG - 2008-09-16 12:03:37 --&gt; Controller Class Initialized
DEBUG - 2008-09-16 12:03:37 --&gt; Model Class Initialized

Thx
waldmeister
#2

[eluser]Doosje[/eluser]
i think the cache dir isn't writable .. check that
#3

[eluser]davidbehler[/eluser]
As you can see in my post there actually is a log file being created.
I deleted the log file and reloaded my page just to make sure it's writable:

Code:
DEBUG - 2008-09-16 12:19:04 --&gt; Config Class Initialized
DEBUG - 2008-09-16 12:19:04 --&gt; Hooks Class Initialized
DEBUG - 2008-09-16 12:19:04 --&gt; URI Class Initialized
DEBUG - 2008-09-16 12:19:04 --&gt; No URI present. Default controller set.
DEBUG - 2008-09-16 12:19:04 --&gt; Router Class Initialized
DEBUG - 2008-09-16 12:19:04 --&gt; Output Class Initialized
DEBUG - 2008-09-16 12:19:04 --&gt; Input Class Initialized
DEBUG - 2008-09-16 12:19:04 --&gt; Global POST and COOKIE data sanitized
DEBUG - 2008-09-16 12:19:04 --&gt; Language Class Initialized
DEBUG - 2008-09-16 12:19:04 --&gt; Loader Class Initialized
DEBUG - 2008-09-16 12:19:04 --&gt; Helpers loaded: url, form
DEBUG - 2008-09-16 12:19:04 --&gt; Database Driver Class Initialized
DEBUG - 2008-09-16 12:19:04 --&gt; Session Class Initialized (db)
DEBUG - 2008-09-16 12:19:04 --&gt; A session cookie was not found.
DEBUG - 2008-09-16 12:19:04 --&gt; sending session cookie
DEBUG - 2008-09-16 12:19:05 --&gt; Validation Class Initialized
DEBUG - 2008-09-16 12:19:05 --&gt; Controller Class Initialized
DEBUG - 2008-09-16 12:19:05 --&gt; Model Class Initialized

Guess the cache errors were caused by missing write permissions on the cache folder but the actual problem of a blank page is still there. The cookie is created successfully and an entry in my session table in the database is created aswell.

Need any more info?
#4

[eluser]Doosje[/eluser]
Blank page usually happens . .when you have logging on . .and the log dir isn't writable ..
#5

[eluser]xwero[/eluser]
Is the database server configuration for the live server the same as for the development server? maybe for the live server you use a version of the database lower than the required version?
#6

[eluser]davidbehler[/eluser]
Live system:
Server Version: 4.1.22-max-log
MySQL-Client-Version: 5.0.27

Local:
Server Version: 5.0.51a-3ubuntu5.1
MySQL-Client-Version: 5.0.51a

I don't know what the different is between server version and client version but that's what phpmyadmin is showing meSmile

But as CI requires MySQL 4.1+, both should be sufficient.
#7

[eluser]xwero[/eluser]
are you redirecting the page somewhere in the controller?
#8

[eluser]davidbehler[/eluser]
Are you talking about something like
Code:
header($url);

That's done somewhere in that controller but not in the function thats being called.

I am accessing the page without using a specific controller/function and therefor it should take me right to my default controller and its index function, right?

That one looks like this:
Code:
class Datamodel extends Controller {

    function Datamodel()
    {
        parent::Controller();
        $this->load->model('Datamodel_model');
    }

    function index()
    {
        $this->select();
    }

    function select()
    {
        $datamodel_list = $this->Datamodel_model->get_datamodel_list();
        $this->view_control->add_data('datamodel_list', $datamodel_list);
        $this->view_control->add_data('title', 'Select datamodel');
        $this->view_control->set_view_main('datamodel_select');
        $this->view_control->view();
    }
...
#9

[eluser]davidbehler[/eluser]
*bump*

Any other ideas how to fix this?
#10

[eluser]Chicken's Egg[/eluser]
A very late reply, but may be usefull for others. I discovered that CodeIgniter can give a blanc page (or white page if you please) if you set the log_threshold in your configuration other then 0 and don't CHMODD your log-directory to 777. Any less then 777 doesn't work unfortunately.




Theme © iAndrew 2016 - Forum software by © MyBB