Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


"XML: Hash version does not exist" is a terrible e

 
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests
Author Message
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2135
Location: United Kingdom

PostPosted: Fri Jan 18, 2008 3:22 am    Post subject: "XML: Hash version does not exist" is a terrible e Reply with quote

I reckon if that instead of "Error: XML: Hash version does not exist.", the import template function said "This template was exported from a newer version of Cacti (0.8.xy) - you must have at least that version to use this template.", then you'd reduce the load on the forums database by about 5%
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Fri Jan 18, 2008 9:18 am    Post subject: Reply with quote

I agree, but all programmers do that with their error messages.

"FELL THROUGH Howie's crappy binary search is wrong after all"
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2135
Location: United Kingdom

PostPosted: Fri Jan 18, 2008 9:30 am    Post subject: Reply with quote

Touche!

In my defense, that's in a piece of code where it really should only appear if there's an actual bug in my code (which there was), rather than a communication with the end-user about something that they are supposed to be able to understand, and then fix (upgrading Cacti).

The only way you can know what that XML error means is if you've already had it once, and looked/asked in the forums what it is.
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5448
Location: Wisconsin, USA

PostPosted: Fri Jan 18, 2008 10:33 am    Post subject: Reply with quote





The error message could be updated, but that particular message would still exist. A check for a newer (higher) hash number could be performed and a different error message could be presented.

I will submit a bug for this (feature).
Back to top
streaker69
Cacti Pro User


Joined: 27 Mar 2006
Posts: 647
Location: Psychic Amish Network Administrator

PostPosted: Fri Jan 18, 2008 11:20 am    Post subject: Reply with quote

Howie wrote:
Touche!

In my defense, that's in a piece of code where it really should only appear if there's an actual bug in my code (which there was), rather than a communication with the end-user about something that they are supposed to be able to understand, and then fix (upgrading Cacti).

The only way you can know what that XML error means is if you've already had it once, and looked/asked in the forums what it is.


I know what you meant, I just think that your particular error message was funny. The first time I saw it come up on my system here I laughed pretty good.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group