Dificultades con Libro

Dificultades con Libro

de Nicolas Wahl -
Número de respuestas: 2

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:

  1. Es legítimo ignorar los paquetes LANG que no se van a usar? La idea sería evitar el tiempo de uploading al site.
  2. Como corrijo el tema ahora?
  3. Como me deshago de que me muestre los errores en el cominzo del Site, que es útil pero molesto?
  4. 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?
  5. Estos errores están relacionados entre sí o estoy haciendo 2 cosas mal?

Muchas gracias, desde ya!

Nicolás

confuso 

Promedio de valoraciones: -
En respuesta a Nicolas Wahl

Re: Dificultades con Libro

de Eloy Lafuente (stronk7) -
Imagen de Desarrolladores Imagen de Desarrolladores de plugins Imagen de Documentadores Imagen de Moderadores Imagen de Moodle HQ Imagen de Moodlers de gran ayuda Imagen de Testers
1.- Legitimísimo! (pero recuerda dejar siempre el "en").
2.- A lo mejor te has dejado algunos sin borrar del todo (fi, fr...)
3.- Idem 2
4.- No! Solamente tienes que añadir los ficheros de lang del libro a los existentes (que son de todo lo demás). Si sustituyes, la has liado!
5.- Puede ser que estén relacionados. Si solucionas lo anterior, todo debería funcionarte (menos el aviso "foreach", que parece más serio). A lo mejor hay alguna actualización del libro que lo corrige.

Ciao sonrisa