Package Update/Upgrade Error
Permalink
Trying to figure out why I'm getting this error while adding new page attributes to a package. Everything works fine if I uninstall then reinstall the package, but I get this error if I try to upgrade it:
Everything works fine, but the attribute does not get added.
In my public function upgrade, I have:
Fatal error: Call to a member function getAttributeTypeID() on a non-object in /Users/justrjlewis/RJLewisDesign/Sites/development(Themes)/updates/concrete5.6.3.1_updater/concrete/core/models/attribute/key.php on line 250
Everything works fine, but the attribute does not get added.
In my public function upgrade, I have:
In the upgrade method,
doesn't return anything because the package object already exists as $this, so if you replace $pkg in your code with $this, that should solve the problem.