Hi, Frist of all, great module (from what I've read in the documentation), but unfortunately I'm unable to use it :(

I have two content types - destination guides and travel reviews.

I want the 'travel reviews' to be the reviewer for 'destination guides'.

I enabled the module and then selected 'travel review' as the reviewer for 'destination guide'

I, then get this error message:

 warning: array_key_exists(): The second argument should be either an array or an object in C:\apache2triad\htdocs\project\mytravelsite\sites\all\modules\custom_review-5.x-2.1-1\custom_review\custom_review.module on line 147.

warning: array_key_exists(): The second argument should be either an array or an object in C:\apache2triad\htdocs\project\mytravelsite\sites\all\modules\custom_review-5.x-2.1-1\custom_review\custom_review.module on line 147.

This module will certainly help in what I'm looking for - create user generated travel review site...But I desperately need to get it working.

Can u help me?

Comments

crea’s picture

Category: support » bug
Priority: Normal » Minor

I have same error

deadlyminds’s picture

Status: Active » Fixed

Seems fixed. I went to blocks and enabled the 'custom reviews' block. After doing this, the rror messages have disappeared....

droople’s picture

I have the same error here

warning: array_key_exists(): The second argument should be either an array or an object in C:\apache2triad\htdocs\sites\all\modules\custom_review\custom_review.module on line 147.
droople’s picture

Status: Fixed » Active

changing status to active.

Striky2’s picture

Assigned: Unassigned » Striky2
Priority: Minor » Normal

Ok, that should simply be a if (is_array()...) missing somehow. I'll have a check asap. I'm on another projects thats keep me busy, so I can't make any promesses on dates however guys.

deadlyminds’s picture

Striky, I'll wait for you to come back, thanks. My original error has come back to haunt me :(. I tried another module (node-review) but this module gives better functionality.

jasonxxx’s picture

In the module an error, correct please -
function custom_review_form_alter ($form_id, AND $form) {
global $_custom_review_reviewers;

if (empty ($ _custom_review_reviewers)) {
$_custom_review_reviewers = custom_review_get_reviewers ();
}

$short_type = substr ($form_id, 0,-10);//' short_type_node_form ' => ' short_type '
if (! empty ($short_type) && array_key_exists ($short_type, $custom_review_reviewers)) {

barako’s picture

Status: Active » Fixed

Thanks for your post, this is the same issue that here : http://drupal.org/node/272534 : an error in a variable in form_alter.
Please download the lastest version of the module to correct that bug.
Deadlyminds, feel free to let the issue active again if the patch doesn't fix your problem.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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