Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: cantabrico on October 31, 2017, 06:18:37 AM

Title: Plugin not loading after rename skin
Post by: cantabrico on October 31, 2017, 06:18:37 AM
Hi.

I have a problem. When rename skin "larry" to "newname", everythings work, but only plugin-managesieve not load.
Code: [Select]
File not found
//192.168.43.128/mail/?_task=settings&_action=plugin.managesieve

I change only name of skin and this name I change in config.php

From log:
Code: [Select]
[31-Oct-2017 08:54:02 +0100]: <bfn9hfnm> PHP Error: Error loading template for managesieve.managesieve in /usr/local/lib/roundcubemail/program/include/rcmail_output_html.php on line 602 (GET /mail/?_task=settings&_action=plugin.managesieve)
[31-Oct-2017 10:51:06 +0100]: <21ohoq7t> PHP Error: Error loading template for managesieve.managesieve in /usr/local/lib/roundcubemail/program/include/rcmail_output_html.php on line 602 (GET /mail/?_task=settings&_action=plugin.managesieve)

When rename back to "larry" and change config.php plugin is loaded.
Title: Re: Plugin not loading after rename skin
Post by: SKaero on October 31, 2017, 09:39:12 AM
Why are you trying to rename the skin?
Title: Re: Plugin not loading after rename skin
Post by: cantabrico on October 31, 2017, 09:57:05 AM
I want to edit the template (color, logo).
Title: Re: Plugin not loading after rename skin
Post by: SKaero on October 31, 2017, 02:47:55 PM
In that case you should extend the skin https://github.com/roundcube/roundcubemail/wiki/Skins#extending-skins
Title: Re: Plugin not loading after rename skin
Post by: cantabrico on November 01, 2017, 09:34:35 AM
I tried and did not work.
I add
Code: [Select]
"extends": "newname",to meta.json

I did not create a new css. He just duplicated everything. I added the instructions to include / links.html
Code: [Select]
<roundcube: include file = "/includes/links.html" skinPath = "skins/newname" />and he returned me

502 Bad Gateway


Can anyone try to rename skin larry and try what will it work?
Title: Re: Plugin not loading after rename skin
Post by: SKaero on November 01, 2017, 08:28:10 PM
When extending a skin you leave the original "larry" skin and make a copy with your new name that extends the "larry" skin.