You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nextcloud 21 - Warning no app in context "Invalid data provided to provideInitialState by files" #25790
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
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.
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.
Reacted by kostyainmadness, fate8383, Cédric, Sven Rojek, pcburcham, Marcin Wilk, Fabian Hölle, oscaropenness, nokoa, Daniel Bailey and 2 more
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.
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...
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.
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.
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 👍
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.
Activity
v1r0x commentedon 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 commentedon Feb 25, 2021
on NC21 same on my side, follow
ramirooliveiracg commentedon Feb 25, 2021
Me too
huangy10 commentedon Feb 26, 2021
Same problem here. NC 21.
This error occurs each time when I try to upload a large file (about 3.5GB).
amatteo78 commentedon Feb 26, 2021
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 commentedon 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
nullis passed to theprovideInitialStatefunction, IMHO either the logged warning is misleading or passingnullis wrong, because it passesnull(thus invalid data) on purpose.When replaced with something different than
nullthe logged warning disappears, but my problem with a blank page is still present.zedpr0 commentedon 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 commentedon Feb 27, 2021
Working solution, thank you
v1r0x commentedon Feb 27, 2021
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 commentedon Feb 28, 2021
Less errors - but in my case, everyday I see again this warning once per user.
Cardes commentedon 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 commentedon 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 commentedon Mar 7, 2021
on my side, workaround fixed.
tomcatcw1980 commentedon Mar 10, 2021
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 commentedon Mar 15, 2021
Fix in #26131