Welcome Guest, Not a member yet? Register   Sign In
Blank white page
#1

[eluser]darrenfauth[/eluser]
I've been through all the posts I can find regarding getting blank white pages...but still unable to track down my issue. All pages of this site worked fine on my localhost (PHP 5.2.1). On the live server it is not. (PHP 4.4.9)

The root page of my site displays fine: http://onebadwheel.com
It is a simple action (and the default in my routes) that displays 3 views: header, home, footer with no dynamic data.

Code:
class Home extends Controller {

    function Home()
    {
        parent::Controller();    
    }
    
    function index()
    {
         // send to view
          $data['page_title'] = 'NASCAR Onebadwheel';
          $this->load->view('header', $data);
          $this->load->view('home');
          $this->load->view('footer');
    }
}

The page I am getting a blank white page is: http://onebadwheel.com/articles/

It should display an unordered list of linked article titles

Code:
class Articles extends Controller {

    function Articles()
    {
        parent::Controller();    
    }
    
    function index()
    {
        $this->load->model('article_model');
        // get article titles
        
        $data['rows'] = $this->article_model->getArticles();
        
        $data['page_title'] = 'NASCAR Onebadwheel Articles';
          
          //is data being created?
          echo '<pre>'.print_r($data, true) . '</pre>';
          
          $this->load->view('header', $data);
          $this->load->view('articles');
          $this->load->view('footer');
    }

My article_model is returning data evidenced by the print_r printing the array to the page.

The 3 views being passed are identical and well formed html as the home page:

Here is the articles view that should display the list of articles.

Code:
<div class="span-24 last">
<h1>NASCAR 101 Articles</h1>    
<ul>
        &lt;?php foreach($rows as $r) : ?&gt;
        
        &lt;?php $url = strtolower(str_replace(' ', '-', $r->title));?&gt;
        
        <li><a >id;?&gt;/&lt;?php echo $url;?&gt;">&lt;?php echo $r->title; ?&gt;</a></li>
        
        &lt;?php endforeach; ?&gt;
</ul>
</div>

(* the rest of the a tag and some of the url is not showing up in this post...but it is there)

I've got another function on the articles controller that will not display as well. Only the home page..nothing deeper. I've got my .htaccess set up to eliminate the index.php in the url.

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>


Any thoughts? I sure appreciate it.


Messages In This Thread
Blank white page - by El Forum - 08-21-2009, 07:35 PM
Blank white page - by El Forum - 08-21-2009, 08:04 PM
Blank white page - by El Forum - 08-21-2009, 08:16 PM
Blank white page - by El Forum - 08-21-2009, 08:25 PM
Blank white page - by El Forum - 08-21-2009, 08:42 PM
Blank white page - by El Forum - 08-21-2009, 08:55 PM
Blank white page - by El Forum - 08-21-2009, 09:10 PM
Blank white page - by El Forum - 08-21-2009, 09:18 PM
Blank white page - by El Forum - 08-21-2009, 09:32 PM
Blank white page - by El Forum - 08-21-2009, 11:26 PM
Blank white page - by El Forum - 08-22-2009, 09:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB