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.
After adding a new question to a freshly built site, adding an answer results in the following error:
Notice: Undefined property: stdClass::$use_source_translation in rate_get_results() (line 479 of /path/to/commons/profiles/commons/modules/contrib/rate/rate.module).
Adding additional answers results three instances of the same error... then another adds 5X, etc.
Comment | File | Size | Author |
---|---|---|---|
#2 | rate_undefined_property-1905002-1.patch | 632 bytes | Matt V. |
#1 | 1905002.commons_q_a.use_source_translation_rate_property.patch | 966 bytes | jpontani |
Comments
Comment #1
jpontani CreditAttribution: jpontani commentedThis patch should fix it. You'll have to uninstall/reinstall the Commons Q&A feature.
Comment #2
Matt V. CreditAttribution: Matt V. commented(EDIT: Please ignore this patch. I posted without having noticed jpontani's response above.)
I've posted a patch in the Rate module's issue queue. I'm attaching a corresponding patch for Commons here.
Comment #3
Matt V. CreditAttribution: Matt V. commentedWeird... this morning I'm not able to recreate the error on a freshly build Commons site without any additional patches applied.
@jpontani, any thoughts? Unless you think otherwise, this can probably be closed.
Comment #4
ezra-g CreditAttribution: ezra-g commentedMarking as closed per #3.
Comment #5
jpontani CreditAttribution: jpontani commentedUpdating this issue because I just ran into the same issue prior to applying the patch in #1. Went ahead and committed it.
http://drupalcode.org/project/commons_q_a.git/commitdiff/c3e72c1