Today I installed this module on a new site. Before I had a chance to configure it with the account username/password, I noticed that regular users were being redirected to the Mailjet Settings page when they tried to edit and save their account. Digging into the code, I found that mailjet_new() is causing this redirect whenever the username/password are not set up yet.
This redirection appears to happen in the following places:
- When a user is added, deleted or canceled.
- When a user edits their account page.
- When new fields are created and added to content types.
- When fields are deleted.
I'm changing the Priority on this task to Major since it adversely affects non-admin users of any new site. Ideally the message and redirection should only happen for admins.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | mailjet-new-install-error-2966734-2.patch | 2.11 KB | hargobind |
Comments
Comment #2
hargobindAttached is a patch which does a few things:
$mailjet = mailjet_new();returns false. There might be other places in the code where this should be added, including submodules (which I didn't check for)..
If you use this patch or any of the code in it, please follow Drupal's best practices for commit messages. Please have a look at Commit messages - providing history and credit. In short, use the syntax
Issue #[issue number] by [comma-separated usernames]: [Short summary of the change]. This helps commits appear in the issue queue automatically, and gives commit credits to people who have authored patches for your projects.Comment #3
mailjet plugins commentedThis issue has been fixed in v. 7.x-2.18
Comment #4
mailjet plugins commented