We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Error on Upgrade (2.4.0->2.52) Unable to locate the model you have specified

Development and Programming

dstechroom's avatar
dstechroom
113 posts
13 years ago
dstechroom's avatar dstechroom

Hello,

We were in the process of upgrading a client’s site (in local git) and ran into an issue. We have resolved it, but thought it might be a good thing to report.

All of the files were copied from system/ themes/ and images/ to the current project. Visiting the control panel brings up the usual upgrade message. We were able to click through all the way to the license agreement. Selecting submit from there led to the following error:

Unable to locate the model you have specified: agedata

Agedata is a model for a specific module/extension created for this project implementing an age gate on the site’s root address. We tried changing

$this->EE->load->model('agedata');

to

require_once(dirname(__FILE__).'/models/agedata.php'); $this->agedata = new Agedata();

This led to being able to see more informative php errrors, which pointed to not being able to find CI_model. So we also changed the agedata model to not extend CI_model.

This finally worked in allowing the installer to finish. After removing the installer, the control panel worked perfectly fine, but the site itself complained of not being able to find certain properties in agedata, so we had to revert both of the above changes to restore the site.

This seems like an issue with the updater itself. Not sure why the updater was even invoking that add on as it is in the site’s index template.

       
Dan Decker's avatar
Dan Decker
7,338 posts
13 years ago
Dan Decker's avatar Dan Decker

Hi dstechroom,

Thanks for bringing this up. I have run into this issue myself on occasion and a quick rename of /system/expressionengine/third_party allows the installer to complete. Once that is done, rename it back and all is well.

I’m going to move this into Development and Programming for discussion.

Cheers,

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.