0013678: Fatal error: Call to a member function getId() on a non-object in Calendar/Model/Attender.php #6765

Closed
Gloirin opened this Issue Jun 9, 2018 · 2 comments

Comments

Projects
None yet
1 participant
@Gloirin

Gloirin commented Jun 9, 2018

Reported by shochdoerfer on 2 Jan 2018 16:14

Version: 2017.08.10 Community Edition

Reproducibility always refers to the right (or wrong) dataset in this case ;) One of our users has the problem that his CalDAV calendar resource shows the fatal error instead of the regular CalDAV output. The error happens in line 271 in the getResolvedUser() method of the Attender model. Apparently $clone->user_id (or $resource) is a string in this case, not an object as expected and thus the $resource->getId() call fails.

Not sure where this comes from, we haven't changed or deleted much data within Tine 2.0.

@Gloirin Gloirin added this to the 2018.02.2 Community Edition milestone Jun 9, 2018

@Gloirin Gloirin self-assigned this Jun 9, 2018

@Gloirin Gloirin closed this Jun 9, 2018

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by pschuele on 15 Feb 2018 14:12

http://gerrit.tine20.com/customers/8149

Gloirin commented Jun 11, 2018

Comment posted by pschuele on 15 Feb 2018 14:12

http://gerrit.tine20.com/customers/8149

@Gloirin

This comment has been minimized.

Show comment
Hide comment
@Gloirin

Gloirin Jun 11, 2018

Comment posted by pschuele on 15 Feb 2018 14:14

hi Stephan,

i committed a change that prevents the fatal error and throws a Tinebase_Exception_UnexpectedValue instead.
maybe you could find out, where the corrupted "resource" attendee object comes from.

Gloirin commented Jun 11, 2018

Comment posted by pschuele on 15 Feb 2018 14:14

hi Stephan,

i committed a change that prevents the fatal error and throws a Tinebase_Exception_UnexpectedValue instead.
maybe you could find out, where the corrupted "resource" attendee object comes from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment