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

Nextcloud 21 - Warning no app in context "Invalid data provided to provideInitialState by files" #25790

Closed
fate8383 opened this issue Feb 24, 2021 · 15 comments · Fixed by #26131
Assignees
Labels
3. to review Waiting for reviews bug

Comments

@fate8383
Copy link

I am having this warning, and exhausted my search ability to find out what it is

Warning | no app in context | Invalid data provided to provideInitialState by files

Every time file app is open, logs generate this

Is this a bug or can be ignored or what can i do?

@fate8383 fate8383 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Feb 24, 2021
@v1r0x
Copy link
Contributor

v1r0x commented Feb 25, 2021

I got the same error and a blank files app (only left sidebar is visible). Don't know if that is related, but that's the only error I get
Edit: I'm on NC 21 (docker) as well

@amatteo78
Copy link

on NC21 same on my side, follow

@ramirooliveiracg
Copy link

Me too

@huangy10
Copy link

Same problem here. NC 21.

This error occurs each time when I try to upload a large file (about 3.5GB).

@amatteo78
Copy link

on my side I can upload large file, I upload upto 6GB single file. But every 30min about, I receive this message on log.

@v1r0x
Copy link
Contributor

v1r0x commented Feb 26, 2021

I tried to investigate where this is coming from and if it is (for my case) the reason I have a blank files app.
And in my case it happens here: https://github.com/nextcloud/server/blob/master/apps/files/lib/Controller/ViewController.php#L297
That's because I don't have a template directory (know nothing about it and couldn't find out how to set it 🤷) and null is passed to the provideInitialState function, IMHO either the logged warning is misleading or passing null is wrong, because it passes null (thus invalid data) on purpose.
When replaced with something different than null the logged warning disappears, but my problem with a blank page is still present.

@zedpr0
Copy link

zedpr0 commented Feb 27, 2021

I solved it by going into the files app and clicking the + icon that you would use to create a new file and selecting "Set up Templates Folder". That removed the error for me.

@kostyainmadness
Copy link

I solved it by going into the files app and clicking the + icon that you would use to create a new file and selecting "Set up Templates Folder". That removed the error for me.

Working solution, thank you

@v1r0x
Copy link
Contributor

v1r0x commented Feb 27, 2021

I solved it by going into the files app and clicking the + icon that you would use to create a new file and selecting "Set up Templates Folder". That removed the error for me.

Good to hear it's fixed for you! 🎉
Unfortunately, I have a blank page in files app and don't see the + icon 😆 But maybe that's a different bug...

@AndyFx12
Copy link

I solved it by going into the files app and clicking the + icon that you would use to create a new file and selecting "Set up Templates Folder". That removed the error for me.

Less errors - but in my case, everyday I see again this warning once per user.

@Cardes
Copy link

Cardes commented Mar 6, 2021

I would be happy if there could be another solution to this, those directories are less than ideal if every user has to have lets say "Talk, Notes, Templates..." in his homedirectory. Perhaps there could be something like a hidden / system folder like the trash accessible via menu or a possibility to hide those folders away.

That beeing said, thanks for your work on this :)

@fabikroeger
Copy link

fabikroeger commented Mar 7, 2021

Hi people,

so same issue for me. The workaround does not work for me.

So NC21 and on docker as well. If that helps: this occours after i upgraded the docker image from NC 20 to NC 21.

Update:

So i took a few minuts and a lot of browser reloads pressing F5 until i got my files listed. Then i had the option to press the plus button and add the template stuff as mentioned above. That works for me 👍

@amatteo78
Copy link

amatteo78 commented Mar 7, 2021

on my side, workaround fixed.

@tomcatcw1980
Copy link

Hello,

got the same error message. But IMHO it cannot be the solution that every user has to add a template folder by himself. So ther must be an option in the config.php to set it globally for all users.

Is there a solutions available yet?

Greetings

@skjnldsv skjnldsv added 1. to develop Accepted and waiting to be taken care of and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Mar 15, 2021
@skjnldsv skjnldsv added 3. to review Waiting for reviews and removed 1. to develop Accepted and waiting to be taken care of labels Mar 15, 2021
@skjnldsv
Copy link
Member

Fix in #26131

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 a pull request may close this issue.