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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jpontani’s picture

Status: Active » Needs review
FileSize
966 bytes

This patch should fix it. You'll have to uninstall/reinstall the Commons Q&A feature.

Matt V.’s picture

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

Matt V.’s picture

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

ezra-g’s picture

Status: Needs review » Fixed

Marking as closed per #3.

jpontani’s picture

Updating 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

Status: Fixed » Closed (fixed)

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