Error !

AttributeError: 'NoneType' object has no attribute 'settings'

<%! import os from Products.LimeAPI.Model.model import LimeTemplateDbObject as Template, LimeTemplateReleaseTag as ReleaseTag %><% session = lime.get_session() baseurl = "/"+ lime.absolute_url(relative=True) if baseurl == '/': baseurl = ''
Products/LimeAPI/pt/admin/header.html, line 4:
%><%
/srv/ddnmh01/limecms/nmh/nmh01/local/lib/python2.7/site-packages/mako/runtime.py, line 761:
callable_(ctx, **kwargs)
Products/LimeAPI/pt/admin/workbench.html, line 48:
<%include file="header.html"/>
/srv/ddnmh01/limecms/nmh/nmh01/local/lib/python2.7/site-packages/mako/runtime.py, line 899:
callable_(context, *args, **kwargs)
/srv/ddnmh01/limecms/nmh/nmh01/local/lib/python2.7/site-packages/mako/runtime.py, line 873:
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
/srv/ddnmh01/limecms/nmh/nmh01/local/lib/python2.7/site-packages/mako/runtime.py, line 838:
**_kwargs_for_callable(callable_, data))
/srv/ddnmh01/limecms/nmh/nmh01/local/lib/python2.7/site-packages/mako/template.py, line 462:
return runtime._render(self, self.callable_, args, data)
/var/limecms/nmh/nmh01/nmh-inst-01/Products/LimeTemplate/LimeTemplate.py, line 704:
html = mytemplate.render(object=object, site=site, request=self.REQUEST, extra=extra.get('kwargs', None), **extra)