Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On the confirm form:
* notice: Trying to get property of non-object in /Users/webchick/Sites/head/modules/user/user.module on line 2026.
* notice: Undefined index: in /Users/webchick/Sites/head/modules/user/user.module on line 2026.
* notice: Trying to get property of non-object in /Users/webchick/Sites/head/modules/user/user.module on line 2026.
* warning: htmlspecialchars() expects parameter 1 to be string, array given in /Users/webchick/Sites/head/includes/bootstrap.inc on line 669.
After deleting:
* notice: Trying to get property of non-object in /Users/webchick/Sites/head/modules/user/user.module on line 2026.
* notice: Undefined index: in /Users/webchick/Sites/head/modules/user/user.module on line 2026.
* notice: Trying to get property of non-object in /Users/webchick/Sites/head/modules/user/user.module on line 2026.
Deletion of the rule fails.
Comment | File | Size | Author |
---|---|---|---|
#2 | access_confirm_0.patch | 1.51 KB | chx |
#1 | access_confirm.patch | 1.15 KB | chx |
Comments
Comment #1
chx CreditAttribution: chx commentedI fixed a notice on create too which revaled a serious problem, actually.
Comment #2
chx CreditAttribution: chx commentedI really do not want to file a separate issue for this but there is another missing form_state in user module. As far as I can tell, there are no other missing form_states in Drupal core, I have written a little scripts which iterates menu for drupal_get_forms and also checks the explicit drupal_get_form calls. Of course, there might be some problems, it's a simple script but I think we are covered.
Comment #3
snufkin CreditAttribution: snufkin commentedthe issue is confirmed, together with create notice chx mentioned.
the patch works, tested with editing, adding, deleting and checking rules, solves both issues.
Comment #4
Gábor HojtsyThanks, committed!
Comment #5
(not verified) CreditAttribution: commented