Modify

Opened 6 years ago

Last modified 5 years ago

#9524 new defect

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

Reported by: ftoledo@… Owned by: Alejandro J. Cura
Priority: normal Component: RecaptchaRegisterPlugin
Severity: normal Keywords: internal error strip
Cc: Ryan J Ollos Trac Release: 0.12

Description (last modified by Ryan J Ollos)

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@… 6 years ago.
trac.log.gz (4.3 KB) - added by ftoledo@… 5 years ago.
full debug trac.log
20111219_recaptcharegister_fx-9524_easy.patch (948 bytes) - added by Steffen Hoffmann 5 years ago.
easies fix by updating just all occurrences of the old fieldname 'user'

Download all attachments as: .zip

Change History (10)

Changed 6 years ago by ftoledo@…

Attachment: bug_captcha_trac.png added

comment:1 Changed 5 years ago by Steffen Hoffmann

Keywords: internal error, stripinternal error strip
Summary: internal error: AttributeError: 'NoneType' object has no attribute 'strip'AttributeError: 'NoneType' object has no attribute 'strip'

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

comment:2 Changed 5 years ago by Steffen Hoffmann

Cc: Ryan J Ollos added; anonymous removed

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

comment:3 Changed 5 years ago by Ryan J Ollos

Description: modified (diff)

Changed 5 years ago by ftoledo@…

Attachment: trac.log.gz added

full debug trac.log

comment:4 Changed 5 years ago by T. N.R

Same for me, Still Watching the issue...

comment:5 Changed 5 years ago by Steffen Hoffmann

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 5 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 5 years ago by Steffen Hoffmann

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

comment:7 Changed 5 years ago by Steffen Hoffmann

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Alejandro J. Cura.

Add Comment


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

 
Note: See TracTickets for help on using tickets.