I am getting this error message when I try to edit any comment added using nodecomment. Just clicking the "edit" link below the comment generates the error. It also happens when you try to call a link from the view pointing to any node comment title.

warning: implode() [function.implode]: Invalid arguments passed in /home1/mysite/public_html/mysitename/sites/all/modules/views-6.x-2.11/views/plugins/views_plugin_argument_default_php.inc(48) : eval()'d code on line 4.

Any help please?

Comments

ibexy’s picture

did anybody else experience this problem?

ibexy’s picture

I think this problem is coming from the view that ships with nodecomment. There appears to be an invalid argument somewhre. I dont know enough php to pin point it though. I did a search on this website to try and understand the error message. Am still waiting for a good samaritan to save the day for me.

morleti’s picture

exactly same problem appeared! please, help!

ibexy’s picture

still experiencing this issue. any solutions yet?

morleti’s picture

here i found several solutions http://drupal.org/node/512304. will try to find my problem now.

morleti’s picture

it was a problem with the incorrect implemented "php-code"-argument in one of my views. i found correct php-code for argument on this forum and changed. now it works beautiful and no mistake appears. thank you for cooperation! : )

ibexy’s picture

Thanks for the above tips.
I found the custom Related Block I built had this argument codes which was causing the problem. I found the codes on this forum. After I removed it the problem stopped. What is the problem here please. The problem apparently is from the line 4:

$node= node_load(arg(1));
if($node) {
foreach($node->taxonomy as $term) {$terms[] = $term->tid;}
return implode('+',$terms);
} else {return;}
morleti’s picture

I'd experienced the problem with the same code, actually. I've changed the "if statement" in the php field to $node->taxonomy.

$node = node_load(arg(1));
if($node->taxonomy){
foreach($node->taxonomy as $term){$terms[] = $term->tid;}
return implode('+', $terms);
}else{return;}

i've taken the correct code from the douglas79's and mmachina's comments from here http://drupal.org/node/65375

ibexy’s picture

thanks. its worked. the errors are gone!

morleti’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

sachinsharma18’s picture

Ohhh thank u so much friend, your solution really worked for my blog http://www.wondersinworld.com , i was getting same issue and it was so irritating, thanks again.