This module was working fine.. without warning anonymous users started getting Fatal Error: Call to a member function get_value on a non-object in /path/here/signup.module line 1727;

Since this function is called prior to rendering the page, when determining access... the error presented across the site for users not already logged in.

Resolved the issue, it seems, for now with 2 minor tweaks as shown here:

Original line

  return $user->uid == $view->argument[$argument_name]->get_value(NULL);

Modified lines

  if($user->uid==0){
  return FALSE;
  }else{
  return $user->uid == $view->argument[$argument_name]->get_value(NULL);
  }

Also, using Views 6.x-2.8.

Saw several threads that seemed to relate in one way or another, but none that solved the problem.. hth

Comments

scottrigby’s picture

Status: Active » Closed (duplicate)
scottrigby’s picture

Issue summary: View changes

cleaned up formatting