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

munkyonline’s picture

I 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.

mrtavo’s picture

Version: 7.x-1.0-rc1 » 7.x-1.x-dev

I have the same problem, I urgently need to solve this problem because my clients see this error!

farhadhf’s picture

This happens in line 2979 of support.module, after enabling "Prevent autosubscribed users from unsubscribing"

wolf29’s picture

I 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.

# drush pm-download support_timer
# drush pm-enable support_timer

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.

koppie’s picture

I never had "prevent administratively autosubscribed users from unsubscribing" checked, and I'm still getting the error. :-/

koppie’s picture

I was able to get it to go away by turning off email notifications completely.

jessico’s picture

I 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!

mesr01’s picture

Same error here. Like @munkyonline (#1), the errors show up on the ticket creation form. Like @farhadhf (#3), "Prevent autosubscribed users from unsubscribing" is enabled.

hephaestus’s picture

Also 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.

jeremy’s picture

Status: Active » Fixed

This 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

moove’s picture

Hello,

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

mshepherd’s picture

Status: Closed (fixed) » Active

@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

Zucker’s picture

Still 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).

purencool’s picture

Issue summary: View changes
Status: Active » Closed (outdated)