| Summary: | OPAC generates warnings in logs when no results are found | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Janusz Kaczmarek <januszop> |
| Component: | OPAC | Assignee: | Janusz Kaczmarek <januszop> |
| Status: | Pushed to oldstable --- | QA Contact: | Marcel de Rooy <m.de.rooy> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | fridolin.somers, m.de.rooy, oleonard |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | Sponsored | Crowdfunding goal: | 0 |
| Patch complexity: | Trivial patch | Documentation contact: | |
| Documentation submission: | Text to go in the release notes: | ||
| Version(s) released in: |
25.11.00,25.05.03,24.11.09
|
Circulation function: | |
| Bug Depends on: | |||
| Bug Blocks: | 25790 | ||
| Attachments: |
Bug 40540: OPAC generates warnings in logs when no results are found
Bug 40540: OPAC generates warnings in logs when no results are found Bug 40540: OPAC generates warnings in logs when no results are found |
||
|
Description
Janusz Kaczmarek
2025-07-29 09:44:19 UTC
Created attachment 184788 [details] [review] Bug 40540: OPAC generates warnings in logs when no results are found When no results are found, a warning: [WARN] Argument "" isn't numeric in numeric gt (>) at /kohadevbox/koha/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt line 76. is generated in [plack-]opac-error.log Test plan: ========== 1. In OPAC, perform a search for a random string of characters to get no results. 2. Check plack-opac-error.log. You should see a warning as above. 3. Apply the patch ; restart_all. 4. Repeat the search. Check the log -- there should be no new warning. Sponsored-by: Ignatianum University in Cracow Created attachment 184824 [details] [review] Bug 40540: OPAC generates warnings in logs when no results are found When no results are found, a warning: [WARN] Argument "" isn't numeric in numeric gt (>) at /kohadevbox/koha/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt line 76. is generated in [plack-]opac-error.log Test plan: ========== 1. In OPAC, perform a search for a random string of characters to get no results. 2. Check plack-opac-error.log. You should see a warning as above. 3. Apply the patch ; restart_all. 4. Repeat the search. Check the log -- there should be no new warning. Sponsored-by: Ignatianum University in Cracow Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> Created attachment 184971 [details] [review] Bug 40540: OPAC generates warnings in logs when no results are found When no results are found, a warning: [WARN] Argument "" isn't numeric in numeric gt (>) at /kohadevbox/koha/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt line 76. is generated in [plack-]opac-error.log Test plan: ========== 1. In OPAC, perform a search for a random string of characters to get no results. 2. Check plack-opac-error.log. You should see a warning as above. 3. Apply the patch ; restart_all. 4. Repeat the search. Check the log -- there should be no new warning. Sponsored-by: Ignatianum University in Cracow Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Nice work everyone! Pushed to main for 25.11 Nice work everyone! Pushed to 25.05.x We may also check in perl code that pages var is always a number Pushed to 24.11.x for 24.11.09 |