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

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Odd errors
PostPosted: Thu Dec 11, 2008 7:16 am 
Hi guys,

Firstly, I'm glad to see a project like Baconmap as I've had real problems trying to document my network so that anyone other than myself can see the Big Picture!

I've got a number of funny errors coming up when I try and create/update items. Mostly the errors seem erroneous as the updates do complete.

I've applied the beta updates zip from earlier today.

The webserver is running Debian Etch with the latest Apache2.2, php5 & mysql client packages. The MySQL server is running Debian Sarch with MySQL 4.1.

Onto the list:

When I try and edit an item, under the dependences section it shows this and doesn't list the parents.
Code:
Warning: mysql_query() [function.mysql-query]: Unable to save result set in /var/www/baconmap/includes/functions.php on line 838

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/baconmap/includes/functions.php on line 839


When I create a new group
Code:
Array ( [0] => box_2 [1] => box_3 )
Warning: Cannot modify header information - headers already sent by (output started at /var/www/baconmap/dogroup.php:18) in /var/www/baconmap/dogroup.php on line 111


When I click "update list" in the admin page:
Code:
Warning: Invalid argument supplied for foreach() in /var/www/baconmap/admin/updatelist.php on line 28



When I update a resource
Code:
Warning: mysql_data_seek() [function.mysql-data-seek]: Offset 0 is invalid for MySQL result index 34 (or the query data is unbuffered) in /var/www/baconmap/includes/functions.php on line 1680

Warning: mysql_data_seek() [function.mysql-data-seek]: Offset 0 is invalid for MySQL result index 35 (or the query data is unbuffered) in /var/www/baconmap/includes/functions.php on line 1680

Warning: mysql_data_seek() [function.mysql-data-seek]: Offset 0 is invalid for MySQL result index 45 (or the query data is unbuffered) in /var/www/baconmap/includes/functions.php on line 1680

Warning: Cannot modify header information - headers already sent by (output started at /var/www/baconmap/includes/functions.php:1680) in /var/www/baconmap/doedit.php on line 266


When creating a new device, it puts the serial number into the location field.


Top
  
 
 Post subject: Re: Odd errors
PostPosted: Thu Dec 11, 2008 10:11 am 
Offline
Site Admin

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

Thanks for your help. I've updated the fix file and it should now also include fixes for the errors you listed in your post.

Thanks again!

-Ed

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


Top
 Profile  
 
 Post subject: Re: Odd errors
PostPosted: Thu Apr 02, 2009 3:37 pm 
Offline

Joined: Thu Apr 02, 2009 2:16 pm
Posts: 2
Warning: mysql_data_seek() [function.mysql-data-seek]: Offset 0 is invalid for MySQL result index 34 (or the query data is unbuffered) in /var/www/baconmap/includes/functions.php on line 1680

Warning: mysql_data_seek() [function.mysql-data-seek]: Offset 0 is invalid for MySQL result index 35 (or the query data is unbuffered) in /var/www/baconmap/includes/functions.php on line 1680

Warning: mysql_data_seek() [function.mysql-data-seek]: Offset 0 is invalid for MySQL result index 45 (or the query data is unbuffered) in /var/www/baconmap/includes/functions.php on line 1680

Warning: Cannot modify header information - headers already sent by (output started at /var/www/baconmap/includes/functions.php:1680) in /var/www/baconmap/doedit.php on line 266


Top
 Profile  
 
 Post subject: Re: Odd errors
PostPosted: Fri Apr 03, 2009 8:57 am 
Offline
Site Admin

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

For now, open up functions.php (/baconmap/includes/functions.php) and go to line 1680.

Change
Code:
mysql_data_seek($mainresult,0);


to
Code:
@mysql_data_seek($mainresult,0);


That should get rid of the errors.

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


Top
 Profile  
 
 Post subject: Re: Odd errors
PostPosted: Thu Jul 02, 2009 7:03 pm 
Offline

Joined: Thu Apr 02, 2009 2:16 pm
Posts: 2
Thanks a bunch! Appreciate the help.

_____________________________________
Warning: mysql_data_seek()business grants [function.mysql-data-seek]: Offset 0 is invalid for MySQL result index 34 (or the query data is unbuffered) in /var/www/baconmap/includes/functions.php on line 1680

Warning: mysql_data_seek() [function.mysql-data-seek]: college grantsOffset 0 is invalid for MySQL result index 35 (or the query data is unbuffered) in /var/www/baconmap/includes/functions.php on line 1680

Warning: mysql_data_seek() [function.mysql-data-seek]: Offset 0 is invalid for MySQL result index 45 (or the query data is unbuffered) in /var/www/baconmap/includes/functions.php on line 1680

Warning: Cannot modify header information - private grants headers already sent by (output started at /var/www/baconmap/includes/functions.php:1680) in /var/www/baconmap/doedit.php on line 266


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: No registered users 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