[Issuetracker-development] Re: [Zope] Virtual Host breaks IssueTracker?
Brought to you by:
peterbe
From: Peter B. <ma...@pe...> - 2003-02-07 01:04:51
|
Matthew, Thank you very much for the support. I set up a virtual host monster too and tested and fixed. The getRoot() method relied on a REQUEST URL. Silly. If you're not using CVS, replace the attached file with the one you already have and it should work. Peter PS. Matthew, I strongly suggest that you sign up the mailinglist on http://lists.sourceforge.net/lists/listinfo/issuetracker-development At 16:52 2003-02-06 -0500, Matthew Wilbert wrote: >Peter, > >Thanks for looking into this. > >I think the message provided most of the information. This is just >ZServer running >without Apache or anything else in front of it. I am using the mapping >tab of the VirtualHostMonster to remap the URL from: > >http://netmanager.env.state.ma.us/help > >to > >http://help.env.state.ma.us > >so the mapping table entry looks like > >help.env.state.ma.us/help > >Both the IssueTracker instance and the HostMonster are in the root >folder. > >If you want any additional information, let me know, and thanks again, >both >for the IssueTracker product and for your help. > >Matt >----------------- > >In Thu, 06 Feb 2003 00:57:37 +0000, "Peter Bengtsson" <ma...@pe...> >said: > > Thank you Matt, > > > > I can only guess what the problem is. I've set up a VirtualHost so that I > > can test it and fix it. > > The VirtualHost will take some time to take affect so it will have to > > wait > > until tomorrow (or some other day soon). > > > > Can you please tell me how you did the actual config? Apache? OS? Monster > > settings? > > > > Peter > > > > At 17:00 2003-02-04 -0500, Matthew Wilbert wrote: > > >I have IssueTracker (v.49b) installed in the root folder /help. > > >I have a VirtualHostMonster set up to map a second host name "help" to > > >/help. (using the > > >Mappings tab) This is running under Zope 2.6.1b. > > > > > >If I try to access IssueTracker through the normal url with a /help at > > >the end, it works fine. > > > > > >If I try to access it through the mapped URL, it works, in the sense the > > >the IssueTracker home page comes up when I use the help url, but if I try > > >to look at an actual issue, I get the traceback at the end of this > > >message. > > > > > >Is it a known thing that using virtual hosts breaks some products? Is > > >there a standard workaround? > > > > > >Thanks, > > > > > >Matt Wilbert > > >-----------------------TRACEBACK---------------------------- > > >Module ZPublisher.Publish, line 150, in publish_module > > >Module ZPublisher.Publish, line 114, in publish > > >Module Zope.App.startup, line 182, in zpublisher_exception_hook > > >Module ZPublisher.Publish, line 98, in publish > > >Module ZPublisher.mapply, line 88, in mapply > > >Module ZPublisher.Publish, line 39, in call_object > > >Module Products.IssueTrackerProduct.IssueTracker, line 2323, in > > >index_html > > >Module Shared.DC.Scripts.Bindings, line 252, in __call__ > > >Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec > > >Module Products.PageTemplates.PageTemplateFile, line 96, in _exec > > >Module Products.PageTemplates.PageTemplate, line 95, in pt_render > > ><PageTemplateFile at /help/Issue0022/> > > >Module TAL.TALInterpreter, line 200, in __call__ > > >Module TAL.TALInterpreter, line 244, in interpret > > >Module TAL.TALInterpreter, line 703, in do_useMacro > > >Module TAL.TALInterpreter, line 244, in interpret > > >Module TAL.TALInterpreter, line 477, in do_setGlobal_tal > > >Module Products.PageTemplates.TALES, line 217, in evaluate > > >URL: StandardLook > > >Line 5, Column 4 > > >Expression: <PythonExpr here.getRoot().title_or_id()> > > >Names: > > >{'container': <IssueTrackerIssue instance at 8d59798>, > > > 'default': <Products.PageTemplates.TALES.Default instance at 0x8947484>, > > > 'here': <IssueTrackerIssue instance at 8d59798>, > > > 'loop': <SafeMapping instance at 8bc9748>, > > > 'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter > > > instance at 0x891f3f4>, > > > 'nothing': None, > > > 'options': {'args': ()}, > > > 'repeat': <SafeMapping instance at 8bc9748>, > > > 'request': <HTTPRequest, > > > URL=http://help.env.state.ma.us/Issue0022/index_html>, > > > 'root': <Application instance at 8b16bb8>, > > > 'template': <PageTemplateFile at /help/Issue0022/>, > > > 'traverse_subpath': [], > > > 'user': Anonymous User}Module Products.PageTemplates.ZRPythonExpr, line > > > 48, in __call__ > > >__traceback_info__: here.getRoot().title_or_id() > > >Module Python expression "here.getRoot().title_or_id()", line 2, in f > > >AttributeError: 'None' object has no attribute 'title_or_id' (Also, an > > >error occurred while attempting to render the standard error message.) > > > > > >_______________________________________________ > > >Zope maillist - Zo...@zo... > > >http://mail.zope.org/mailman/listinfo/zope > > >** No cross posts or HTML encoding! ** > > >(Related lists - > > > http://mail.zope.org/mailman/listinfo/zope-announce > > > http://mail.zope.org/mailman/listinfo/zope-dev ) > > > > |