Mobile interface not working as alternative

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
thorsteinsson
Newbie
Newbie
Posts: 2
Joined: February 12th, 2010, 4:54 am

Mobile interface not working as alternative

Post by thorsteinsson »

Version: 0.5 RC6
OS: Windows Server 2008
Install-type: Windows Installer
Skin (if applicable): Plush, Mobile-dark as alternative
Firewall Software: Windows
Are you using IPV6? no
Is the issue reproducible? yes
Are you using HTTPS? yes

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "cherrypy\_cprequest.pyo", line 618, in respond
  File "cherrypy\_cpdispatch.pyo", line 25, in __call__
  File "sabnzbd\interface.pyo", line 392, in index
  File "Cheetah\Template.pyo", line 1192, in __init__
  File "Cheetah\Template.pyo", line 1473, in _compile
  File "ntpath.pyo", line 232, in getmtime
WindowsError: [Error 2] The system cannot find the file specified: 'C:\\Program Files\\SABnzbd\\main.tmpl'

Line 392 in interface.py:
            template = Template(file=os.path.join(self.__web_dir, 'main.tmpl'),
                                filter=FILTER, searchList=[info], compilerSettings=DIRECTIVES)

I guess self.__web_dir is incorrect for alternative interfaces (happens for all interfaces).

from my .ini config file:
web_dir = Plush
web_dir2 = Mobile
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Mobile interface not working as alternative

Post by shypike »

Which URL do you use to access Mobile?
It looks like the template name is empty.

C:\Program Files\SABnzbd\main.tmpl'
makes no sense, it needs:
C:\Program Files\SABnzbd\\interfaces\Mobile\templates\main.tmpl
thorsteinsson
Newbie
Newbie
Posts: 2
Joined: February 12th, 2010, 4:54 am

Re: Mobile interface not working as alternative

Post by thorsteinsson »

I thought that I restarted the server, but I guess not. It worked after restarting. Thanks for the help.
Post Reply