AttributeError: 'RequestContainer' object has no attribute 'mail_password_form'

Context: A fresh install with:

  • Plone 5.1.5 (5115)
  • CMF 2.2.12
  • Zope 2.13.27
  • Python 2.7.15 (default, May 4 2019, 05:46:04) [GCC 5.5.0]
  • PIL 5.4.1 (Pillow)
  • CMFPlacefulWorkflow 1.7.6
  • webcouturier.dropdownmenu 3.0.2
  • collective.mass_subscriptions 0.1.1
  • plone.app.iterate 3.3.10

Issue: If the page mail_password_form?userid= is used, we get the following error:

Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 16, in mail_password
   - <FSPythonScript at /Plone/mail_password>
   - Line 16
AttributeError: 'RequestContainer' object has no attribute 'mail_password_form'

Thanks for any hint.

As for the issue "Error setting password ", no trouble if the user who uses the .../mail_password_form?userid= has his/her email as his/her username.

Maybe this add-on is the problem. I whould try to narrow down the issue by removing add-ons.

Indeed, maybe collective.mass_subscriptions is the problem. The problem of this problem :slight_smile: is that I needed it to perform mass subscriptions. But maybe there is direct way (without addons) of performing mass subscriptions in Plone 5.1?

I have the same problem occur when a user that I provision forgets their password and tries to use the request password form.

1559762735.950.145439626808 https://xxx.xxxx.edu/mail_password
Traceback (innermost last):
  Module ZPublisher.Publish, line 138, in publish
  Module ZPublisher.mapply, line 77, in mapply
  Module ZPublisher.Publish, line 48, in call_object
  Module Products.CMFCore.FSPythonScript, line 127, in __call__
  Module Shared.DC.Scripts.Bindings, line 322, in __call__
  Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
  Module Products.PythonScripts.PythonScript, line 344, in _exec
  Module script, line 16, in mail_password
   - <FSPythonScript at /enc/plone/cnow/mail_password>
   - Line 16
AttributeError: 'RequestContainer' object has no attribute 'mail_password_form'

more context from my sentry log

I'm running a vanilla plone site with a custom DX addon + enrypted.datafs..

So it is worth opening an issue as asked by @tkimnguyen.

Yes, I think so. I've got another trace-back this morning with the same error you have. I am querying my users to find out what they are doing. Please post the link to the ticket you open if you don't mind.

:slightly_smiling_face:

Sorry, I probably won't have time for this before one or two weeks.

Sentry has a way to try to capture what was happening when an error occurs. I set up Sentry on sites I run in a Linode, and it captures the error stack traces plus (in theory) pops up a dialogue that lets users say what they were doing. But I don’t think anyone has ever filled one in :crying_cat_face:

This is a couple of years old (why isn’t the date being shown?!?): https://designinterventionsystems.com/plone-blog/how-to-add-a-sentry-user-feedback-dialog-to-plone-error-pages

1 Like

The link in a password reset form correctly sets user's password and when they click on the 'log in' link, it lets them enter a new password. In turn it logs them in, but displays the error msg (see screenshot). Despite the error, they are logged in.
The error log reports 'RequestContainer' object has no attribute 'mail_password_form'.