CodeIgniter Forums
404 Page Not Found - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: 404 Page Not Found (/showthread.php?tid=14818)



404 Page Not Found - El Forum - 01-16-2009

[eluser]danish[/eluser]
Hi,
The website is working fine on my local machine. But when I uploaded it on a Unix Hosting Server hosted by asmallorange, this site is giving me the following error.

"404 Page Not Found
Te page you requested was not found."



It is not working even if I enter this URL.
But I can see only one page which is http://www.basheer.com/projects/autoservicetime/index.php?/admin/login
When I enter username and password here then I get the following error.
Unable to locate the model you have specified: adminmodel

Please check this issue and tell me the solution. I have tried almost all possible solutions which are given on this forum. Please see this issue asap.
Thanks


404 Page Not Found - El Forum - 01-16-2009

[eluser]Tom Schlick[/eluser]
what does ur .htaccess file look like? also paste your controller here


404 Page Not Found - El Forum - 01-16-2009

[eluser]danish[/eluser]
This is my .htaccess file and which controller you want?


RewriteEngine On
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]


404 Page Not Found - El Forum - 01-16-2009

[eluser]Tom Schlick[/eluser]
what ever the autoloading one is. the one that powers the page your looking to show


404 Page Not Found - El Forum - 01-16-2009

[eluser]danish[/eluser]
here is the main controller, the file was very big. This forum was not allowing me to attach the file so I am pasting the main functions here.


Code:
<?php

class main extends Controller {

    function index()
    {
        redirect('main/view/home','refresh');
    }
    
    
    function view($PageName)
    {
        if(strcasecmp('sitemap',$PageName) == 0 )
        {
            redirect('main/sitemap','refresh');
        }
        
        if(strcasecmp('ShopManagement',$PageName) == 0)
        {
            redirect('main/viewshop/main','refresh');
        }
        
        $username = $this->session->userdata('user');
        
        if ($PageName == '')
        {
            $PageName = 'home';
        }
        
        $this->load->model('Links');
        $AdminLinks = Links::GetUserLinksList();
            
        
        $this->load->model('Links');
        $AdminLinks = Links::GetLoggedInUserLinksList();
                
        $data['link_list'] = $AdminLinks;
        $data['ActivePage'] = $PageName;
                                                
        $data['nav'] = $this->load->view('navdb', $data, true);
        $this->load->view('header',$data);
        
        $this->load->model('PagesData');
        $data['PageData'] = PagesData::GetPageList_Alias($PageName);
        $data['DataType'] = 'Row';
        
        $data['SearchBar'] = "";
        if(strcasecmp('home',$data['ActivePage']) == 0)
        {
            $data['SearchBar'] = $this->_LoadSearchBarData("");
        }
        
        $this->load->view('content',$data);
        $this->load->view('footer');
    }



404 Page Not Found - El Forum - 01-16-2009

[eluser]Tom Schlick[/eluser]
hmm. open up the system/logs/todaysdate.php file and paste the last 50 or so lines here


404 Page Not Found - El Forum - 01-16-2009

[eluser]danish[/eluser]
the logs folder is empty. How to enable logs :-s


404 Page Not Found - El Forum - 01-16-2009

[eluser]Tom Schlick[/eluser]
chmod the logs file to 755 and turn log_threshold to 4 in the config/config.php


404 Page Not Found - El Forum - 01-16-2009

[eluser]danish[/eluser]
here is the error log
Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

DEBUG - 2009-01-16 09:44:51 --> Config Class Initialized
DEBUG - 2009-01-16 09:44:51 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:44:51 --> URI Class Initialized
ERROR - 2009-01-16 09:44:51 --> 404 Page Not Found --> main
DEBUG - 2009-01-16 09:45:06 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:06 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:06 --> URI Class Initialized
ERROR - 2009-01-16 09:45:06 --> 404 Page Not Found --> main
DEBUG - 2009-01-16 09:45:10 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:10 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:10 --> URI Class Initialized
ERROR - 2009-01-16 09:45:10 --> 404 Page Not Found --> main
DEBUG - 2009-01-16 09:45:14 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:14 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:14 --> URI Class Initialized
ERROR - 2009-01-16 09:45:14 --> 404 Page Not Found --> main
DEBUG - 2009-01-16 09:45:18 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:18 --> URI Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Router Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Output Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Input Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Global POST and COOKIE data sanitized
DEBUG - 2009-01-16 09:45:18 --> Language Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Loader Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Helper loaded: form_helper
DEBUG - 2009-01-16 09:45:18 --> Helper loaded: url_helper
DEBUG - 2009-01-16 09:45:18 --> Helper loaded: html_helper
DEBUG - 2009-01-16 09:45:18 --> Database Driver Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Session Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Helper loaded: string_helper
DEBUG - 2009-01-16 09:45:18 --> Session routines successfully run
DEBUG - 2009-01-16 09:45:18 --> Validation Class Initialized
DEBUG - 2009-01-16 09:45:18 --> Controller Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:19 --> URI Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Router Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Output Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Input Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Global POST and COOKIE data sanitized
DEBUG - 2009-01-16 09:45:19 --> Language Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Loader Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Helper loaded: form_helper
DEBUG - 2009-01-16 09:45:19 --> Helper loaded: url_helper
DEBUG - 2009-01-16 09:45:19 --> Helper loaded: html_helper
DEBUG - 2009-01-16 09:45:19 --> Database Driver Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Session Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Helper loaded: string_helper
DEBUG - 2009-01-16 09:45:19 --> Session routines successfully run
DEBUG - 2009-01-16 09:45:19 --> Validation Class Initialized
DEBUG - 2009-01-16 09:45:19 --> Controller Class Initialized
DEBUG - 2009-01-16 09:45:19 --> File loaded: /home/erfaan/public_html/projects/autoservicetime/system/application/views/nav.php
DEBUG - 2009-01-16 09:45:19 --> File loaded: /home/erfaan/public_html/projects/autoservicetime/system/application/views/header.php
DEBUG - 2009-01-16 09:45:19 --> File loaded: /home/erfaan/public_html/projects/autoservicetime/system/application/views/loginbar.php
DEBUG - 2009-01-16 09:45:19 --> File loaded: /home/erfaan/public_html/projects/autoservicetime/system/application/views/footer.php
DEBUG - 2009-01-16 09:45:19 --> Final output sent to browser
DEBUG - 2009-01-16 09:45:19 --> Total execution time: 0.1764
DEBUG - 2009-01-16 09:45:21 --> Config Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Hooks Class Initialized
DEBUG - 2009-01-16 09:45:21 --> URI Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Router Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Output Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Input Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Global POST and COOKIE data sanitized
DEBUG - 2009-01-16 09:45:21 --> Language Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Loader Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Helper loaded: form_helper
DEBUG - 2009-01-16 09:45:21 --> Helper loaded: url_helper
DEBUG - 2009-01-16 09:45:21 --> Helper loaded: html_helper
DEBUG - 2009-01-16 09:45:21 --> Database Driver Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Session Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Helper loaded: string_helper
DEBUG - 2009-01-16 09:45:21 --> Session routines successfully run
DEBUG - 2009-01-16 09:45:21 --> Validation Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Controller Class Initialized
DEBUG - 2009-01-16 09:45:21 --> Language file loaded: language/english/form_validation_lang.php



404 Page Not Found - El Forum - 01-16-2009

[eluser]danish[/eluser]
hi,
solved the issue by myself..
anyways thanks for your help...