Closed kaffeeringe closed 3 months ago
I'm having this same issue. As far as I recall, it started when I upgraded to the latest major version (28).
Sharing still works in the iOS app, but it will not work in the web interface. And I cannot load the file details sidebar to get, e.g., versioning.
Same issue here on Nextcloud 28.0.4.
If the file has a thumbnail, the sidebar works as usual. As most times folders are shared, this isn't really a workaround.
Errors in the same context:
Sidebar.vue:464
TypeError: Cannot read properties of null (reading 'isFavourited')
at fn (Sidebar.vue:1:533)
at Object.a [as subname] (vue.runtime.esm.js:2421:66)
at o.$ (NcAppSidebar-CSjqjYTb.mjs:578:274)
at e._render (vue.runtime.esm.js:2700:28)
at o.r (vue.runtime.esm.js:3891:27)
at e.get (vue.runtime.esm.js:3462:33)
at new e (vue.runtime.esm.js:3452:51)
at e (vue.runtime.esm.js:3908:5)
at jr.$mount (vue.runtime.esm.js:8797:12)
at init (vue.runtime.esm.js:4427:19)
TypeError: Cannot read properties of undefined (reading 'focus')
at o.focus (NcAppSidebar-CSjqjYTb.mjs:510:25)
at o.mounted (NcAppSidebar-CSjqjYTb.mjs:424:39)
at un (vue.runtime.esm.js:3033:61)
at zn (vue.runtime.esm.js:4048:13)
at Object.insert (vue.runtime.esm.js:4443:13)
at w (vue.runtime.esm.js:6966:38)
at wi.nodeOps [as __patch__] (vue.runtime.esm.js:7180:9)
at e._update (vue.runtime.esm.js:3785:25)
at o.r (vue.runtime.esm.js:3891:16)
at e.get (vue.runtime.esm.js:3462:33)
Seems like theres something wrong in the sidebar module.
Hi. This isn't readily reproducible so far.
Please provide further details:
occ config: list system
)occ app:list
)Also worth checking if any earnings/error visible under Administration settings -> Overview.
Here is the systeminfo and app-list. I removed all unnessecary lines.
occ config:list system
{
"system": {
"dbtype": "mysql",
"version": "28.0.4.1",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"installed": true,
"maintenance": false,
"theme": "",
"loglevel": 2,
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_smtpport": "26",
"mail_smtpstreamoptions": {
"ssl": {
"allow_self_signed": true,
"verify_peer": false,
"verify_peer_name": false
}
},
"default_phone_region": "DE",
"filelocking.enabled": true,
"memcache.locking": "\\OC\\Memcache\\Redis",
"memcache.local": "\\OC\\Memcache\\Redis",
"redis": {
"port": 6379,
"dbindex": 0,
"timeout": 1.5
},
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"updater.release.channel": "stable",
"auth.bruteforce.protection.enabled": false,
"maintenance_window_start": 1,
"app_install_overwrite": [
"files_rightclick"
]
}
}
In js/core/merged-template-prepend.js line 77
OC.MimeTypeList was 'undefined'
The fix:
sudo -u www-data php occ maintenance:mimetype:update-js
sudo -u www-data php occ maintenance:repair
Nextcloud tries to load https://mydomain.com/core/js/merged-template-prepend.js which fails with an error 500 - Is seems this files doesn't even exist - there is no merged-template-prepend.js only a .json
When I try to open the sidebar, this error appears in the console:
TypeError: OC.MimeType is undefined
@kaffeeringe merged-templated-prepend.js
generated on-demand. The 500 implies the generation failed for some reason. Please look at your Nextcloud log for hints. Also, your installation and upgrade method are potentially highly relevant here. Any chance you're running a custom version of our Docker image?
@ntltdev A standard update run would have triggered those maintenance
functions on their own. How did you upgrade?
The fix:
sudo -u www-data php occ maintenance:mimetype:update-js sudo -u www-data php occ maintenance:repair
This did not fix my issue. I'm still getting endless circling when I try to share, and when I try to display info in the sidebar.
Same thing happening here, running 29.0.0
7store.js:45 TypeError: Cannot read properties of undefined (reading 'getIconUrl')
at s.data (RecommendedFile.vue:90:1)
at vue.runtime.esm.js:5484:21
at vue.runtime.esm.js:5448:42
at qn (vue.runtime.esm.js:5389:9)
at t._init (vue.runtime.esm.js:5714:9)
at new s (vue.runtime.esm.js:5849:18)
at vue.runtime.esm.js:4564:12
at init (vue.runtime.esm.js:4426:52)
at vue.runtime.esm.js:6591:17
at p (vue.runtime.esm.js:6545:13)
ke @ vue.runtime.esm.js:3065
je @ vue.runtime.esm.js:3057
Pe @ vue.runtime.esm.js:3024
(anonymous) @ vue.runtime.esm.js:5487
(anonymous) @ vue.runtime.esm.js:5448
qn @ vue.runtime.esm.js:5389
t._init @ vue.runtime.esm.js:5714
s @ vue.runtime.esm.js:5849
(anonymous) @ vue.runtime.esm.js:4564
init @ vue.runtime.esm.js:4426
(anonymous) @ vue.runtime.esm.js:6591
p @ vue.runtime.esm.js:6545
g @ vue.runtime.esm.js:6664
p @ vue.runtime.esm.js:6568
g @ vue.runtime.esm.js:6664
p @ vue.runtime.esm.js:6568
g @ vue.runtime.esm.js:6664
p @ vue.runtime.esm.js:6568
(anonymous) @ vue.runtime.esm.js:7133
t._update @ vue.runtime.esm.js:3785
r @ vue.runtime.esm.js:3891
t.get @ vue.runtime.esm.js:3462
t.run @ vue.runtime.esm.js:3538
wn @ vue.runtime.esm.js:4141
(anonymous) @ vue.runtime.esm.js:3159
Ue @ vue.runtime.esm.js:3081
Promise.then (async)
$e @ vue.runtime.esm.js:3106
He @ vue.runtime.esm.js:3171
xn @ vue.runtime.esm.js:4227
t.update @ vue.runtime.esm.js:3529
t.notify @ vue.runtime.esm.js:732
set @ vue.runtime.esm.js:976
loading @ store.js:45
(anonymous) @ vuex.esm.js:844
(anonymous) @ vuex.esm.js:466
(anonymous) @ vuex.esm.js:465
ua._withCommit @ vuex.esm.js:624
ua.commit @ vuex.esm.js:464
commit @ vuex.esm.js:409
fetchRecommendations @ store.js:87
await in fetchRecommendations (async)
(anonymous) @ vuex.esm.js:851
ua.dispatch @ vuex.esm.js:516
dispatch @ vuex.esm.js:406
render @ main.js:43
mounted @ FilesListHeader.vue:41
un @ vue.runtime.esm.js:3033
Zn @ vue.runtime.esm.js:4048
insert @ vue.runtime.esm.js:4443
w @ vue.runtime.esm.js:6966
wi.nodeOps @ vue.runtime.esm.js:7180
e._update @ vue.runtime.esm.js:3785
a @ vue.runtime.esm.js:3891
e.get @ vue.runtime.esm.js:3462
e.run @ vue.runtime.esm.js:3538
na @ vue.runtime.esm.js:4141
(anonymous) @ vue.runtime.esm.js:3159
gn @ vue.runtime.esm.js:3081
Promise.then (async)
hn @ vue.runtime.esm.js:3106
Fn @ vue.runtime.esm.js:3171
aa @ vue.runtime.esm.js:4227
e.update @ vue.runtime.esm.js:3529
e.notify @ vue.runtime.esm.js:732
Re @ vue.runtime.esm.js:1025
setRoot @ files.ts:49
(anonymous) @ pinia.mjs:1380
fetchContent @ FilesList.vue:327
await in fetchContent (async)
mounted @ FilesList.vue:288
un @ vue.runtime.esm.js:3033
Zn @ vue.runtime.esm.js:4048
insert @ vue.runtime.esm.js:4443
w @ vue.runtime.esm.js:6966
wi.nodeOps @ vue.runtime.esm.js:7180
e._update @ vue.runtime.esm.js:3781
a @ vue.runtime.esm.js:3891
e.get @ vue.runtime.esm.js:3462
e @ vue.runtime.esm.js:3452
e @ vue.runtime.esm.js:3908
Ya.$mount @ vue.runtime.esm.js:8797
73348 @ main.ts:33
o @ bootstrap:19
(anonymous) @ files-main.js?v=7177bcd5-10:2
o.O @ chunk loaded:25
(anonymous) @ files-main.js?v=7177bcd5-10:2
(anonymous) @ files-main.js?v=7177bcd5-10:2
Show 71 more frames
Show less
Sidebar.vue:473 TypeError: Cannot read properties of undefined (reading 'getIconUrl')
at o.getIconUrl (Sidebar.vue:370:1)
at o.getPreviewIfAny (Sidebar.vue:340:1)
at o.background (Sidebar.vue:234:1)
at e.get (vue.runtime.esm.js:3462:33)
at e.evaluate (vue.runtime.esm.js:3563:27)
at o.background (vue.runtime.esm.js:5557:25)
at o.appSidebar (Sidebar.vue:247:1)
at e.get (vue.runtime.esm.js:3462:33)
at e.evaluate (vue.runtime.esm.js:3563:27)
at o.appSidebar (vue.runtime.esm.js:5557:25)
sudo -u www-data php occ maintenance:mimetype:update-js mimetypelist.js is updated
sudo -u www-data php occ maintenance:repair
Problem ist still there Nextcloud28.0.6 PHP 8.1.2 Apache 2.4.52 10.6.16-MariaDB-0 ubuntu0.22.04.1 (alle Pakete aktuell )
Opening the Details of a folder doesnt work So you cant share opening a file and then details does work . So sharing doesnt work for a folder but it does work for a single file
See also #45584
Interesting FAct When you change in Chrome to
sharing suddenly works at least in Chrome
In Microsoft Edge I reloaded the Page in IE Kompatibily mode and there it works now as well
Same issue in Version Nextcloud Hub 8 29.0.2.
In Microsoft Edge I reloaded the Page in IE Kompatibily mode and there it works now as well
This is not working for me in either Edge or Chrome (previous post). I'm still getting endless circling with the mobile view in Chrome. And I can't even get the main page to load in IE Compatibility mode. It just shows me the link to the Nextcloud corporate website.
BTW: I works form me now, since the update to 29.0.0Am 13.06.24, 17:06 schrieb dathbe @.***>:
In Microsoft Edge I reloaded the Page in IE Kompatibily mode and there it works now as well
This is not working for me in either Edge or Chrome (previous post). I'm still getting endless circling with the mobile view in Chrome. And I can't even get the main page to load in IE Compatibility mode. It just shows me the link to the Nextcloud corporate website. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
I updated two apps totay collectives: 2.12.0 and polls: 7.1.1 Sharing works again via all Browsers again You now have to save the share then the mail is sent
I don't have any apps to update, and I can still only share through the mobile app.
I updated two apps totay collectives: 2.12.0 and polls: 7.1.1 Sharing works again via all Browsers again You now have to save the share then the mail is sent
I also updated both apps (Polls and Collective) but still the same issue with the newer ending loading circle.
There are likely multiple situations being described here. It's likely not all of you are encountering the same situation.
The inability to pull in these JavaScript files would result in similar errors in the console and browser, but the root cause depends on precisely why you're not getting these files.
In some cases this has been due to a web server misconfiguration. I think those would typically be 404 errors (not the 500). For example, if you're running Nextcloud via an LSIO Docker image, you may need to refer to their docs and update your Nginx config since there was an issue a bit back there.
For the ones seeing 500 errors, well, error logs from the web server and Nextcloud would be necessary.
The OP reported their matter fixed: https://github.com/nextcloud/server/issues/44128#issuecomment-2166626830 so anyone experiencing this s should probably take this to the help forum to try to isolate whether this is a bug or a configuration matter in their particular case - https://help.nextcloud.com
if you're running Nextcloud via an LSIO Docker image, you may need to refer to their docs and update your Nginx config since there was an issue a bit back there.
YAY! This seems to have been my issue. I deleted /config/nginx/nginx.conf
and /config/nginx/site-confs/default.conf
and restarted my container. New versions of these files were loaded and voila, I had sharing again!
Thanks so much!
@joshtrichards and @dathbe thank you so much. It is solved now on my unraid server.
I have deleted
/appdata/nextcloud/nginx/nginx.conf
and
/appdata/nextcloud/nginx/site-confs/default.conf
after that I restarted my dockers and it worked :)
⚠️ This issue respects the following points: ⚠️
Bug description
In Files I try to show the file details or share a file. The sidebar loads endlessly:
Steps to reproduce
Nextcloud tries to load https://MYDOMAIN.COM/core/js/merged-template-prepend.js which fails with an error 500 - Is seems this files doesn't even exist - there is no merged-template-prepend.js only a .json
When I try to open the sidebar, this error appears in the console:
TypeError: OC.MimeType is undefined getIconUrl Sidebar.vue:377 getPreviewIfAny Sidebar.vue:351 background Sidebar.vue:242 VueJS 3 appSidebar Sidebar.vue:256 VueJS 3 dt Sidebar.vue:1 VueJS 14 open Sidebar.vue:484 exec sidebarAction.ts:49 onActionClick FileEntryActions.vue:171 click FileEntryActions.vue:4 VueJS 4 onClick actionText-bMy_49i8.mjs:118 handleClick NcActionButton.mjs:113 VueJS 33
Expected behavior
Sidebar opens, something is displayed
Installation method
None
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
None
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response