Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on user settings page #4206

Closed
nixondesigndev opened this issue May 1, 2019 · 1 comment
Closed

Error on user settings page #4206

nixondesigndev opened this issue May 1, 2019 · 1 comment

Comments

@nixondesigndev
Copy link

nixondesigndev commented May 1, 2019

Description

When accessing the user settings page (/settings/users/settings) the following error is thrown.

Impossible to access an attribute ("requireEmailVerification") on a null variable.

vendor/craftcms/cms/src/templates/settings/users/settings.html:67

{{ forms.checkboxField({
  label: "Verify email addresses?"|t('app'),
  instructions: "Should new email addresses be verified before getting saved to user accounts? (This also affects new user registration.)"|t('app'),
  name: 'requireEmailVerification',
  checked: settings.requireEmailVerification,
}) }}

Steps to reproduce

  1. Access user settings page on a Craft Pro site.

Additional info

  • Craft version: Craft Pro 3.1.24
  • PHP version: 7.2.1
  • Database driver & version: MySQL 5.6.38
  • Plugins & versions: Asset Rev 6.0.2, Cookies 1.1.11, Feed Me 4.1.0, Redactor 2.3.3.2
@brandonkelly
Copy link
Member

Only way that could happen is if your project config is somehow missing its users key. I’ve updated the template to make it more defensive about that, for the next release.

To get the fix early, change your craftcms/cms requirement in composer.json to:

"require": {
  "craftcms/cms": "dev-develop#30b4b1c351cbc24b26cf54b91bb06a9af71f004c as 3.1.25",
  "...": "..."
}

Then run composer update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants