Bug 15426 - RSS Feed does not work.
Summary: RSS Feed does not work.
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-26 22:31 UTC by Matthew Charlesworth
Modified: 2017-12-07 22:17 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Charlesworth 2015-12-26 22:31:53 UTC
Hello,

> List of URL's referenced in this post:
>> [1] http://koha.1045719.n5.nabble.com/Display-of-Scrolling-New-Arrivals-List-on-Koha-OPAC-td5847767.html
>> [2] http://library.sj.org.za/cgi-bin/koha/opac-search.pl?idx=kw&idx=kw&idx=kw&limit=mc-itype%2Cphr%3ABK&sort_by=acqdate_dsc&do=Search
>> [3] http://library.sj.org.za/cgi-bin/koha/opac-search.pl?&limit=mc-itype%252Cphr%253ABK&count=50&sort_by=acqdate_dsc&format=rss2
>> [4] http://library.sj.org.za/cgi-bin/koha/opac-search.pl?&limit=mc-itype%252Cphr%253ABK&count=50&sort_by=acqdate_dsc&format=html

I had implemented the suggestion at URL [1] on Koha 3.20. It was working before I upgraded to 3.22. Now the RSS link on the Advanced Search Results (with limiting item-type to Books and Sort Ordered to Acquisition Date: Newest to Oldest) page at URL [2] appears to be URL [3] which does not work with the RSS Feed software (http://feed.mikle.com) described by Vinod in his post at URL [1] above.

I tried to validate [3] at https://validator.w3.org/feed/ but I get the following error:

"Server returned [Errno -2] Name or service not known [help]"

The help message for this error says:

"This usually means that the URL was wrong, or that permissions on the server don't allow us to fetch that file. The error shows the message that the server sent, which may help."

The file permissions for opac-search.pl is:

-rwxr-xr-x 1 library-koha library-koha 40740 Dec 25 14:16 opac-search.pl

If I change the format=rss2 to format=html it works, as in URL [4]

My Server Information in About Koha is:

> Koha version: 	    3.22.01.000
> OS version ('uname -a'):  Linux ip-172-31-38-247 3.13.0-71-generic
>                           #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
> Perl interpreter:	    /usr/bin/perl
> Perl version:	            5.018002
> Perl @INC:	            /usr/share/koha/lib, /etc/perl, /usr/local/lib/perl/5.18.2 
>                           /usr/local/share/perl/5.18.2, /usr/lib/perl5, /usr/share/perl5 
>                           /usr/lib/perl/5.18, /usr/share/perl/5.18, /usr/local/lib/site_perl, . 
> MySQL version:	    mysql Ver 14.14 Distrib 5.5.46, for debian-linux-gnu (x86_64) using readline 6.3
> Apache version:	    Server version: Apache/2.4.7 (Ubuntu)
> Zebra version:	    Zebra 2.0.44

If you need to test the links, you can login to the OPAC with the username: guest; password: guest

The entries in my error log are:

[Sat Dec 26 22:05:48.405262 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 86, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.405677 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 87, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.413331 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: Use of uninitialized value in hash element at /usr/share/koha/lib/C4/Languages.pm line 352.
[Sat Dec 26 22:05:48.413532 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: Use of uninitialized value in hash element at /usr/share/koha/lib/C4/Languages.pm line 353.
[Sat Dec 26 22:05:48.417325 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: Use of uninitialized value in hash element at /usr/share/koha/lib/C4/Languages.pm line 352.
[Sat Dec 26 22:05:48.417570 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: Use of uninitialized value in hash element at /usr/share/koha/lib/C4/Languages.pm line 353.
[Sat Dec 26 22:05:48.432903 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: Use of uninitialized value in hash element at /usr/share/koha/lib/C4/Languages.pm line 352.
[Sat Dec 26 22:05:48.433142 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: Use of uninitialized value in hash element at /usr/share/koha/lib/C4/Languages.pm line 353.
[Sat Dec 26 22:05:48.466750 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/lib/C4/Auth.pm line 399, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.586467 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 395, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.586834 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 395, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.587102 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 395, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.587362 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 395, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.589382 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 416, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.589696 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 426, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.589964 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 435, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.590241 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 440, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.590501 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 448, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.590748 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 461, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.591004 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: CGI::param called in list context from /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 463, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/local/share/perl/5.18.2/CGI.pm line 404.
[Sat Dec 26 22:05:48.612611 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:48 2015] opac-search.pl: Use of uninitialized value in split at /usr/share/koha/opac/cgi-bin/opac/opac-search.pl line 529.
[Sat Dec 26 22:05:49.836288 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:49 2015] opac-search.pl: Use of uninitialized value in hash element at /usr/share/koha/lib/C4/Languages.pm line 352.
[Sat Dec 26 22:05:49.836579 2015] [cgi:error] [pid 10246] [client 173.33.162.8:57341] AH01215: [Sat Dec 26 22:05:49 2015] opac-search.pl: Use of uninitialized value in hash element at /usr/share/koha/lib/C4/Languages.pm line 353.

I have tried this in Safari (9.0.2 (11601.3.9)) and Chrome (47.0.2526.106 (64-bit)).

Does anyone have any ideas?

Matthew

> List of URL's referenced in this post:
>> [1] http://koha.1045719.n5.nabble.com/Display-of-Scrolling-New-Arrivals-List-on-Koha-OPAC-td5847767.html
>> [2] http://library.sj.org.za/cgi-bin/koha/opac-search.pl?idx=kw&idx=kw&idx=kw&limit=mc-itype%2Cphr%3ABK&sort_by=acqdate_dsc&do=Search
>> [3] http://library.sj.org.za/cgi-bin/koha/opac-search.pl?&limit=mc-itype%252Cphr%253ABK&count=50&sort_by=acqdate_dsc&format=rss2
>> [4] http://library.sj.org.za/cgi-bin/koha/opac-search.pl?&limit=mc-itype%252Cphr%253ABK&count=50&sort_by=acqdate_dsc&format=html
Comment 1 Owen Leonard 2016-03-21 15:54:27 UTC
Is this still a problem? Link [2] doesn't work anymore because the catalog seems to now require login.
Comment 2 Matthew Charlesworth 2016-03-21 20:46:26 UTC
(In reply to Owen Leonard from comment #1)
> Is this still a problem? Link [2] doesn't work anymore because the catalog
> seems to now require login.

The password is listed on the opening page (guest|guest). It still doesn't work. It used to work, even with the password.
Comment 3 Owen Leonard 2016-03-22 12:07:29 UTC
(In reply to matthew.charlesworth from comment #2)

> The password is listed on the opening page (guest|guest). It still doesn't
> work. It used to work, even with the password.

I don't know how it worked before because I've never tried to do what you're trying to do. But it makes sense that an RSS feed processor would not be able to process the feed because the feed is inaccessible when the "OpacPublic" system preference is set to require a login.