Upgrade to 2.0.2 from 1.7.2 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Upgrade to 2.0.2 from 1.7.2 (/showthread.php?tid=40528) Pages:
1
2
|
Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-11-2011 [eluser]mabright[/eluser] Sorry if I missed a link or post with detailed information for upgrading from 1.7.2 to 2.0.2. I do not have a system or core folder in my 1.7.2 setup, can't remember if I renamed some folders, it's been awhile since I have done any coding. How do I properly upgrade from 1.7.2? I actually just need to know where the files in the core folder should go. Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-11-2011 [eluser]wh1tel1te[/eluser] Any CI library extensions, e.g. MY_Controller.php MY_Loader.php, which were originally in "libraries", you must move to the "core" folder in 2.0. Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-11-2011 [eluser]InsiteFX[/eluser] All Controllers now extend CI_Controller All Models now extend CI_Model If the library you are extending is in system/core then your library goes into application/core If the library you are extending is in system/libraries then your library goes into application/libraries If you use a MY_Controller it may not work! So you need to add this... application/config/config.php - to the bottom of the config file. Code: /* InsiteFX Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-11-2011 [eluser]mabright[/eluser] I made all the updates (thanks for the replies) but now all my pages which previously worked all error with "Fatal error: Call to undefined method CI_DB_mysql_driver::where() in ....../libraries/Session.php on line 201" I am also now getting error "Fatal error: Call to undefined method CI_Controller::Controller() in ". I use a MY_Controller but I already moved it to the core folder as suggested. Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-14-2011 [eluser]wbremen[/eluser] Quote:I am also now getting error "Fatal error: Call to undefined method CI_Controller::Controller() in ". I use a MY_Controller but I already moved it to the core folder as suggested. I am experiencing the same problem which is caused by the following lines: $CI =& get_instance(); in my extended core class (MY_Lang) Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-14-2011 [eluser]mabright[/eluser] see my post in the main forum. http://ellislab.com/forums/viewthread/186282/ Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-14-2011 [eluser]InsiteFX[/eluser] Make sure you use the above autoload code! application/core/MY_Controller.php Code: class MY_Controller extends CI_Controller { InsiteFX Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-15-2011 [eluser]wbremen[/eluser] I tried the autoload and also the things described in the other thread but I still get this error, it is slightly diffrent to the one here. (I tried 2.0.2, 2.0.1 and 2.0.0 and the error applies to all those versions). I am confused. Now here the thing (completly new/clean Codeigniter 2.0.0) This works (application/core/MY_Lang.php): Code: class MY_Lang extends CI_Lang { This does not (application/core/MY_Lang.php): Code: class MY_Lang extends CI_Lang { I get this error for line 210 in CodeIgniter.php Quote:Fatal error: Class 'CI_Controller' not found in system\core\CodeIgniter.php on line 210 ... which refers to the following lines: Code: require BASEPATH.'core/Controller'.EXT; Not my script fails to load the CI_Controller but the CodeIgniter.php Core File... Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-15-2011 [eluser]InsiteFX[/eluser] Did you copy over the new index.php file? InsiteFX Upgrade to 2.0.2 from 1.7.2 - El Forum - 04-15-2011 [eluser]wbremen[/eluser] sure. |