Welcome Guest, Not a member yet? Register   Sign In
errors after upgrading to CI2.0 stable
#1

[eluser]drmanny[/eluser]
Hi,
i am getting errors after upgrading to CI2.0 stable, these used to function in CI 2.0 beta
Controllers in a sub-folder , now show as 404 error


any suggestions ???
thanks
Manny
#2

[eluser]kaisama[/eluser]
Have you checked to see whether your controllers are extending CI_Controller instead of Controller?

Or if your controllers are following PHP5 coding standards?
Code:
<?php
class Welcome extends CI_Controller
{
     function __construct()
     {
          parent::__construct();

          // Can load your models and crap here.
     }

     function index()
     {
          // Your code goes here.
     }
}

It can be a number of things from the two things I just mentioned, to an error in your .htaccess file (if you're using one), etc. Your original post is a little vague.

I would suggest opening your config.php file and setting the log value to 4 to log everything. Try loading your page after you have changed it and open the log. Should be able to pinpoint what the problem is from there (and be sure to change it back to whatever you had before, after you fix your problem).
#3

[eluser]drmanny[/eluser]
@kaisama
My controllers in the sub folder are PHP5 coding standards.
controllers in controller folder show fine , only in subfolder show 404 error
i have enabled logging , thanks for that

thanks
Manny
#4

[eluser]drmanny[/eluser]
Code:
DEBUG - 2011-02-07 06:01:36 --> Config Class Initialized
DEBUG - 2011-02-07 06:01:36 --> Hooks Class Initialized
DEBUG - 2011-02-07 06:01:36 --> Utf8 Class Initialized
DEBUG - 2011-02-07 06:01:36 --> UTF-8 Support Enabled
DEBUG - 2011-02-07 06:01:36 --> URI Class Initialized
DEBUG - 2011-02-07 06:01:36 --> Router Class Initialized
DEBUG - 2011-02-07 06:01:36 --> Output Class Initialized
DEBUG - 2011-02-07 06:01:36 --> Input Class Initialized
DEBUG - 2011-02-07 06:01:36 --> Global POST and COOKIE data sanitized
DEBUG - 2011-02-07 06:01:36 --> Language Class Initialized
DEBUG - 2011-02-07 06:01:36 --> Loader Class Initialized
DEBUG - 2011-02-07 06:01:36 --> Helper loaded: url_helper
DEBUG - 2011-02-07 06:01:36 --> Helper loaded: form_helper
DEBUG - 2011-02-07 06:01:36 --> Helper loaded: cookie_helper
DEBUG - 2011-02-07 06:01:36 --> Helper loaded: autorun_helper
DEBUG - 2011-02-07 06:01:36 --> Helper loaded: sg_helper
DEBUG - 2011-02-07 06:01:36 --> Database Driver Class Initialized
DEBUG - 2011-02-07 06:01:36 --> Session Class Initialized
DEBUG - 2011-02-07 06:01:36 --> Helper loaded: string_helper
DEBUG - 2011-02-07 06:01:36 --> Session routines successfully run
DEBUG - 2011-02-07 06:01:36 --> Controller Class Initialized
DEBUG - 2011-02-07 06:01:36 --> File loaded: application/views/templates/share_this.php
DEBUG - 2011-02-07 06:01:36 --> File loaded: application/views/templates/menu.php
DEBUG - 2011-02-07 06:01:36 --> File loaded: application/views/templates/header.php
DEBUG - 2011-02-07 06:01:36 --> File loaded: application/views/pages/sitemap.php
DEBUG - 2011-02-07 06:01:36 --> File loaded: application/views/errors/404.php
DEBUG - 2011-02-07 06:01:36 --> File loaded: application/views/templates/footer.php
DEBUG - 2011-02-07 06:01:36 --> Final output sent to browser
DEBUG - 2011-02-07 06:01:36 --> Total execution time: 0.0303

the controller goes to 404...no errors i see
can you help
#5

[eluser]jvk22[/eluser]
drmanny do u have any instant messenger programs?
#6

[eluser]drmanny[/eluser]
still no luck
#7

[eluser]InsiteFX[/eluser]
The MY_Controller needs to be placed in application/core not application/libraries

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB