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

Call to a member function set() on null ~ on ee2 to ee7 update

Development and Programming

karlosb's avatar
karlosb
43 posts
2 years ago
karlosb's avatar karlosb

Hi Guys,

I have recently updated an old ee2 site up to ee7.3.11.

I have the system folder set above web root.

The issue is I can’t seem to be able to login to the CP as I am getting the following error:

Call to a member function set() on null

Please see attached snapshot.

The stack trace does not seem to indicate a problem with 3rd party addons.

I’ve tried swithing addons off via $config[‘allow_extensions’] = ‘n’; and no joy.

I’ve tried analysing via xdebug for the cause of $member variable being set to ‘unitialised’ from the auth.php file but can’t seem to locate ‘how’ this variable is not being set.

Anyone come across this issue, and know the fix?

Many thanks in advance.

Regards

Karl

       
Zignature's avatar
Zignature
28 posts
2 years ago
Zignature's avatar Zignature

It may be caused by the version of PHP you are running. I suppose you’re running PHP 5 (?).

EE7 requires PHP 7.4 as per https://docs.expressionengine.com/latest/installation/requirements.html

       
karlosb's avatar
karlosb
43 posts
2 years ago
karlosb's avatar karlosb

Hi Zignature, many thanks for the feedback on this. Yes it’s pretty typical to accidentally leave an updated ee2 legacy site running on PHP 5.4/5.6 after upgrade, however I can confirm the site is running on PHP 8.0.29 and I’ve also retested on PHP 7.4 with no luck.

       
Zignature's avatar
Zignature
28 posts
2 years ago
Zignature's avatar Zignature

Maybe it’s just as trivial as deleting cache and cookies for that domain… Just thinking out loud here 😊

       
karlosb's avatar
karlosb
43 posts
2 years ago
karlosb's avatar karlosb

Hi @Zignature, many thanks for the further feedback. Yes Cache/Cookies have all been cleared out of EE backend/Browser Front-end, all add-ons removed, Replaced system/ee themes/ee directories with fresh copies from another core ee7 download, and replaced /index.php /admin.php…. issue still persists.

       
Zignature's avatar
Zignature
28 posts
2 years ago
Zignature's avatar Zignature

I’m assuming you have access to the database. In another topic I describe how I duplicated the administrator account and changed it’s credentials.

Maybe that will solve your problem.

https://expressionengine.com/forums/topic/253698/cant-find-any-templates-cannot-edit-header-or-footer#1080379

       
karlosb's avatar
karlosb
43 posts
2 years ago
karlosb's avatar karlosb

Hi @Zignature many thanks for the above link but it appears to be broken?

       
Zignature's avatar
Zignature
28 posts
2 years ago
Zignature's avatar Zignature

It works now, I edited it 😊

       

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.