Issue with "Additional contents (HTML customizations)"
Hi We are working on a completely new host with Debian GNU/Linux 11 and Koha 21.11.00. I have also tested this on my demo installation with Koha 21.11.00 - same problem. We found the following issue with menu "Tools > Additional contents (HTML customizations)". When adding a new entry (e. g. for display location "OpacMainUserBlock") we are able to add e. g. text "ABC" and then save. The OPAC will show "ABC" as expected". It is also possible to delete this entry in the menu. But the OPAC will still show the original text "ABC", even after emptying the browser cache (Ctrl+F5) or restarting memcached, apache2 and koha-common. But even more, if we add another entry e. g. with text "XYZ" the OPAC will now show "ABC" and then "XYZ" on another line. After deleting the entry in the menu the OPAC will still show both texts, "ABC" and "XYZ". Can anyone please confirm this issue? But especially: How can we get rid of the unwanted old texts? Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
Hi Michael, I can't replicate this behavior in my dev environment. Could you check if there are any remaining entries for ABC in your additional_contents table? select * from additional_contents; Katrin On 30.12.21 13:25, Michael Kuhn wrote:
Hi
We are working on a completely new host with Debian GNU/Linux 11 and Koha 21.11.00. I have also tested this on my demo installation with Koha 21.11.00 - same problem.
We found the following issue with menu "Tools > Additional contents (HTML customizations)".
When adding a new entry (e. g. for display location "OpacMainUserBlock") we are able to add e. g. text "ABC" and then save. The OPAC will show "ABC" as expected". It is also possible to delete this entry in the menu.
But the OPAC will still show the original text "ABC", even after emptying the browser cache (Ctrl+F5) or restarting memcached, apache2 and koha-common.
But even more, if we add another entry e. g. with text "XYZ" the OPAC will now show "ABC" and then "XYZ" on another line. After deleting the entry in the menu the OPAC will still show both texts, "ABC" and "XYZ".
Can anyone please confirm this issue?
But especially: How can we get rid of the unwanted old texts?
Best wishes: Michael
Hi Katrin You wrote:
I can't replicate this behavior in my dev environment. Could you check if there are any remaining entries for ABC in your additional_contents table?
select * from additional_contents;
Yes, there are remaining entries, as expected (since I restarted memcached, apache2 and koha-common). You can test this issue on my demo installation with Koha 21.11.00 (user: demo / password: demo): https://koha.adminkuhn.ch:8443/ Is it safe to just delete these unwanted entries manually via SQL? Best wishes & a Happy New Year: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
On 30.12.21 13:25, Michael Kuhn wrote:
Hi
We are working on a completely new host with Debian GNU/Linux 11 and Koha 21.11.00. I have also tested this on my demo installation with Koha 21.11.00 - same problem.
We found the following issue with menu "Tools > Additional contents (HTML customizations)".
When adding a new entry (e. g. for display location "OpacMainUserBlock") we are able to add e. g. text "ABC" and then save. The OPAC will show "ABC" as expected". It is also possible to delete this entry in the menu.
But the OPAC will still show the original text "ABC", even after emptying the browser cache (Ctrl+F5) or restarting memcached, apache2 and koha-common.
But even more, if we add another entry e. g. with text "XYZ" the OPAC will now show "ABC" and then "XYZ" on another line. After deleting the entry in the menu the OPAC will still show both texts, "ABC" and "XYZ".
Can anyone please confirm this issue?
But especially: How can we get rid of the unwanted old texts?
Best wishes: Michael
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
Hi Michael, I have tried adding OpacNavRight and OpacMainUserBlock entries on your demo installation, but deleting the entries always makes the content go away. Could you provide a step by step guide so we can see where the difference is? I believe it would be save to delete these entries. A happy new year to you too! Katrin On 01.01.22 14:38, Michael Kuhn wrote:
Hi Katrin
You wrote:
I can't replicate this behavior in my dev environment. Could you check if there are any remaining entries for ABC in your additional_contents table?
select * from additional_contents;
Yes, there are remaining entries, as expected (since I restarted memcached, apache2 and koha-common).
You can test this issue on my demo installation with Koha 21.11.00 (user: demo / password: demo): https://koha.adminkuhn.ch:8443/
Is it safe to just delete these unwanted entries manually via SQL?
Best wishes & a Happy New Year: Michael
Hi Katrin You wrote:
I have tried adding OpacNavRight and OpacMainUserBlock entries on your demo installation, but deleting the entries always makes the content go away.
No, it doesn't - it seems like your last entry in "OpacMainUserBlock" was "test". Is that correct? It still can be seen at https://koha.adminkuhn.ch/ - together with my own test entry from earlier this day (but only until the next reset tomorrow at 5 AM): Test Kuhn 1.1.2022 test It is just below the "news" entry when choosing language "Deutsch Deutschland (de_DE)". The menu entry in "Additional contents (HTML customizations)" is gone, but as said the original entry in the OPAC is still there.https://koha.adminkuhn.ch/ Of course it is also still in the database (along with more stuff that shouldn't be there anymore! Since the menu entries are gone the table shouldn't contain any entries of category "html_customizations", as far as I see it): | 4 | html_customizations | OpacMainUserBlock_3 | OpacMainUserBlock | NULL | Test Kuhn 1.1.2022 | Test Kuhn 1.1.2022 | de-DE | 2022-01-01 | 2022-01-01 14:41:45 | NULL | NULL | 1 | | 7 | html_customizations | OpacNavRight_6 | OpacNavRight | NULL | kkk | kkk | de-CH | 2022-01-01 | 2022-01-01 16:25:41 | NULL | NULL | 1 | | 8 | html_customizations | OpacNavRight_6 | OpacNavRight | NULL | iii | iii | it-IT | 2022-01-01 | 2022-01-01 16:25:41 | NULL | NULL | 1 | | 10 | html_customizations | OpacNavRight_9 | OpacMainUserBlock | NULL | test | test | de-DE | 2022-01-01 | 2022-01-01 16:28:36 | NULL | NULL | 1 | As I see now, there is more weirs stuff going on: "test" (which you included for language "it-IT") can still be seen when choosing the main language (de-DE) while Italian is not even one of the possible choices! I believe there is some problem with the "standard" and the different languages of menu "Additional contents (HTML customizations)".
Could you provide a step by step guide so we can see where the difference is?
I believe it would be save to delete these entries.
Thanks, for now I'll do that! But of course this isn't really the solution. Best wishes: Michael -- Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz T 0041 (0)61 261 55 61 · E mik@adminkuhn.ch · W www.adminkuhn.ch
Hi Michael, thx for pointing this out! I later realized I had only looked at the English templates and that is where the issue was. I have found the steps to make it happen on master and filed a bug: *Bug 29778* <https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29778> - Deleting additional_contents is incomplete and leaves entries for additional languages Katrin On 01.01.22 19:48, Michael Kuhn wrote:
Hi Katrin
You wrote:
I have tried adding OpacNavRight and OpacMainUserBlock entries on your demo installation, but deleting the entries always makes the content go away.
No, it doesn't - it seems like your last entry in "OpacMainUserBlock" was "test". Is that correct? It still can be seen at https://koha.adminkuhn.ch/ - together with my own test entry from earlier this day (but only until the next reset tomorrow at 5 AM):
Test Kuhn 1.1.2022 test
It is just below the "news" entry when choosing language "Deutsch Deutschland (de_DE)".
The menu entry in "Additional contents (HTML customizations)" is gone, but as said the original entry in the OPAC is still there.https://koha.adminkuhn.ch/
Of course it is also still in the database (along with more stuff that shouldn't be there anymore! Since the menu entries are gone the table shouldn't contain any entries of category "html_customizations", as far as I see it):
| 4 | html_customizations | OpacMainUserBlock_3 | OpacMainUserBlock | NULL | Test Kuhn 1.1.2022 | Test Kuhn 1.1.2022
| de-DE | 2022-01-01 | 2022-01-01 14:41:45 | NULL | NULL | 1 | | 7 | html_customizations | OpacNavRight_6 | OpacNavRight | NULL | kkk | kkk
| de-CH | 2022-01-01 | 2022-01-01 16:25:41 | NULL | NULL | 1 | | 8 | html_customizations | OpacNavRight_6 | OpacNavRight | NULL | iii | iii
| it-IT | 2022-01-01 | 2022-01-01 16:25:41 | NULL | NULL | 1 | | 10 | html_customizations | OpacNavRight_9 | OpacMainUserBlock | NULL | test | test
| de-DE | 2022-01-01 | 2022-01-01 16:28:36 | NULL | NULL | 1 |
As I see now, there is more weirs stuff going on: "test" (which you included for language "it-IT") can still be seen when choosing the main language (de-DE) while Italian is not even one of the possible choices!
I believe there is some problem with the "standard" and the different languages of menu "Additional contents (HTML customizations)".
Could you provide a step by step guide so we can see where the difference is?
I believe it would be save to delete these entries.
Thanks, for now I'll do that! But of course this isn't really the solution.
Best wishes: Michael
I have attached a patch on bug 29778 that should fix the problem. Le dim. 2 janv. 2022 à 15:57, Katrin Fischer <katrin.fischer.83@web.de> a écrit :
Hi Michael,
thx for pointing this out! I later realized I had only looked at the English templates and that is where the issue was. I have found the steps to make it happen on master and filed a bug:
*Bug 29778* <https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29778> - Deleting additional_contents is incomplete and leaves entries for additional languages
Katrin
On 01.01.22 19:48, Michael Kuhn wrote:
Hi Katrin
You wrote:
I have tried adding OpacNavRight and OpacMainUserBlock entries on your demo installation, but deleting the entries always makes the content go away.
No, it doesn't - it seems like your last entry in "OpacMainUserBlock" was "test". Is that correct? It still can be seen at https://koha.adminkuhn.ch/ - together with my own test entry from earlier this day (but only until the next reset tomorrow at 5 AM):
Test Kuhn 1.1.2022 test
It is just below the "news" entry when choosing language "Deutsch Deutschland (de_DE)".
The menu entry in "Additional contents (HTML customizations)" is gone, but as said the original entry in the OPAC is still there.https://koha.adminkuhn.ch/
Of course it is also still in the database (along with more stuff that shouldn't be there anymore! Since the menu entries are gone the table shouldn't contain any entries of category "html_customizations", as far as I see it):
| 4 | html_customizations | OpacMainUserBlock_3 | OpacMainUserBlock | NULL | Test Kuhn 1.1.2022 | Test Kuhn 1.1.2022
| de-DE | 2022-01-01 | 2022-01-01 14:41:45 | NULL | NULL | 1 | | 7 | html_customizations | OpacNavRight_6 | OpacNavRight | NULL | kkk | kkk
| de-CH | 2022-01-01 | 2022-01-01 16:25:41 | NULL | NULL | 1 | | 8 | html_customizations | OpacNavRight_6 | OpacNavRight | NULL | iii | iii
| it-IT | 2022-01-01 | 2022-01-01 16:25:41 | NULL | NULL | 1 | | 10 | html_customizations | OpacNavRight_9 | OpacMainUserBlock | NULL | test | test
| de-DE | 2022-01-01 | 2022-01-01 16:28:36 | NULL | NULL | 1 |
As I see now, there is more weirs stuff going on: "test" (which you included for language "it-IT") can still be seen when choosing the main language (de-DE) while Italian is not even one of the possible choices!
I believe there is some problem with the "standard" and the different languages of menu "Additional contents (HTML customizations)".
Could you provide a step by step guide so we can see where the difference is?
I believe it would be save to delete these entries.
Thanks, for now I'll do that! But of course this isn't really the solution.
Best wishes: Michael
Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
participants (3)
-
Jonathan Druart -
Katrin Fischer -
Michael Kuhn