Dear,
Some users are trying to create a registration page for a crongress. Seems to be related with this ticket:
nonetype-object-has-no-attribute-id-when-using-tickets/477
I cannot see anything at my site:
Should i follow the same steps? the complete output:
2021-05-25 12:53:20,918 5d555e3ad9904b8e indico.flask - ERROR errors.py:96 -- 'NoneType' object has no attribute 'id'
Traceback (most recent call last):
File "/opt/indico/.venv/local/lib/python2.7/site-packages/flask/app.py", line 1949, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/indico/.venv/local/lib/python2.7/site-packages/flask/app.py", line 1935, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/web/flask/util.py", line 84, in wrapper
return obj().process()
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/web/rh.py", line 275, in process
res = self._do_process()
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/web/rh.py", line 245, in _do_process
rv = self._process()
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/modules/events/registration/controllers/management/tickets.py", line 43, in _process
form = TicketsForm(obj=self.regform, event=self.event)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/web/forms/base.py", line 62, in __call__
return super(IndicoFormMeta, cls).__call__(*args, **kwargs)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/wtforms/form.py", line 212, in __call__
return type.__call__(cls, *args, **kwargs)
File "/opt/indico/.venv/local/lib/python2.7/site-packages/indico/modules/events/registration/forms.py", line 279, in __init__
badge_templates.insert(0, (default_tpl.id, '{} ({})'.format(default_tpl.title, _('Default category template'))))
AttributeError: 'NoneType' object has no attribute 'id'
{u'data': {u'get': {'_': u'1621938721697'},
u'headers': {'Accept': u'*/*',
'Accept-Encoding': u'gzip, deflate, br',
'Accept-Language': u'en-US,en;q=0.5',
'Connection': u'close',
'Cookie': u'indico_session=xxx',
'Dnt': u'1',
'Host': u'indico.ifca.es',
'Referer': u'ndico.ifca.es/event/1199/manage/registration/163/',
'User-Agent': u'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0',
'X-Csrf-Token': u'xxx',
'X-Requested-With': u'XMLHttpRequest'},
u'json': None,
u'post': {},
u'url': {'confId': u'1199', 'reg_form_id': 163}},
u'endpoint': u'event_registration.tickets',
u'id': '5d555e3ad9904b8e',
u'ip': 'xxx',
u'method': 'GET',
u'referrer': 'xxxx://indico.ifca.es/event/1199/manage/registration/163/',
u'rh': 'RHRegistrationFormTickets',
u'time': '2021-05-25T12:53:21.524075',
u'url': u'xxxxxs://indico.ifca.es/event/1199/manage/registration/163/tickets?_=1621938721697',
u'user': {u'email': u'XXXXXXXXXXXXXXXX',
u'id': 32,
u'name': u'XXXXXXXXXXXXXXXX'},
u'user_agent': u'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0'
Should I run the commands from this:
source ~/.venv/bin/activate
(.venv) indico@indico:~$ indico shell
/opt/indico/.venv/local/lib/python2.7/site-packages/indico/core/config.py:174: UserWarning: Ignoring unknown config key ASSETS_DIR
warnings.warn('Ignoring unknown config key {}'.format(key))
Indico v2.2.3 is ready for your commands In [1]:
this is an old installation that has been migrated between different version.
Regards, I