No sabéis porque y derepente el amigo jpgraph deja de funcionar con este mensaje de error:
Chosen locale file (”lang/en.inc.php”) for error messages does not exist or is not readable for the PHP process. Please make sure that the file exists and that the file permissions are such that the PHP process is allowed to read this file
No preocuparse.
Necesitáis tener la carpeta lang dentro de donde hayáis instalado jpgraph. Si no la tenéis la podéis descargar de su sitio
La ponéis en vuestro servidor y una vez allí debéis buscar donde está el error:
Si tenéis un servidor linux podéis hacer simplemente:
grep -rni “Chosen locale file” /var/www/rutaajpgraph/
El grep se chivará que el error lo da este fichero:
/var/www/rutaajpgraph/src/jpgraph_errhandler.inc.php
lo editais en la línea 34 poniendo dos barras delante del die para que no pare el jpgraph:
//die(’Chosen locale file (”‘.$file.’”) for error messages does not exist or is not readable for the PHP process. Please make sure that the file exists and that the file permissions are such that the PHP process is allowed to read this file.’);
y finalmente en la línea 36 le decís donde está la dichosa carpeta del lang:
require(”/var/www/rutaajpgraph/src/”.$file);
Y ya está ya lo tenéis funcionando otra vez.
No Comments so far ↓
There are no comments yet...Kick things off by filling out the form below.