Error message for Default template (0.4.2)

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Edman
Newbie
Newbie
Posts: 3
Joined: July 29th, 2008, 4:44 pm

Error message for Default template (0.4.2)

Post by Edman »

Hello,

I have just installed 0.4.2 (windows) and it is running fine. But when i installed it  i got a warning that "E:\News\SABnzbd\SABnzbd-0.4.2\interfaces\templates\templates\main.tmpl" could not be found.
That would be correct because that directory does not exist. I copied the content of the Default directory in a directory named "templates" and everything is working fine now.
I don't know if anybody else had this problem, and is it possible to change the directorysetting for SABnzbd itself so i can use the normal Default directory?

Thanks for your time.

Edman
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Error message for Default template (0.4.2)

Post by switch »

Strange, try closing sabnzbd then launching it using Start>Run:
E:\News\SABnzbd\SABnzbd-0.4.2\SABnzbd.exe -t Default

or finding your settings and changing "web_dir" to equal:

Code: Select all

web_dir = Default
Edman
Newbie
Newbie
Posts: 3
Joined: July 29th, 2008, 4:44 pm

Re: Error message for Default template (0.4.2)

Post by Edman »

Strange indeed. I looked in the SABnzbd.ini and the line web_dir = Default is ok.
So i removed my directory "templates" and everything still runs fine (probably with Default).

The only thing i can think of is that the problem only appears when running the program for the first time.
(But i did start it a couple of times and the problem remained).

I did use the INI-file from the old version i was using (0.2.1?).
Perhaps it was neccesary for the program to start once with a "template" directory to be able to modify the INI with the proper web_dir.

I will try to reproduce this when my current download is ready, and if i can find my old INI-file.
(I can reproduce it by reinstalling the old version!)

Switch, Thanks for the rapid respons.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: Error message for Default template (0.4.2)

Post by switch »

Ok, the old ini will probably have the web_dir set to "templates". Really this should have been changed in 0.3.0 or 0.2.7 when we added support for multiple templates by using a different ini value other than "web_dir".

SABnzbd does handle the issue ok (otherwise the default template wouldn't show) however the error message is a bit annoying for upgrading users so we could maybe code in something to change it if set to "templates". I'll work in a fix when I next have the time.
Edman
Newbie
Newbie
Posts: 3
Joined: July 29th, 2008, 4:44 pm

Re: Error message for Default template (0.4.2)

Post by Edman »

> Ok, the old ini will probably have the web_dir set to "templates". Really this should have been changed in 0.3.0 or 0.2.7 when we added support for multiple templates by using a different ini value > other than "web_dir".

I've could not find my old ini, i probably moved it instead of copying. So i used an ini from 0.2.5 instead.
That went fine, so i edited the ini and replaced de line web_dir = Default with web_dir = templates.
That produced exact the same warning. So it is probably the old ini.

> SABnzbd does handle the issue ok (otherwise the default template wouldn't show) however the error message is a bit annoying for upgrading users so we could maybe code in something to change > it if set to "templates". I'll work in a fix when I next have the time.

I'm sorry that i didn't upgrade earlier to avoid this problem. But there are probably more of me out there. So a fix might be interesting.
My compliments voor the reader. I just finished my first download with the new version, and everything worked fine and fast. The best reader i've used. Very interesting new options. I'm glad there is a forum with tips and trucs otherwise the learning curve would be a lot steeper.

Thanks for the help. My problem is solved !!
Post Reply