Closed (duplicate)
Project:
Signup
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2011 at 22:27 UTC
Updated:
17 Jul 2012 at 18:03 UTC
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
Comment #1
scottrigbySee #740618: SignUp for PHP5
Comment #1.0
scottrigbycleaned up formatting