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.
Cron fails when subscriptions_mail is run in 1.3. Reverted to 1.2 and its ok. Error in logs: mod_fcgid: stderr: PHP Fatal error: Class name must be a valid object or a string in includes/common.inc on line 7999
Comment | File | Size | Author |
---|---|---|---|
#7 | subscriptions-no_taxonomy_crash-2800885-7.patch | 677 bytes | salvis |
Comments
Comment #2
salvisWe have 700+ sites running 1.3 — this must be an issue that is specific to your site and needs to be debugged locally.
Comment #3
num37 CreditAttribution: num37 commentedI just ran into this exact error. The solution for me seems to be to make sure the Taxonomy module is enabled.
I haven't had a chance to dig deeper than that yet.
Comment #4
sonvir249 CreditAttribution: sonvir249 as a volunteer and at QED42 commentedHi @num37,
If this is not a bug then this issue be closed and marked as Closed (won't fix). Closing and marking as Closed (won't fix).
Comment #5
salvis@num37:
Is it just Taxonomy that's needed or Taxonomy Subscriptions?
Is this problem still in the -dev version?
Comment #6
kosar CreditAttribution: kosar commentedThe problem occurs when the taxonomy module is off. The problem occurs in the subscriptions_mail.cron.inc file on line 164 when calling entity_load. I do not use taxonomy, so I think it's necessary to add a check for the existence of the taxonomy.
PS the problem is also relevant for the dev version.
Comment #7
salvisThank you for your patch, kosar!
Using module_exists() to check for the presence of a module is clearer.
Comment #9
salvisThanks all for helping to track this down.