jpgraph: Internal error: Chosen locale file for error messag
Posted: 03 Aug 2007, 13:00
Hi all,
I can not make jpgraph working with mantis.
Jpgraph works ok when called from my own php scripts.
It also works ok when called from jpgraph examples scripts.
But i can only see "red cross" in mantis.
When i called the graph itself
(like this: https://servername/summary_graph_byreso ... &token=184)
I got the following error:
Internal error: Chosen locale file for error messages does not exist.
After some investigations i still don't know how tomake it work with mantis.
I use mantis 1.0.8
php 5.2.1
jpgraph 2.1.4
apache 2.0
freebsd 6.2
here are define statements from jpg-config.inc.php:
DEFINE("TTF_DIR","/usr/X11R6/lib/X11/fonts/winfonts/");
DEFINE("CSIMCACHE_DIR","csimcache/");
DEFINE("CSIMCACHE_HTTP_DIR","csimcache/");
DEFINE('CHINESE_TTF_FONT','bkai00mp.ttf');
DEFINE("LANGUAGE_GREEK",false);
DEFINE("GREEK_FROM_WINDOWS",false);
DEFINE("LANGUAGE_CYRILLIC",true);
DEFINE("CYRILLIC_FROM_WINDOWS",true);
DEFINE('LANGUAGE_CHARSET','windows-1251');
DEFINE('MINCHO_TTF_FONT','ipam.ttf');
DEFINE('PMINCHO_TTF_FONT','ipamp.ttf');
DEFINE('GOTHIC_TTF_FONT','ipag.ttf');
DEFINE('PGOTHIC_TTF_FONT','ipagp.ttf');
DEFINE('ASSUME_EUCJP_ENCODING',false);
DEFINE('DEFAULT_ERR_LOCALE','en');
DEFINE("DEFAULT_GFORMAT","auto");
DEFINE("USE_CACHE",false);
DEFINE("READ_CACHE",false);
DEFINE("USE_IMAGE_ERROR_HANDLER",true);
DEFINE("CATCH_PHPERRMSG",true);
DEFINE("INSTALL_PHP_ERR_HANDLER",true);
DEFINE("USE_APPROX_COLORS",true);
DEFINE("ERR_DEPRECATED",true);
DEFINE("BRAND_TIMING",false);
DEFINE("BRAND_TIME_FORMAT","(%01.3fs)");
DEFINE("CACHE_FILE_GROUP","www");
DEFINE("CACHE_FILE_MOD",0664);
DEFINE("USE_BRESENHAM",false);
DEFINE("_CSIM_SPECIALFILE","_csim_special_");
DEFINE("_CSIM_DISPLAY","_jpg_csimd");
DEFINE("_IMG_HANDLER","__handle");
and here are jpgraph settings from mantis config_inc.php
$g_use_jpgraph = ON;
$g_jpgraph_path = '/usr/local/share/jpgraph/';
$g_graph_font = 'arial';
Please advise where to look for the cause of the problem?
Thanks in advance,
Nikolay.
I can not make jpgraph working with mantis.
Jpgraph works ok when called from my own php scripts.
It also works ok when called from jpgraph examples scripts.
But i can only see "red cross" in mantis.
When i called the graph itself
(like this: https://servername/summary_graph_byreso ... &token=184)
I got the following error:
Internal error: Chosen locale file for error messages does not exist.
After some investigations i still don't know how tomake it work with mantis.
I use mantis 1.0.8
php 5.2.1
jpgraph 2.1.4
apache 2.0
freebsd 6.2
here are define statements from jpg-config.inc.php:
DEFINE("TTF_DIR","/usr/X11R6/lib/X11/fonts/winfonts/");
DEFINE("CSIMCACHE_DIR","csimcache/");
DEFINE("CSIMCACHE_HTTP_DIR","csimcache/");
DEFINE('CHINESE_TTF_FONT','bkai00mp.ttf');
DEFINE("LANGUAGE_GREEK",false);
DEFINE("GREEK_FROM_WINDOWS",false);
DEFINE("LANGUAGE_CYRILLIC",true);
DEFINE("CYRILLIC_FROM_WINDOWS",true);
DEFINE('LANGUAGE_CHARSET','windows-1251');
DEFINE('MINCHO_TTF_FONT','ipam.ttf');
DEFINE('PMINCHO_TTF_FONT','ipamp.ttf');
DEFINE('GOTHIC_TTF_FONT','ipag.ttf');
DEFINE('PGOTHIC_TTF_FONT','ipagp.ttf');
DEFINE('ASSUME_EUCJP_ENCODING',false);
DEFINE('DEFAULT_ERR_LOCALE','en');
DEFINE("DEFAULT_GFORMAT","auto");
DEFINE("USE_CACHE",false);
DEFINE("READ_CACHE",false);
DEFINE("USE_IMAGE_ERROR_HANDLER",true);
DEFINE("CATCH_PHPERRMSG",true);
DEFINE("INSTALL_PHP_ERR_HANDLER",true);
DEFINE("USE_APPROX_COLORS",true);
DEFINE("ERR_DEPRECATED",true);
DEFINE("BRAND_TIMING",false);
DEFINE("BRAND_TIME_FORMAT","(%01.3fs)");
DEFINE("CACHE_FILE_GROUP","www");
DEFINE("CACHE_FILE_MOD",0664);
DEFINE("USE_BRESENHAM",false);
DEFINE("_CSIM_SPECIALFILE","_csim_special_");
DEFINE("_CSIM_DISPLAY","_jpg_csimd");
DEFINE("_IMG_HANDLER","__handle");
and here are jpgraph settings from mantis config_inc.php
$g_use_jpgraph = ON;
$g_jpgraph_path = '/usr/local/share/jpgraph/';
$g_graph_font = 'arial';
Please advise where to look for the cause of the problem?
Thanks in advance,
Nikolay.