Interactive hybrid cars resource
GreenHybrid Home - Hybrid Cars
Hybrid Cars Discussion Forums
Hybrid Articles
Hybrid Mileage Database & Car Specs
Hybrid Car Photo Gallery
Shopping Guide for Hybrid Cars


Go Back   GreenHybrid - Hybrid Cars > Miscellaneous Forums > Website Questions & Input
Register FAQ Members List Search Today's Posts Mark Forums Read

Website Questions & Input Suggestions and inquiries about GreenHybrid are welcome here. 

Reply
 
Thread Tools Search this Thread
  #1 (permalink)  
Old 11-26-2005, 02:45 AM
Schwa's Avatar
Schwa Schwa is offline
Ridiculously Active Enthusiast
 
Real Name: Erick
Location: Coquitlam, B.C.
Hybrids: 2001 Prius
Posts: 1,045
Default Errors on the metric Compare page

The graph does not show (broken image icon) and there are some other PHP errors showing up in the Mariner Aggregate Data Table, probably just to do with no data (but it looks rather bad).

Code:
Warning: Division by zero in /functions.php on line 15 0.00 Warning: Division by zero in /functions.php on line 15 0.00 Warning: Division by zero in /functions.php on line 15 0.00– Warning: Division by zero in /functions.php on line 15 0.00
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-26-2005, 06:55 AM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default Re: Errors on the metric Compare page

Ah. I forgot this would happen in metric mode. I'll try and fix it soon. Thanks.

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-26-2005, 05:37 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default Re: Errors on the metric Compare page

Fixed.

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-28-2005, 05:33 AM
Schwa's Avatar
Schwa Schwa is offline
Ridiculously Active Enthusiast
 
Real Name: Erick
Location: Coquitlam, B.C.
Hybrids: 2001 Prius
Posts: 1,045
Default Re: Errors on the metric Compare page

Table looks good, I still don't see the graph though. If you view the graph by itself it comes up as an HTML document with "Warning: Division by zero in /home/gh/public_html/compare/mileage/functions.php on line 15" three times and then some helpful tips for fixing it.

Last edited by Schwa : 11-28-2005 at 05:37 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-28-2005, 09:12 AM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default Re: Errors on the metric Compare page

Which graph? The one on the main database page? That shows fine for me... The Mariner graph shouldn't show but there isn't yet a link to that page.

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-28-2005, 10:04 PM
Schwa's Avatar
Schwa Schwa is offline
Ridiculously Active Enthusiast
 
Real Name: Erick
Location: Coquitlam, B.C.
Hybrids: 2001 Prius
Posts: 1,045
Default Re: Errors on the metric Compare page

Strange... I'm still getting a broken graphic and the "image" in it's own window comes up as an error page, same in a few browsers.

http://www.greenhybrid.com/compare/m...?system=Metric

Imperial and US show up fine.

here's the content of the page I get, in case it's not showing up for you:
Code:
<br /> <b>Warning</b>: Division by zero in <b>/home/gh/public_html/compare/mileage/functions.php</b> on line <b>15</b><br /> <br /> <b>Warning</b>: Division by zero in <b>/home/gh/public_html/compare/mileage/functions.php</b> on line <b>15</b><br /> <br /> <b>Warning</b>: Division by zero in <b>/home/gh/public_html/compare/mileage/functions.php</b> on line <b>15</b><br /> <table border=1><tr><td><font color=darkred size=4><b>JpGraph Error:</b> HTTP headers have already been sent.</font></td></tr><tr><td><b>Explanation:</b><br>HTTP headers have already been sent back to the browser indicating the data as text before the library got a chance to send it's image HTTP header to this browser. This makes it impossible for the library to send back image data to the browser (since that would be interpretated as text by the browser and show up as junk text).<p>Most likely you have some text in your script before the call to <i>Graph::Stroke()</i>. If this texts gets sent back to the browser the browser will assume that all data is plain text. Look for any text, even spaces and newlines, that might have been sent back to the browser. <p>For example it is a common mistake to leave a blank line before the opening "<b>&lt;?php</b>".</td></tr></table>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-28-2005, 11:49 PM
Jason Jason is offline
GreenHybrid Founder
 
Real Name: Jason Siegel
Location: Houston, TX
Hybrids: 2004 Toyota Prius
Posts: 4,487
Default Re: Errors on the metric Compare page

Oh, I see what you mean now. I forgot the graph is different in metrics. The problem is that the Mariner currently has no data. It should show up as 0 MPG but in metrics the 0 goes in the denominator, causing a basic mathematics issue.

I could take the Mariner out of the graph right now but to be honest that's going to be a hassle. I'd think maybe we should just wait until there's a car or two and I can activate the statistics. Where are those Mariner drivers? Have they not hit the roads!?

.

Visit my newly-acquired website, Volconvo Debate Forums!


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 11-29-2005, 02:00 AM
Schwa's Avatar
Schwa Schwa is offline
Ridiculously Active Enthusiast
 
Real Name: Erick
Location: Coquitlam, B.C.
Hybrids: 2001 Prius
Posts: 1,045
Default Re: Errors on the metric Compare page

Ok, that's what I figured, based on the error, but I thought maybe I was seeing something you weren't, and that would probably mean stranger gremlins.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Topic Starter Forum Replies Last Post
IMPORTANT Database Errors Jason Website Questions & Input 4 04-21-2005 07:36 PM
Getting 404 Errors? Jason Website Questions & Input 7 03-02-2005 01:34 PM
New Portal Page Jason Our Announcements 2 01-14-2005 02:30 PM


All times are GMT -7. The time now is 11:46 AM.



This website is made possible by people like you.
Thank you.


HOME   .   DISCUSS   .   LEARN   .   COMPARE   .   SHARE   .   SHOP

About      Press Release      Contact

Suggested Link      Promote Hybrids      Site Store




COPYRIGHT © 2005-2006 Internet Brands, Inc. | Privacy Policy

SEO by vBSEO 3.0.0