[Bug 28319] New: News under Tools not opening after adding HTML code in MainBlock
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28319 Bug ID: 28319 Summary: News under Tools not opening after adding HTML code in MainBlock Change sponsored?: --- Product: Koha Version: 20.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: OPAC Assignee: oleonard@myacpl.org Reporter: samrocks1011@gmail.com QA Contact: testopia@bugs.koha-community.org Created attachment 120842 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=120842&action=edit Code use in news under Mainblock. Dear Team, Under Tools Section under news, I added the HTML code after which the news page is continuously refreshing with error in the intranet-error.log file. -----Error---- [Tue May 11 15:24:30.028112 2021] [cgi:error] [pid 197008] [client 103.67.188.42:59320] AH01215: [Tue May 11 15:24:30 2021] koha-news.pl: Use of uninitialized value $theme in concatenation (.) or string at /usr/share/koha/lib/C4/Languages.pm line 122.: /usr/share/koha/intranet/cgi-bin/tools/koha-news.pl, referer: http://161.97.161.103:4859/cgi-bin/koha/tools/koha-news.pl [Tue May 11 15:24:30.029803 2021] [cgi:error] [pid 197008] [client 103.67.188.42:59320] AH01215: [Tue May 11 15:24:30 2021] koha-news.pl: Use of uninitialized value in string eq at /usr/share/koha/intranet/cgi-bin/tools/koha-news.pl line 85.: /usr/share/koha/intranet/cgi-bin/tools/koha-news.pl, referer: http://161.97.161.103:4859/cgi-bin/koha/tools/koha-news.pl -------------- I have attached the HTML code file name code.html that I added in the New under MailBlock. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28319 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- The cause of the endless refreshing isn't in Koha, it's in your code. The line, "document.getElementById("defaultOpen").click();" seems to be to blame. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28319 --- Comment #2 from Sandeep Patel <samrocks1011@gmail.com> --- Dear Owen, Thanks for Quick Response. Now I am not able to access the News Part, how can I remove the code? Can I do it from the database, if yes which table the content will be. Regards, Sandeep Patel -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28319 Sandeep Patel <samrocks1011@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |FIXED --- Comment #3 from Sandeep Patel <samrocks1011@gmail.com> --- Dear Owen, I found the html code under database table opac_news. After replacing the content the Issue Got resolved. Thanks Owen. Regards, Sandeep Patel -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org