It is currently Sun Nov 22, 2009 6:07 pm

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: big picture/maps not working
PostPosted: Thu May 14, 2009 4:19 pm 
Offline

Joined: Thu May 14, 2009 4:11 pm
Posts: 3
Hi. I think I've got all of baconmap working except the graphics. I see the following in my apache error logs:

[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/baconmap/picture.php on line 67, referer: http://jgtest/baconmap/javascript/greybox/loader_frame.html?s=0
[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/baconmap/picture.php on line 73, referer: http://jgtest/baconmap/javascript/greybox/loader_frame.html?s=0
[Thu May 14 17:12:16 2009] [error] [client 172.20.49.20] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/baconmap/picture.php on line 75, referer: http://jgtest/baconmap/javascript/greybox/loader_frame.html?s=0
[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/javascript/greybox/loader_frame.html?s=0
[Thu May 14 17:12:16 2009] [error] [client 172.20.49.20] PHP Notice: Undefined index: service1 in /var/www/html/baconmap/picture.php on line 215, referer: http://jgtest/baconmap/javascript/greybox/loader_frame.html?s=0
[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] PHP Notice: Undefined index: service2 in /var/www/html/baconmap/picture.php on line 215, referer: http://jgtest/baconmap/javascript/greybox/loader_frame.html?s=0
[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] PHP Notice: Undefined variable: allclustercode in /var/www/html/baconmap/picture.php on line 223, referer: http://jgtest/baconmap/javascript/greybox/loader_frame.html?s=0
[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] PHP Fatal error: Call to undefined function imagecreatefromgif() in /var/www/html/baconmap/picture.php on line 230, referer: http://jgtest/baconmap/javascript/greybox/loader_frame.html?s=0

Software I'm using:
CentOS 5.3
httpd 2.2.3
php 5.1.6
graphviz 2.22.2
mysql 5.0.45

Thanks for you help. The product looks very promsing!


Top
 Profile  
 
 Post subject: Re: big picture/maps not working
PostPosted: Thu May 14, 2009 4:22 pm 
Offline

Joined: Thu May 14, 2009 4:11 pm
Posts: 3
forgot to mention, i'm using Guinea .70 (zip file)


Top
 Profile  
 
 Post subject: Re: big picture/maps not working
PostPosted: Fri May 15, 2009 9:05 am 
Offline
Site Admin

Joined: Mon Jun 23, 2008 1:42 pm
Posts: 51
Location: NMSU - Las Cruces, New Mexico
Hey jgibson,

I've uploaded a new version of picture.php that should take care of some of the notices there, but I don't think it will solve your real problem which is the 'Fatal Error' at the bottom. It doesn't look like you have the GD library running on your PHP installation. BaconMap requires the GD library in order to draw the maps. It comes bundled with PHP, but isn't always 'turned on' by default.

You can verify if you have the GD library running by looking at phpinfo. Create a new .php file somewhere on your server with the following code:

Code:
<?php
phpinfo();
?>


Surf to that file from your browser and you should see a detailed view of the options and settings for your PHP installation. If GD isn't in the list somewhere, then it's not installed and the maps can't be drawn until it is.

Here's more information from PHP.net:
Installing GD

I'm not that familiar with CentOS, but I think you might be able to use Yum to get GD working.

In any case, here's a link to the latest version of picture.php that should fix a couple of the notices you have listed. The notices aren't a big deal though, it's the fatal error that's killing you. Just right click, save as, and overwrite your copy.
/picture.php

Thanks, and let me know how it turns out.

_________________
Ed Zenisek - NMSU Research
Lead BaconMap Developer and all around good guy.


Top
 Profile  
 
 Post subject: Re: big picture/maps not working
PostPosted: Tue Jun 16, 2009 10:14 am 
Offline

Joined: Thu May 14, 2009 4:11 pm
Posts: 3
That did the trick. Apparently the php that ships with CentOS 5 doesn't include php-gd, but I enabled the testing repository and then I was able to get it. Now I get the Big Picture. Woohoo!

There are still some errors in my apache error log, I'm not sure if they're a big deal or not. I did replace the picture.php with the one you supplied in your post.

Here are the errors:

[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/baconmap/picture.php on line 75, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/baconmap/picture.php on line 83, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Missing argument 2 for write_graph(), called in /var/www/html/baconmap/picture.php on line 167 and defined in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Missing argument 3 for write_graph(), called in /var/www/html/baconmap/picture.php on line 167 and defined in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Missing argument 4 for write_graph(), called in /var/www/html/baconmap/picture.php on line 167 and defined in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Missing argument 5 for write_graph(), called in /var/www/html/baconmap/picture.php on line 167 and defined in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Missing argument 6 for write_graph(), called in /var/www/html/baconmap/picture.php on line 167 and defined in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Missing argument 2 for write_graph(), called in /var/www/html/baconmap/picture.php on line 167 and defined in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Missing argument 3 for write_graph(), called in /var/www/html/baconmap/picture.php on line 167 and defined in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Missing argument 4 for write_graph(), called in /var/www/html/baconmap/picture.php on line 167 and defined in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Missing argument 5 for write_graph(), called in /var/www/html/baconmap/picture.php on line 167 and defined in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/googlemap1.php
[Tue Jun 16 11:06:42 2009] [error] [client X.X.X.X] PHP Warning: Missing argument 6 for write_graph(), called in /var/www/html/baconmap/picture.php on line 167 and defined in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/googlemap1.php


Top
 Profile  
 
 Post subject: Re: big picture/maps not working
PostPosted: Thu Jul 02, 2009 7:27 pm 
Offline

Joined: Thu Jul 02, 2009 7:17 pm
Posts: 1
Very promising software! :lol:


____________________________________________

[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] government grantsPHP Warning: Invalid argument supplied for foreach() in /var/www/html/baconmap/picture.php on line 67, referer: http://jgtest/baconmap/javascript/greyb ... e.html?s=0
[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] free government grantsPHP Warning: Invalid argument supplied for foreach() in /var/www/html/baconmap/picture.php on line 73, referer: http://jgtest/baconmap/javascript/greyb ... e.html?s=0
[url=http://g/][Thu May 14 17:12:16 2009] [error] [client 172.20.49.20] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/baconmap/picture.php on line 75, referer: http://jgtest/baconmap/javascript/greyb ... e.html?s=0
[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] PHP Warning: Invalid argument supplied for foreach() in /var/www/html/baconmap/picture.php on line 148, referer: http://jgtest/baconmap/javascript/greyb ... e.html?s=0
[Thu May 14 17:12:16 2009] [error] [client 172.20.49.20] PHP Notice: Undefined index: service1 in /var/www/html/baconmap/picture.php on line 215, referer: http://jgtest/baconmap/javascript/greyb ... e.html?s=0[/url]
[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] free government grants for women [url=http://g/]PHP Notice: Undefined index: service2 in /var/www/html/baconmap/picture.php on line 215, referer: http://jgtest/baconmap/javascript/greyb ... e.html?s=0
[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] PHP Notice: Undefined variable: allclustercode in /var/www/html/baconmap/picture.php on line 223, referer: http://jgtest/baconmap/javascript/greyb ... e.html?s=0
[Thu May 14 17:12:16 2009] [error] [client x.x.x.x] PHP Fatal error: Call to undefined function imagecreatefromgif() in /var/www/html/baconmap/picture.php on line 230, referer: http://jgtest/baconmap/javascript/greyb ... e.html?s=0[/url]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
SubLite Theme By Echo -=Designs By Echo=- © 2007-2008 Echo
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group