Skip to content

Fix Error: Call to a member function instanceOfStorage() on null #10316#10315

Closed
ranqiangjun wants to merge 2 commits into
nextcloud:masterfrom
ranqiangjun:patch-1
Closed

Fix Error: Call to a member function instanceOfStorage() on null #10316#10315
ranqiangjun wants to merge 2 commits into
nextcloud:masterfrom
ranqiangjun:patch-1

Conversation

@ranqiangjun

@ranqiangjun ranqiangjun commented Jul 20, 2018

Copy link
Copy Markdown

Fixes #10316

@ranqiangjun ranqiangjun changed the title Fix call to a member function instanceOfStorage() on null Fix Error: Call to a member function instanceOfStorage() on null #10316 Jul 20, 2018
@MorrisJobke MorrisJobke added 3. to review Waiting for reviews bug labels Jul 20, 2018
@MorrisJobke

Copy link
Copy Markdown
Member

Thanks for the contribution. @icewind1991 @schiessle @rullzer Could you have a look at this?

@rullzer

rullzer commented Jul 24, 2018

Copy link
Copy Markdown
Member

I'm a bit puzzled as to why this could be null.

@icewind1991 any idea?

@ranqiangjun

ranqiangjun commented Jul 24, 2018

Copy link
Copy Markdown
Author

Hi, @rullzer FYI:

One of the users of our NextCloud instance reported that he encountered endless loading on the file list page. So I ran sudo -u www-data php occ files:scan --all to check files, got the exception Error: Call to a member function instanceOfStorage() on null in /var/www/html/apps/files_sharing/lib/Cache.php:81

@blizzz

blizzz commented Aug 3, 2018

Copy link
Copy Markdown
Member

you don't have a backtrace for that error, by chance?

@jospoortvliet

Copy link
Copy Markdown
Member

Hi guys,

wouldn't it be good to get this in 14 in any case? Note that this had to do with a migration from oC - no reason not to make that smoother 😄

@blizzz

blizzz commented Sep 3, 2018

Copy link
Copy Markdown
Member

@jospoortvliet this hides the symptom, but does not fix (or at least explain) the cause. Therefore @rullzer's and my questions.

@MorrisJobke

Copy link
Copy Markdown
Member

To trace the issue following patch can be used: #10316 (comment)

This PR only hides the problem but does not fix it thus I will close it. Thanks for the help nevertheless.

@MorrisJobke MorrisJobke closed this Oct 2, 2018
@ranqiangjun ranqiangjun deleted the patch-1 branch October 3, 2018 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants