I have recently upgraded from D5 to D6 and I'm using the Simplenews 6.x-1.3 and Simplenews Roles 6.x-2.x-dev. Occasionally watchdog is giving the following message a few times and I can't track down why

Attempt to unsubscribe from non existing newsletter term ID XXX

It seems that they are old taxonomy terms that were deleted but I don't recall removing any. There's no more description as to what user or what term. It gives the ID but because the term no longer exists I'm not able to track it down.

Any ideas?

Comments

alicemoon’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Category: support » bug

I am getting this message and am running the Drupal 7 - 7.x-1.0 version - the error occurs if as admin I edit any aspect of a users account

Tninja’s picture

Version: 7.x-1.x-dev » 6.x-2.x-dev

@alicemoon

I'm experiencing the same issue:
- Every time a new user registers to the site, I get this error log message related to 2 different term IDs from an Unknown user
- Once I have approved the new user registration, I get 2 more error log messages from my username (super user)

No newsletter is involved in a new user registration, nor in the approval procedure. So why should I keep on getting this error?

Thanks for any reply

hanskuiters’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Issue summary: View changes

For what it's worth after so many years, I experienced the same errors and found the cause. The newsletter term ID's are (also) stored in two variables:
- simplenews_roles_tids_rids
- simplenews_roles_auto_remove

In case a newsletter term is removed (in my case tid 34), these two variables aren't updated. I did some one time clean up with this code:

$tids = variable_get('simplenews_roles_tids_rids', '');
unset($tids[34]);
variable_set('simplenews_roles_tids_rids', $tids);

$tids = variable_get('simplenews_roles_auto_remove', '');
unset($tids[34]);
variable_set('simplenews_roles_auto_remove', $tids);

Put this somewhere where it's processed, I used page.tpl.php. After clean up, remove this code again.