XUpload - Template->new Cannot open included file ...default.html

Message
Author
monkofthefunk
Posts: 5
Joined: Apr 29, 2008 8:13 pm

Template->new Cannot open included file ...default.html

#1 Postby monkofthefunk » Apr 29, 2008 8:18 pm

It doesn't appear to be able to generate the default.html file.
It uploads fine, so I set the template dir in the upload dir to confirm that it should be able to write to that folder, the template.pm is able to execute.
any suggestions?
Thank you
Software error:

HTML::Template->new() : Cannot open included file /var/www/html/dev_tobias/uploads/template/default.html : file not found. at HTML/Template.pm line 1616
HTML::Template::_init_template('HTML::Template=HASH(0x8bef2a4)') called at HTML/Template.pm line 1189
HTML::Template::_init('HTML::Template=HASH(0x8bef2a4)') called at HTML/Template.pm line 1083
HTML::Template::new('HTML::Template', 'filename', '/var/www/html/dev_tobias/uploads/template/default.html', 'die_on_bad_params', 0) called at /var/www/cgi-bin/upload_status.cgi line 41

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Apr 30, 2008 3:19 am

What Version of XUpload?!

monkofthefunk
Posts: 5
Joined: Apr 29, 2008 8:13 pm

#3 Postby monkofthefunk » Apr 30, 2008 3:01 pm

fresh version 2.6 free edition on apache vr2052
Thanks

monkofthefunk
Posts: 5
Joined: Apr 29, 2008 8:13 pm

#4 Postby monkofthefunk » Apr 30, 2008 11:14 pm

any suggestions?
:s

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#5 Postby PilgrimX182 » May 01, 2008 6:40 am

Sure there are :)
Put correct path for "templates_dir" in config.
e.g.

Code: Select all

templates_dir => '/var/www/html/dev_tobias/Templates',

monkofthefunk
Posts: 5
Joined: Apr 29, 2008 8:13 pm

#6 Postby monkofthefunk » May 01, 2008 3:13 pm

Oh! is there a special template directory for cgi templates, hence I cant use just any folder?

monkofthefunk
Posts: 5
Joined: Apr 29, 2008 8:13 pm

#7 Postby monkofthefunk » May 05, 2008 8:49 pm

Well thats why... some how the Template folder wasnt in my zip file and didnt get extracted... I thought template.pm generated the default.html

Thanks for your help
Tobias
:P