Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to 2019.08.02-1.10nnn fails #7099

Closed
pij opened this issue Oct 6, 2019 · 2 comments

Comments

@pij
Copy link

commented Oct 6, 2019

Running Setup after upgrade of the Debian package to the latest Release (2019.08.02-1.10nnn) fails. Output of
$PHP -d include_path=/etc/tine20:/usr/share/tine20 /usr/share/tine20/setup.php --list
$PHP -d include_path=/etc/tine20:/usr/share/tine20 /usr/share/tine20/setup.php --update

Currently installed applications:

  • Projects (Version: 12.0)
  • Admin (Version: 12.0)
  • Felamimail (Version: 12.8)
  • Tinebase (Version: 12.26)
  • Filemanager (Version: 12.1)
  • Tasks (Version: 12.4)
  • ActiveSync (Version: 12.1)
  • Calendar (Version: 12.10)
  • Addressbook (Version: 12.7)
    PHP Fatal error: Uncaught Error: Using $this when not in object context in /usr/share/tine20/Addressbook/Controller/Contact.php:1114
    Stack trace:
    #0 /usr/share/tine20/Calendar/Controller/MSEventFacade.php(117): Addressbook_Controller_Contact::inspectAddUser(Object(Tinebase_Model_FullUser), Object(Tinebase_Model_FullUser))
    #1 /usr/share/tine20/Calendar/Controller/Event.php(111): Calendar_Controller_MSEventFacade::getCurrentUserContactId()
    #2 /usr/share/tine20/Calendar/Controller/Event.php(131): Calendar_Controller_Event->_construct()
    #3 /usr/share/tine20/Tinebase/Core.php(443): Calendar_Controller_Event::getInstance()
    #4 /usr/share/tine20/Tinebase/Container.php(1244): Tinebase_Core::getApplicationInstance('Calendar_Model
    ...', '', true)#5 /usr/share/tine20/Tinebase/Container.php(1191): Tinebase_Container->deleteContainerContents(Object(Tinebase_Model_Container), true)
    #6 /usr/share/tine20/Tinebase/Container.php(2301): Tinebase_Container->deleteContainer('610798413de61ec...', true)
    #7 /usr/share/tine20/Calendar/Setup/Update/1 in /usr/share/tine20/Addressbook/Controller/Contact.php on line 1114

Fatal error: Uncaught Error: Using $this when not in object context in /usr/share/tine20/Addressbook/Controller/Contact.php:1114
Stack trace:
#0 /usr/share/tine20/Calendar/Controller/MSEventFacade.php(117): Addressbook_Controller_Contact::inspectAddUser(Object(Tinebase_Model_FullUser), Object(Tinebase_Model_FullUser))
#1 /usr/share/tine20/Calendar/Controller/Event.php(111): Calendar_Controller_MSEventFacade::getCurrentUserContactId()
#2 /usr/share/tine20/Calendar/Controller/Event.php(131): Calendar_Controller_Event->_construct()
#3 /usr/share/tine20/Tinebase/Core.php(443): Calendar_Controller_Event::getInstance()
#4 /usr/share/tine20/Tinebase/Container.php(1244): Tinebase_Core::getApplicationInstance('Calendar_Model
...', '', true)#5 /usr/share/tine20/Tinebase/Container.php(1191): Tinebase_Container->deleteContainerContents(Object(Tinebase_Model_Container), true)
#6 /usr/share/tine20/Tinebase/Container.php(2301): Tinebase_Container->deleteContainer('610798413de61ec...', true)
#7 /usr/share/tine20/Calendar/Setup/Update/1 in /usr/share/tine20/Addressbook/Controller/Contact.php on line 1114

(Sory for line wrapping)
It seems Addressbook_Controller_Contact::inspectAddUser is indeed called as a static function, leading to the problem.

@pij

This comment has been minimized.

Copy link
Author

commented Oct 6, 2019

Adding a "getInstance()->" before "inspectAddUser" fixes the problem.

@gerryfrancis

This comment has been minimized.

Copy link

commented Oct 6, 2019

See #7090 for solution.

@pschuele pschuele closed this Oct 17, 2019
@pschuele pschuele added the Duplicate label Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.