Repeatable: Always
Steps to repeat:
Click Post New Support Ticket
Fill Out Support Ticket
Save Support Ticket
Expected Results:
New ticket posted with no error messages.
Actual Results:
New ticket posted but also this error message:
Notice: Undefined property: stdClass::$nid in _support_subscribe_form_attach() (line 2906 of /home/content/75/9206075/html/sites/all/modules/support/support.module).
Notice: Undefined property: stdClass::$nid in _support_subscribe_form_attach() (line 2906 of /home/content/75/9206075/html/sites/all/modules/support/support.module).
OS: Linux
Webserver: Apache
Database system MySQL, MariaDB, or equivalent
Database system version 5.0.92-log
PHP: 5.3.6
Drupal 7.12
Comments
Comment #1
munkyonline commentedI got the same error as soon as I went to create the first ticket, also on 7.12. This was there as soon as the page loaded, havent attempted to save anything yet.
Comment #2
mrtavo commentedI have the same problem, I urgently need to solve this problem because my clients see this error!
Comment #3
farhadhf commentedThis happens in line 2979 of support.module, after enabling "Prevent autosubscribed users from unsubscribing"
Comment #4
wolf29 commentedI did not see this error until I added support_timer and support_nag, and put checkmarks in the
Prevent autosubscribed users from unsubscribing
Check this box to prevent administratively autosubscribed users from unsubscribing from notifications.
Prevent assigned users from unsubscribing
Check this box to prevent assigned users from unsubscribing from notifications.
so I removed them all and tried a test ticket.
The error went away
Now I am going to add back in support_timer
I use drush, but you could ftp the module in if you want to.
Still no errors
added back support_nag,
still no errors in updating a ticket
I added back:
Prevent assigned users from unsubscribing
Check this box to prevent assigned users from unsubscribing from notifications.
and the error was back.
I took it and nag out again, and cleared caches. Now the error is gone. I think it is time to quit for a minute.
Comment #5
koppie commentedI never had "prevent administratively autosubscribed users from unsubscribing" checked, and I'm still getting the error. :-/
Comment #6
koppie commentedI was able to get it to go away by turning off email notifications completely.
Comment #7
jessico commentedI am having an issue that is exhibiting very similar errors, but displaying a different message:
Strict warning: Only variables should be passed by reference in _support_autoassign() (line 3771 of /var/www/drupal/sites/all/modules/support/support.module).
Strict warning: Only variables should be passed by reference in _support_autoassign() (line 3782 of /var/www/drupal/sites/all/modules/support/support.module).
Setting auto-assign new tickets to and turning off notifications has make the error go away, but I'd love to see it working without errors.
Thanks!
Comment #8
mesr01 commentedSame error here. Like @munkyonline (#1), the errors show up on the ticket creation form. Like @farhadhf (#3), "Prevent autosubscribed users from unsubscribing" is enabled.
Comment #9
hephaestus commentedAlso receiving this error, however "Prevent user creating or updating ticket from unsubscribing", "Prevent autosubscribed users from unsubscribing" and "Prevent assigned users from unsubscribing" are all unchecked.
However notifications are enabled and a requirement of the system.
Comment #10
jeremy commentedThis error should have been fixed in this commit:
http://drupalcode.org/project/support.git/commitdiff/72c7943
Will roll a -rc2 soon, please test once available and re-open if not actually fixed.
Comment #12
moove commentedHello,
I downloaded the dev module*, then replaced the module (via ftp), then run cron, then removed cache, then update.php... But this is still showing up (6times)
Notice : Undefined property: stdClass::$nid dans _support_subscribe_form_attach() (ligne 2939 dans /home/ ... /sites/all/modules/support/support.module).
Notice : Undefined property: stdClass::$nid dans _support_subscribe_form_attach() (ligne 2939 dans /home/ ... /sites/all/modules/support/support.module).
Notice : Undefined property: stdClass::$nid dans _support_subscribe_form_attach() (ligne 2939 dans /home/ ... /sites/all/modules/support/support.module).
Notice : Undefined property: stdClass::$nid dans _support_subscribe_form_attach() (ligne 2939 dans /home/ ... /sites/all/modules/support/support.module).
Notice : Undefined property: stdClass::$nid dans _support_subscribe_form_attach() (ligne 2939 dans /home/ ... /sites/all/modules/support/support.module).
Notice : Undefined property: stdClass::$nid dans _support_subscribe_form_attach() (ligne 2939 dans /home/ ... /sites/all/modules/support/support.module).
7.x-1.x-dev tar.gz (89.98 KB) | zip (101.73 KB) 2012-Sep-23
Comment #13
mshepherd commented@moove - I guess you meant to reopen this as at #10
I'm seeing this error with RC2 and the 23/9/2012 dev release.
It began appearing after I enabled "Prevent autosubscribed users from unsubscribing". It does not occur once I disable this option again, or with any other configuration that I've found so far.
Matthew
Comment #14
Zucker commentedStill not working
I've tried 7.x-1.0-rc2 and 7.x-1.x-dev, and always:
Notice: Undefined property: stdClass::$nid in _support_subscribe_form_attach() (Zeile 2939 von /var/www/cn2480256/html/blabla/sites/all/modules/support/support.module).
Notice: Undefined property: stdClass::$nid in _support_subscribe_form_attach() (Zeile 2939 von /var/www/cn2480256/html/blabla/sites/all/modules/support/support.module).
Notice: Undefined property: stdClass::$nid in _support_subscribe_form_attach() (Zeile 2939 von /var/www/cn2480256/html/blabla/sites/all/modules/support/support.module).
Comment #15
purencool commented