Forum

Thread tagged as: Problem, Error, Members

Error in PerchMembers_Members class code

Drew, In PerchMembers_Members.class.php there is an error in the get_by_status() function.

in Perch Members v1.4.2 (EDITED: sorry, I had v5.0)

30  public function get_by_status($status, $Paging=false)
31  {
32      return $this->get_by('memberStatus', $status, $Paging);
33  }

Line->32 should be: return $this->get_by('memberStatus', $status, false, $Paging);

currently, the 3rd param is $Paging when that should be 4th,

PerchFactory.class.php v2.8.26

public function get_by($col, $val, $order_by_col=false, $Paging=false)
Robert Ketter

Robert Ketter 103 points

  • 5 years ago

Here is another code error

PerchFactory.class.php v2.8.26

Line->141:             $sql    = $select . ' * FROM ' . $this->table . ' WHERE ' . $col . ' IN ('. PerchUtil::implode_for_sql_in($val) .') '.$this->standard_restrictions();

PerchUtil::implode_for_sql_in() does not exist... and fails

but $this->db->implode_for_sql_in() does exist and works
Drew McLellan

Drew McLellan 2638 points
Perch Support

It would be a lot more helpful if you could describe the problem you're encountering.