Bug 39744 - Error 404 getting a couple of js files
Summary: Error 404 getting a couple of js files
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: I18N/L10N (show other bugs)
Version: 24.11
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-25 04:05 UTC by Mariano Di Ianni
Modified: 2025-04-25 13:15 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mariano Di Ianni 2025-04-25 04:05:03 UTC
Hi,

We are using es-ES translation. The error shows up trying to fill form at cataloguing, when field builder opens on field 006 we are getting this 404 errors

plugin_launcher.pl:188 
            
            
           GET https://biblio-admin.fcaglp.unlp.edu.ar/intranet-tmpl/prog/es-ES/js/locale_data_24.1103000.js 404 (Not Found)Understand this error
jquery-3.6.0.min_24.1103000.js:2 
            
            
           GET https://biblio-admin.fcaglp.unlp.edu.ar/intranet-tmpl/prog/es-ES/data/marc21_field_006.xml 404 (Not Found)

The files are already there and accesible on filesystem so couldn't figue out what's wrong.

Thanks!

Mariano.
Comment 2 Katrin Fischer 2025-04-25 07:37:45 UTC
Does the same error show up if you are using the English templates?
Comment 3 Mariano Di Ianni 2025-04-25 12:01:21 UTC
Hello Katrin,

Nope, only happens with spanish translation. Right now we are using english language because of that. I've looked inside intranet/htdocs/intranet-tmpl/prog/en/js/ and there is no locale_data_24.1103000.js file, and still i get no error in english. And having that file there at /es-ES we already get the 404 error. Checked directory and file permissions, and everything looks fine. With 777 permissions still get 404.
Comment 4 Tomás Cohen Arazi (tcohen) 2025-04-25 12:43:30 UTC
(In reply to Mariano Di Ianni from comment #3)
> Hello Katrin,
> 
> Nope, only happens with spanish translation. Right now we are using english
> language because of that. I've looked inside
> intranet/htdocs/intranet-tmpl/prog/en/js/ and there is no
> locale_data_24.1103000.js file, and still i get no error in english. And
> having that file there at /es-ES we already get the 404 error. Checked
> directory and file permissions, and everything looks fine. With 777
> permissions still get 404.

Did the translation process raise any error? We've seen the last few updates contained some wrongly processed translations which yielded an unfinished translation process. 

Can you run this and tell us what the output is?

```shell
koha-translate --update es-ES
```

Saludos desde Córdoba
Comment 5 Mariano Di Ianni 2025-04-25 13:15:55 UTC
Hi Tomás! Thanks for the reply.

This is the command output:

root@b42f0da24df3:/docker# koha-translate  --update es-ES
tmpl_process3.pl: Warning: unconsistent %s count: (5/4):
  line:   69085
  msgid:  "%s %s %s %s %s Point of "
  msgstr: "%s %s %s %s Punto de "
tmpl_process3.pl: Warning: unconsistent %s count: (5/4):
  line:   69069
  msgid:  "%s %s %s %s %s Course "
  msgstr: "%s %s %s %s Curso "
tmpl_process3.pl: Warning: unconsistent %s count: (5/4):
  line:   69081
  msgid:  "%s %s %s %s %s Interlibrary "
  msgstr: "%s %s %s %s Interbibliotecario "
tmpl_process3.pl: Warning: unconsistent %s count: (5/4):
  line:   69073
  msgid:  "%s %s %s %s %s E-resource "
  msgstr: "%s %s %s %s Recurso electr�nico "


I've already noticed that before, but noticed nothing related with that 404 error. Tryed to debug it but couldn't find those mismatch %s where they are generated, due lack of time. I'll keep looking.

Muchas gracias y saludos de La Plata, Buenos Aires.