PHP Error while upgrade from 5.5.2.2a1 to 5.6.0.1
Permalink
I've been trying to update C5. I keep running into this error after I click the Upgrade button:
Catchable fatal error: Argument 1 passed to Concrete5_Model_GroupPermissionAccessEntity::getOrCreate() must be an instance of Group, null given, called in /var/www/c5/concrete/helpers/concrete/upgrade/version_560.php on line 260 and defined in /var/www/c5/concrete/core/models/permission/access/entity/types/group.php on line 39
My process:
mv ./concrete foler to ./concrete.old
cp ~/concrete5.6.0.1/concrete/* ./concrete
Point browser to: index.php/tools/required/upgrade.php
I can't seem to figure out what the problem is.
Thanks in advance for your suggestions!
J
Catchable fatal error: Argument 1 passed to Concrete5_Model_GroupPermissionAccessEntity::getOrCreate() must be an instance of Group, null given, called in /var/www/c5/concrete/helpers/concrete/upgrade/version_560.php on line 260 and defined in /var/www/c5/concrete/core/models/permission/access/entity/types/group.php on line 39
My process:
mv ./concrete foler to ./concrete.old
cp ~/concrete5.6.0.1/concrete/* ./concrete
Point browser to: index.php/tools/required/upgrade.php
I can't seem to figure out what the problem is.
Thanks in advance for your suggestions!
J
The same issues happens to me on fresh install of 5.6.0.2
[02-Oct-2012 11:37:47 UTC] PHP Catchable fatal error: Argument 1 passed to Concrete5_Model_GroupPermissionAccessEntity::getOrCreate() must be an instance of Group, null given, called in /pathtoinst/concrete/core/models/page.php on line 323 and defined in /pathtoinst/concrete/core/models/permission/access/entity/types/group.php on line 39
[02-Oct-2012 11:37:47 UTC] PHP Catchable fatal error: Argument 1 passed to Concrete5_Model_GroupPermissionAccessEntity::getOrCreate() must be an instance of Group, null given, called in /pathtoinst/concrete/core/models/page.php on line 323 and defined in /pathtoinst/concrete/core/models/permission/access/entity/types/group.php on line 39
I ran into this same issue and took a look at line 260 of version_560.php
The "Administrators" group had been deleted from the site I was attempting to upgrade. In a fresh install the "Administrators" group should have a gID of 3 in the 'groups' db table so I manually added a new record to the table with a gID of 3. After making this adjustment I reran the upgrade and it worked fine.
$pae = GroupPermissionAccessEntity::getOrCreate($adminGroup);
The "Administrators" group had been deleted from the site I was attempting to upgrade. In a fresh install the "Administrators" group should have a gID of 3 in the 'groups' db table so I manually added a new record to the table with a gID of 3. After making this adjustment I reran the upgrade and it worked fine.
This was a HUGE help! Thank you so much! Creating this group in the DB did get me past that error. However, I now get the WSOD when I try to upgrade. The upgrade runs for exactly 1.24 minutes and dies with a white screen. No errors reported anywhere (screen or logs) and all of my theme and page type defaults are gone from the database.
Strange. Anyway, thanks for your help!
Strange. Anyway, thanks for your help!
Glad to hear that was helpful - it's a frustrating bug.
On the WSOD - have you checked your debug level setting? That's easy to miss when troubleshooting upgrades.
On the WSOD - have you checked your debug level setting? That's easy to miss when troubleshooting upgrades.
I have tried the latest version (5.6.0.2) and I am still having the same issue.
No one replied to my last post. I hope someone has some ideas this time around. This is a really big problem for us because we have a large production site running on C5 and now I can stay up to date.
Thanks in advance for any help you can provide!