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

Link shared Mindmap leads to Internal Server error (0.0.22, NC 18.0.6) #122

Open
timm2k opened this issue Jun 18, 2020 · 4 comments
Open

Comments

@timm2k
Copy link

timm2k commented Jun 18, 2020

Hi @ACTom,

I can't open shared links which points directly to a Mindmap file. Opening such links lead to Internal Server errros.

message":"Exception":"TypeError"
"Message":"substr() expects parameter 3 to be int, bool given"
"Code":0
"Trace":{\"file\":\"/var/www/html/nextcloud/lib/private/Files/Type/Detection.php\",\"line\":377,\"function\":\"substr\",\"args\":[\"mindmap\",0,false]},{\"file\":\"/var/www/html/nextcloud/apps/files_sharing/templates/public.php\",\"line\":22,\"function\":\"mimeTypeIcon\",\"class\":\"OC\\\\Files\\\\Type\\\\Detection\",\"type\":\"->\",\"args\":[\"mindmap\"]},{\"file\":\"/var/www/html/nextcloud/lib/private/Template/Base.php\",\"line\":179,\"args\":[\"/var/www/html/nextcloud/apps/files_sharing/templates/public.php\"],\"function\":\"include\"},{\"file\":\"/var/www/html/nextcloud/lib/private/Template/Base.php\",\"line\":151,\"function\":\"load\",\"class\":\"OC\\\\Template\\\\Base\"
...

I think the mime type detection doesn't work well in 0.0.22 with Nextcloud 18.0.6

I didn't get this error with NC 19.

Can you please fix this?

Kind regards

Timm

@timm2k
Copy link
Author

timm2k commented Jun 18, 2020

okay, after digging deeper into this the solution is quite easy: nextcloud/core/img/filetypes/mindmap.svg is missing. This is no problem for NC19 but for NC18 it is.

Workaround:
cp nextcloud/apps/files_mindmap/img/mindmap.svg nextcloud/core/img/filetypes/mindmap.svg

@tt33tt
Copy link

tt33tt commented Jun 25, 2020

okay, after digging deeper into this the solution is quite easy: nextcloud/core/img/filetypes/mindmap.svg is missing. This is no problem for NC19 but for NC18 it is.

Workaround:
cp nextcloud/apps/files_mindmap/img/mindmap.svg nextcloud/core/img/filetypes/mindmap.svg

This helped me!! I needed it although I have NC 19

@michel-thomas
Copy link

Same in NC 19.0.3 (upgraded from previous version). Will it be patched in next version of NC?

@ACTom
Copy link
Owner

ACTom commented Nov 6, 2020

Same in NC 19.0.3 (upgraded from previous version). Will it be patched in next version of NC?

I have pushed a pr nextcloud/server#19942 , waiting for merge it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants