Nette a jpgraph
- odin
- Člen | 50
Podarilo se to nekomu dat dohromady? Ja skoncim s
Fatal error: Exception thrown without a stack frame in Unknown on line 0
jenom jakmile v nette dam
require_once(LIBS_DIR.‚/jpgraph/jpgraph.php‘);
tridu Image jpgraph uz jsem prejmenoval, error handler jpgraph je vypnuty:
define(‚USE_IMAGE_ERROR_HANDLER‘,false);
define(‚CATCH_PHPERRMSG‘,false);
define(‚INSTALL_PHP_ERR_HANDLER‘,false);
knihovna jako takova je vporadku, vyzkouseno na prikladu, v cem se to jeste muze tlouct?
- odin
- Člen | 50
Takze uz jsem to snad vyresil, kdyby na to nahodou nekdo narazil, tak je potreba
- Prejmenovat tridu Image treba na JpImage
gd_image.inc.php:35 class JpImage {
gd_image.inc.php:1649 class RotImage extends JpImage {
jpgraph_errhandler.inc.php:299 $img = new JpImage($w,$h);
jpgraph_led.php:260 $img = new JpImage($width, $height, DEFAULT_GFORMAT, false);
jpgraph_led.php:297 $number_img = new JpImage($w*$n, $h, DEFAULT_GFORMAT, false);
jpgraph_mgraph.php:47 $image = new JpImage();
jpgraph_mgraph.php:292 $image = new JpImage($w,$h);
- zakazat errohandlery jpggrah
jpg-config.inc.php:89 define(‚USE_IMAGE_ERROR_HANDLER‘,false);
jpg-config.inc.php:96 define(‚CATCH_PHPERRMSG‘,false);
jpg-config.inc.php:102 define(‚INSTALL_PHP_ERR_HANDLER‘,false);
jpgraph_errhandler.inc.php:137 //$__jpg_OldHandler = set_exception_handler(array(‚JpGraphException‘,‚defaultHandler‘));
- zakazat autoload trid pro jpgraph, do adresare libs dat soubor
netterobots.txt s obsahem
Disallow: /jpgraph
- a pak uz by melo fungovat:
require_once(LIBS_DIR.‚/jpgraph/jpgraph.php‘);
require_once(LIBS_DIR.‚/jpgraph/jpgraph_line.php‘);
$graph = new Graph(800, 600);
- Honza Kuchař
- Člen | 1662
Diky, JPGraph se bude hodit. ;) Případně můžeš hodit tu upravenou verzi někam ke stažení.