nextcloud_ynh icon indicating copy to clipboard operation
nextcloud_ynh copied to clipboard

where is the "flying" yunohost main panel tile ?

Open tutle opened this issue 3 years ago • 12 comments

Since nextcloud 20, no more yunohost tile to go to main sso panel, Am I the only one with this trouble ?

tutle avatar Jan 26 '21 22:01 tutle

No other person having this trouble ?

tutle avatar Feb 11 '21 16:02 tutle

My tile is also missing. Just installed the app for the first time and was wondering where it was.

amber-ailuridae avatar Feb 26 '21 04:02 amber-ailuridae

I can replicate the issue. Here are some investigations into it.

The problem can be circumvented by manually adding the following bit of code (normally injected by NGINX) before </head> at line 29 of /var/www/nextcloud/core/templates/layout.user.php:

<script type="text/javascript" src="/ynh_portal.js"></script><link type="text/css" rel="stylesheet"
href="/ynh_overlay.css"></link><script type="text/javascript" src="/ynhtheme/custom_portal.js"></script><link type="text/css" rel="stylesheet" href="/ynhtheme/custom_overlay.css"></link>

This bit of code is not present without this hack. So I guess the matter lies in /etc/nginx/conf.d/yunohost_panel.conf.inc where NGINX is instructed to insert the code at the place I mentioned above.

tituspijean avatar Feb 26 '21 20:02 tituspijean

Hello, after upgrading nextcloud to 20.0.8~ynh1, no more "flying tile" yunohost again and even ading before at line 29 of /var/www/nextcloud/core/templates/layout.user.php don't solve, any idea ?

tutle avatar May 10 '21 22:05 tutle

Hello @tutle, have you tested the solution proposed in the PR #402 ?

sebmennetrier avatar May 11 '21 08:05 sebmennetrier

Hello, I don't understand what I have to do. just add the line in nginx.conf ? fastcgi_param HTTP_ACCEPT_ENCODING ""; # Disable encoding of nextcloud response to inject ynh scripts

tutle avatar May 11 '21 09:05 tutle

Yes, in the nginx conf file of your nextcloud installation (and under the line fastcgi_param front_controller_active true;).

sebmennetrier avatar May 11 '21 09:05 sebmennetrier

where is this file ?

tutle avatar May 11 '21 09:05 tutle

The file should be somewhere like /etc/nginx/conf.d/your_nextcloud_instance_domain/nextcloud.conf

sebmennetrier avatar May 11 '21 09:05 sebmennetrier

Found and done, need to reload something ?

tutle avatar May 11 '21 09:05 tutle

Yes, need to reload nginx sudo systemctl reload nginx

sebmennetrier avatar May 11 '21 09:05 sebmennetrier

Ihaaa, super ! Thanks !!

tutle avatar May 11 '21 09:05 tutle

Closing, as the issue is stale and hopefully solved. Feel free to reopen if needed.

tituspijean avatar Oct 16 '23 09:10 tituspijean