Page 1 of 1

Mobile interface not working as alternative

Posted: February 12th, 2010, 5:20 am
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

Re: Mobile interface not working as alternative

Posted: February 12th, 2010, 6:21 am
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

Re: Mobile interface not working as alternative

Posted: February 12th, 2010, 8:51 pm
by thorsteinsson
I thought that I restarted the server, but I guess not. It worked after restarting. Thanks for the help.