Closed (fixed)
Project:
Custom review
Version:
5.x-2.1-1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Jul 2008 at 14:35 UTC
Updated:
25 Aug 2008 at 09:32 UTC
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
Comment #1
crea commentedI have same error
Comment #2
deadlyminds commentedSeems fixed. I went to blocks and enabled the 'custom reviews' block. After doing this, the rror messages have disappeared....
Comment #3
droople commentedI have the same error here
Comment #4
droople commentedchanging status to active.
Comment #5
Striky2 commentedOk, 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.
Comment #6
deadlyminds commentedStriky, 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.
Comment #7
jasonxxx commentedIn 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)) {
Comment #8
barako commentedThanks 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.
Comment #9
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.