upgrade from 1.4.x to 2.1.2 Error |
[eluser]Grego606[/eluser]
Here is what I've done so far: Installed the latest CI in a new folder. up dated config, database, routes and autoload Copied controllers, models and view files from legacy site. changed controllers to have CI_Controller and __construct() My reward: An Error Was Encountered The configuration file application.php does not exist. The error log: [03-Oct-2012 23:53:18 UTC] PHP Fatal error: Call to undefined method CI_Controller::CI_Controller() in /home/opendoor/public_html/cg/application/controllers/home.php on line 7 home.php /* line 5: */ public function __construct() { /* line 6: */ parent::__construct(); /* line 7: */ } What happen? And how do I fix it?
[eluser]LuckyFella73[/eluser]
Please post the complete home.php Controller code.
[eluser]Grego606[/eluser]
Code: <?php
[eluser]LuckyFella73[/eluser]
Are you sure you are calling this controller in a 2.1.2 version of CI? I copied your class to a working CI project and don't get the error you have.
[eluser]Grego606[/eluser]
Pretty sure. I downloaded the latest from this site, expanded it in a directory and copied the controllers in. http://cg.classicgaragerock.com
[eluser]LuckyFella73[/eluser]
Quote:The configuration file application.php does not exist. I would start to get rid of this error. Is it defined in autoload.php accidently or did you just forget to copy this config file?
[eluser]Grego606[/eluser]
Found all the config and library items that defined the administrative aria. Parse error: syntax error, unexpected T_STRING, expecting '{' in /home/opendoor/public_html/cg/application/models/datamapper.php on line 46 Code: class DataMapper CI_Model { // this is line 46
[eluser]PhilTem[/eluser]
I'd say you're Missing an extends on line 46 of that model
[eluser]Grego606[/eluser]
[quote author="PhilTem" date="1349450949"]I'd say you're Missing an extends on line 46 of that model [/quote] I saw that, but since it came from a fresh download of CI, I figured it must be correct. When I put "extends" in I get: Fatal error: Call to undefined method CI_Model::Model() in /home/opendoor/public_html/cg/application/models/datamapper.php on line 71 Code: /**
[eluser]Ed Robindon[/eluser]
Where does datamapper.php come from? Doesn't seem to be part if ci... |
Welcome Guest, Not a member yet? Register Sign In |