Modify

Opened 3 years ago

Last modified 3 years ago

#9524 new defect

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

Reported by: ftoledo@… Owned by: alecu
Priority: normal Component: RecaptchaRegisterPlugin
Severity: normal Keywords: internal error strip
Cc: rjollos Trac Release: 0.12

Description (last modified by rjollos)

hello!,
i have the error when post the register form. (the captcha is show fine but can't register)
i have disbled the register module from the AccountManager to get the correct captcha register form

Trac 0.12
TracAccountManager 0.3.1
TracRecaptchaRegister 0.2.1.2

see screenshot attached

Attachments (3)

bug_captcha_trac.png (22.4 KB) - added by ftoledo@… 3 years ago.
trac.log.gz (4.3 KB) - added by ftoledo@… 3 years ago.
full debug trac.log
20111219_recaptcharegister_fx-9524_easy.patch (948 bytes) - added by hasienda 3 years ago.
easies fix by updating just all occurrences of the old fieldname 'user'

Download all attachments as: .zip

Change History (10)

Changed 3 years ago by ftoledo@…

comment:1 Changed 3 years ago by hasienda

  • Keywords changed from internal error, strip to internal error strip
  • Summary changed from internal error: AttributeError: 'NoneType' object has no attribute 'strip' to AttributeError: 'NoneType' object has no attribute 'strip'

#9620 has been closed as a duplicate of this ticket.

comment:2 Changed 3 years ago by hasienda

  • Cc rjollos added

There might be a conditional missing, or a conversion None -> '' (empty string).

comment:3 Changed 3 years ago by rjollos

  • Description modified (diff)

Changed 3 years ago by ftoledo@…

full debug trac.log

comment:4 Changed 3 years ago by get@…

Same for me, Still Watching the issue...

comment:5 Changed 3 years ago by hasienda

This bug is a side-effect of using an obsolete template with a more current version of AccountManagerPlugin because this plugin is not updated as required after [10288], see #9020.

As soon as you'll have a /register page with a 'username' input field, the issue here will be resolved as well.

comment:6 Changed 3 years ago by Get@…

So, the most easiest way to fix this ? I'm interested maybe I can fix it at my trac instance by editing some files or so

Changed 3 years ago by hasienda

easies fix by updating just all occurrences of the old fieldname 'user'

comment:7 Changed 3 years ago by hasienda

There is a dead-simple, stupid way to fix the issue, somehow.

You'll trash AcctMgr's i18n support for this template, but this is always true, since this plugin has no i18n support anyway. But this could break again at any time, so the more sophisticated fix using ITemplateStreamFilter should be preferred, once someone develops it.

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.