Error: XML: Hash version does not exist.

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

carrison
Posts: 30
Joined: Fri Oct 14, 2005 2:26 am

Post by carrison »

Rony Edit: Removed template, because you should attach it.
Attachments
pic4.jpg
pic4.jpg (172.87 KiB) Viewed 11992 times
carrison
Posts: 30
Joined: Fri Oct 14, 2005 2:26 am

Post by carrison »

Got the error as well while importing Template from Text
Attachments
pic3.jpg
pic3.jpg (112.29 KiB) Viewed 11991 times
carrison
Posts: 30
Joined: Fri Oct 14, 2005 2:26 am

Post by carrison »

Below contents comes from include/config_array.php

Code: Select all

$hash_version_codes = array(
	"0.8.4" => "0000",
	"0.8.5" => "0001",
	"0.8.5a" => "0002",
	"0.8.6" => "0003",
	"0.8.6a" => "0004",
	"0.8.6b" => "0005",
	"0.8.6c" => "0006",
	"0.8.6d" => "0007",
	"0.8.6e" => "0008",
	"0.8.6f" => "0009",
	"0.8.6g" => "0010"
	);

Rony Edit: Remove unwanted crap. Reduce your post size man.
carrison
Posts: 30
Joined: Fri Oct 14, 2005 2:26 am

Post by carrison »

reelwylde
Posts: 2
Joined: Fri Feb 02, 2007 6:13 pm

a possibly related issue...

Post by reelwylde »

I am experiencing a similar issue importing templates regardless of the cacti version they were created. I am also having a problem related to "version" from the intial insall I believe import problem to be collateral damage frmo the installation issue.

I installed 0.8.6j and immediately had to comment out $config["cacti_version"] = "0.8.6j"; from the include/config.php to avoid the following mysql access error.

Error

You have created a new database, but have not yet imported the 'cacti.sql' file. At the command line, execute the following to continue:


mysql -u cactiuser -p cacti < cacti.sql

This error may also be generated if the cacti database user does not have correct permissions on the cacti database. Please ensure that the cacti database user has the ability to SELECT, INSERT, DELETE, UPDATE, CREATE, ALTER, DROP, INDEX on the cacti database.

my include/config_array.php verion hash table looks like this

$hash_version_codes = array(
"0.8.4" => "0000",
"0.8.5" => "0001",
"0.8.5a" => "0002",
"0.8.6" => "0003",
"0.8.6a" => "0004",
"0.8.6b" => "0005",
"0.8.6c" => "0006",
"0.8.6d" => "0007",
"0.8.6e" => "0008",
"0.8.6f" => "0009",
"0.8.6g" => "0010",
"0.8.6h" => "0011",
"0.8.6i" => "0012",
"0.8.6j" => "0013"
);

However with the include/config.php $version entry commented out to avoid the mysql error I suspect all template imports will fail in this way.

Any advice on how to enable $config["cacti_version"] = "0.8.6j"; without causing the mysql error would be very much appreciated.
shadows142
Posts: 3
Joined: Sat Oct 11, 2008 4:02 am

Solved For Me

Post by shadows142 »

Hi

I had the same error when importing templates from new version of cacti to older version
I solved it by placing the template i want to import it in

/resource/snmp_queries

Then i import it

I hope this work for u as it worked for me
mathewdavid
Posts: 8
Joined: Mon Aug 17, 2009 5:19 am

Post by mathewdavid »

I have same problem as carrison.But i can't find its solution.Please,can any one suggest me?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

mathewdavid wrote:I have same problem as carrison.But i can't find its solution.Please,can any one suggest me?
Please open a new thread and post your error messages and stuff. You verified, that the template export was made on a system that is NOT newer than yours?
Reinhard
peitje
Posts: 6
Joined: Mon Jul 11, 2011 3:36 am

Re: Error: XML: Hash version does not exist.

Post by peitje »

I got the same problem as the others do. i run cactiEZ version 0.8.7c
If there is a patch or update or other ways to fix this let me know.
Also links are very appriciated.
I did a google on this problem. so yes i searched for this.
But again i might overlooked it ofcourse even i become a day older :)

Btw is there a how to how to make your own?
Just for some odd reason i can not find how you can make a template or something like that how much free diskspace we still have.
this is what i find so far.
http://www.cacti.net/downloads/docs/html/how_to.html

Again, thanks for your help in advance.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error: XML: Hash version does not exist.

Post by gandalf »

peitje wrote:Btw is there a how to how to make your own?
Just for some odd reason i can not find how you can make a template or something like that how much free diskspace we still have.
this is what i find so far.
http://www.cacti.net/downloads/docs/html/how_to.html
Please see 1st link of my sig
R.
BrianCho
Posts: 5
Joined: Fri Apr 06, 2012 1:11 pm

Re: Error: XML: Hash version does not exist.

Post by BrianCho »

Dear. All
I read all posts here. I couldn't , however, understand what am i suppose to solve this problem.
I got this error as below.
import error 1.JPG
import error 1.JPG (34.91 KiB) Viewed 5839 times
after imported with this error, I couldn't any name of data template and host template.
import error 2.JPG
import error 2.JPG (45.12 KiB) Viewed 5839 times
and Also, I found this array as posted before. ( I found it under include/global_array.php)

$hash_version_codes = array(
"0.8.4" => "0000",
"0.8.5" => "0001",
"0.8.5a" => "0002",
"0.8.6" => "0003",
"0.8.6a" => "0004",
"0.8.6b" => "0005",
"0.8.6c" => "0006",
"0.8.6d" => "0007",
"0.8.6e" => "0008",
"0.8.6f" => "0009",
"0.8.6g" => "0010",
"0.8.6h" => "0011",
"0.8.6i" => "0012",
"0.8.6j" => "0013",
"0.8.7" => "0014",
"0.8.7a" => "0015",
"0.8.7b" => "0016",
"0.8.7c" => "0017",
"0.8.7d" => "0018",
"0.8.7e" => "0019",
"0.8.7f" => "0020",
"0.8.7g" => "0021",
"0.8.7h" => "0022",
"0.8.7i" => "0023"
);


and my configuration is below.



Operating System: Ubuntu 3.0.0.17-generic-pae
Webserver: apache2.2
Cacti: 0.8.8
Spine: no
MySQL: 5.1
PHP:5
RRDTool (Cygwin or Win32 build): 1.4.3-3
Net-SNMP: 5.4.3 ( in windows is 5.6.1.1-1)
Cygwin (cygwin1.dll version): no
Plugin Architecture: already included here 0.8.8





How can i modified this source ? anyone who know?

Thanks a lot~

Regard.
nemesisj
Posts: 11
Joined: Mon Apr 09, 2012 12:15 pm

Re: Error: XML: Hash version does not exist.

Post by nemesisj »

Getting the same XML Hash Error in my fresh 0.8.8 installation (win32).
After adding "0.8.8" => "0024" to this array manually it works.

Ciao

EDIT:
documented bug
http://bugs.cacti.net/view.php?id=2207
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error: XML: Hash version does not exist.

Post by gandalf »

Thx for bug report; rony already fixed it. Your assumption was indeed correct
R.
JJX
Cacti User
Posts: 402
Joined: Thu Oct 06, 2005 5:03 am

Re: Error: XML: Hash version does not exist.

Post by JJX »

http://docs.cacti.net/howto:determine_c ... te_version

I think this list should be updated for those that dont have access to the latest version:

global_arrays.php

$hash_version_codes = array(
"0.8.4" => "0000",
"0.8.5" => "0001",
"0.8.5a" => "0002",
"0.8.6" => "0003",
"0.8.6a" => "0004",
"0.8.6b" => "0005",
"0.8.6c" => "0006",
"0.8.6d" => "0007",
"0.8.6e" => "0008",
"0.8.6f" => "0009",
"0.8.6g" => "0010",
"0.8.6h" => "0011",
"0.8.6i" => "0012",
"0.8.6j" => "0013",
"0.8.7" => "0014",
"0.8.7a" => "0015",
"0.8.7b" => "0016",
"0.8.7c" => "0017",
"0.8.7d" => "0018",
"0.8.7e" => "0019",
"0.8.7f" => "0020",
"0.8.7g" => "0021",
"0.8.7h" => "0022",
"0.8.7i" => "0023",
"0.8.8" => "0024",
"0.8.8a" => "0024",
"0.8.8b" => "0024",
"0.8.8c" => "0025",
"0.8.8d" => "0025",
"0.8.8e" => "0025",
"0.8.8f" => "0025",
);
cacti rulez!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests