Cuando instalé el módulo Libro en la plataforma hosteada, no copié todos los lenguajes (de /LANG) sino tan solo "en" y "es", que son los que uso.
La instalación dió estos errores:
Warning: get_list_of_languages(/var/www/html/moodle/lang/fi/moodle.php): failed to open
stream: No such file or directory in /var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(): Failed opening
'/var/www/html/moodle/lang/fi/moodle.php' for inclusion
(include_path='.:/php/includes:/usr/share/php') in
/var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(/var/www/html/moodle/lang/fr/moodle.php): failed to open
stream: No such file or directory in /var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(): Failed opening
'/var/www/html/moodle/lang/fr/moodle.php' for inclusion
(include_path='.:/php/includes:/usr/share/php') in
/var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(/var/www/html/moodle/lang/id/moodle.php): failed to open
stream: No such file or directory in /var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(): Failed opening
'/var/www/html/moodle/lang/id/moodle.php' for inclusion
(include_path='.:/php/includes:/usr/share/php') in
/var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(/var/www/html/moodle/lang/it/moodle.php): failed to open
stream: No such file or directory in /var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(): Failed opening
'/var/www/html/moodle/lang/it/moodle.php' for inclusion
(include_path='.:/php/includes:/usr/share/php') in
/var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(/var/www/html/moodle/lang/ja/moodle.php): failed to open
stream: No such file or directory in /var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(): Failed opening
'/var/www/html/moodle/lang/ja/moodle.php' for inclusion
(include_path='.:/php/includes:/usr/share/php') in
/var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(/var/www/html/moodle/lang/nl/moodle.php): failed to open
stream: No such file or directory in /var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(): Failed opening
'/var/www/html/moodle/lang/nl/moodle.php' for inclusion
(include_path='.:/php/includes:/usr/share/php') in
/var/www/html/moodle/lib/moodlelib.php on line 2332
Warning: get_list_of_languages(/var/www/html/moodle/lang/pt_br/moodle.php): failed to
open stream: No such file or directory in /var/www/html/moodle/lib/moodlelib.php on line
2332
Warning: get_list_of_languages(): Failed opening
'/var/www/html/moodle/lang/pt_br/moodle.php' for inclusion
(include_path='.:/php/includes:/usr/share/php') in
/var/www/html/moodle/lib/moodlelib.php on line 2332
Pensé que esos Warnings no tenía mayores consecuencias, pero al generar un Libro, me aparecen otros errores:
Warning: Invalid argument supplied for foreach() in
/var/www/html/moodle/mod/book/lib.php on line 277
Warning: Invalid argument supplied for foreach() in
/var/www/html/moodle/mod/book/lib.php on line 280
y el Libro no se crea.
Si alguien tiene la amabilidad de contestarme, tendría estas preguntas:
- Es legítimo ignorar los paquetes LANG que no se van a usar? La idea sería evitar el tiempo de uploading al site.
- Como corrijo el tema ahora?
- Como me deshago de que me muestre los errores en el cominzo del Site, que es útil pero molesto?
- El README de Libro dice "3/ move moodle/mod/book/lang to moodle/lang", eso significa que debe sustiturse ek dir moodle/lang del site por el nuevo moodle/mod/book/lang, perdiendo los contenidos previos?
- Estos errores están relacionados entre sí o estoy haciendo 2 cosas mal?
Muchas gracias, desde ya!
Nicolás