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

Upgrade Headaches

How Do I?

jbrunker's avatar
jbrunker
3 posts
8 years ago
jbrunker's avatar jbrunker

Upgrading from 2 to 3 has been really terrible and frustrating for me.

Everytime I think I’ve made it past one hurdle, I encounter another.

Currently I am getting the following error after the upgrade:

Notice

Trying to get property of non-object

ee/legacy/libraries/Session.php, line 368 show details

Severity: E_NOTICE Notice

Trying to get property of non-object

ee/legacy/libraries/Session.php, line 368 show details

Severity: E_NOTICE Notice

Trying to get property of non-object

ee/legacy/libraries/Session.php, line 377 show details

Severity: E_NOTICE Notice

Trying to get property of non-object

ee/legacy/libraries/Session.php, line 400 show details

Severity: E_NOTICE

Fatal error: Call to a member function getId() on a non-object in /home/jbrunker/public_html/upgrade2016/system/ee/legacy/libraries/Session.php on line 400

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
8 years ago
Ingmar Greil's avatar Ingmar Greil

Do you have any add-ons installed that might not be comptaible?

       
jbrunker's avatar
jbrunker
3 posts
8 years ago
jbrunker's avatar jbrunker

Nope, removed all add-ons from the add-ons folder after the upgrade, and am putting them back in one-by-one to get things going.

So far there are two in there, and they’re both compatible with 3.

       
garabedium's avatar
garabedium
11 posts
8 years ago
garabedium's avatar garabedium

Did you try disabling your plugins in the config file?

$config['allow_extensions'] = 'n';

I’m also running into a ridiculous amount of errors in an EE2-EE3 upgrade.

       
Jeremy S.'s avatar
Jeremy S.
353 posts
8 years ago
Jeremy S.'s avatar Jeremy S.

Are you running the minimum php version which is 5.3.10?

       
garabedium's avatar
garabedium
11 posts
8 years ago
garabedium's avatar garabedium

Yes. I ran the EE Wizard and the environment meets all of the necessary requirements. My EE3 upgrade completes, but when I try to log into /system I get a fatal error on line 400 of ee > legacy > libraries > Session.php: (int) $member->MemberGroup->getId()

I disabled extensions ($config[‘allow_extensions’] = ‘n’;) in the config file and I even removed my templates but I still can’t log into EE. Normally disabling extensions lets me at least gain access to the Control Panel, but that hasn’t been the case with this EE3 upgrade.

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

Did you uninstall the add-ons that you aren’t bringing forward from v2 before upgrading to v3? Also were any member records created out-of-band of native features? I.e. either manually in the database, from a member import, or a third-party member management add-on? Both @jbrunker and @garabedium, the appearance is that your database’s member tables do not have integrity and cannot pull together a complete member entity.

       
garabedium's avatar
garabedium
11 posts
8 years ago
garabedium's avatar garabedium

Thanks for the response, Derek! Yes, I uninstalled all non-compatible add-ons before the EE3 upgrade.

I had to import my own SuperAdmin account into my local db because the client didn’t know their SuperAdmin account info. That seems to the issue as I can log into the control panel with a non-admin account.

Thanks Derek! I’ll roll back, create a new admin user and try the upgrade again.

Thanks again.

       
Derek Jones's avatar
Derek Jones
7,561 posts
8 years ago
Derek Jones's avatar Derek Jones

My pleasure @garabedium!

       

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.