Template Import Errors

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Template Import Errors

Post by jengstro »

Any idea why I always get the following errors when trying to upload templates...

Code: Select all

Warning: filesize() [function.filesize]: stat failed for C:\WINDOWS\TEMP\php252.tmp in D:\cacti\templates_import.php on line 59

Warning: fread() [function.fread]: Length parameter must be greater than 0. in D:\cacti\templates_import.php on line 59

Warning: Cannot modify header information - headers already sent by (output started at D:\cacti\templates_import.php:59) in D:\cacti\templates_import.php on line 67
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

IIS User doesn't have permissions to write to the temp directory.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Thats odd... I gave the IUSR full rights to the directory.
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Gave "Everyone" Full Control and the same error appears when attempting to upload a template xml file.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You set file uploads = on in your php.ini?
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Yeah.

file_uploads = On
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

IUSR has modify rights to C:\WINDOWS\TEMP\ ?
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Yeah. Gave the account Full Control over the entire temp directory.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Not really sure...those are the two things which typically prevent template importing. Post your php.ini file.
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Yeah, I'm stumped. Prob missing something dumb but I really want to get it working. Thanks for the second pair of eyes on this!

See attached php.ini..
Attachments
php.ini.txt
(41.77 KiB) Downloaded 90 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Well it looks fine to me.

1) What OS?
2) What cacti version? You applied the patches?
3) What php version are you using? Are you using the latest version?
4) You've double checked you gave ISUR_xxx modify rights to the windows temp directory?
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

1) What OS?
Windows 2003 Server Standard

2) What cacti version? You applied the patches?
cacti0.8.6g
I have not applied any patches to this install. Is it needed for g?

3) What php version are you using? Are you using the latest version?
php-4.4.1
php5 gave me other issues so I went to 4.4.1. Are there strick version requirements that I might be unaware of?

4) You've double checked you gave ISUR_xxx modify rights to the windows temp directory?
Yep.
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Also... if I hit the "back" button in the browser the following error pops up at the top of the page...

Error: XML parse error.

Not sure if the message is valid or not but thought it might help.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

If you paste the template contents instead of uploading, does it work?

Looks like you'll have to do some digging with a tool like FileMon and watch what happens when you try to upload a template. I still think you don't have your security properly set up...
jengstro
Cacti User
Posts: 156
Joined: Tue Nov 15, 2005 12:14 pm

Post by jengstro »

Pasting the xml generates the following error...

Error: XML parse error.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest