andrew_dunn Posted June 18, 2009 Share Posted June 18, 2009 'm debugging a Facebook application, and I get the following error message: Warning: Call-time pass-by-reference has been deprecated in /usr/www/users/adminclt/fb/fbapp/facebook/classes/app.class.php on line 24 I've been trying to figure it out, but I can't seem to. Line 24 of the file is line 6 here. Here's the relevant code: function __construct($facebook=NULL,$isAjax=false) { // initialize class require_once (PATH_CORE.'/classes/db.class.php'); $this->db=new cloudDatabase(); require_once (PATH_CORE.'/classes/systemStatus.class.php'); $this->ssObj=new systemStatus($this->db); $this->ssObj->getProperties(&$this); if (!is_null($facebook)) $this->facebook=&$facebook; // must do before setupTemplates(); require_once (PATH_FACEBOOK.'/classes/session.class.php'); $this->session=new session($this); $this->isAjax=$isAjax; if (!$isAjax) { $this->session->setupSession(); } else { // to do - setup session via jscript rather than POST } } Thanks in advance! Quote Link to comment Share on other sites More sharing options...
xtopolis Posted June 18, 2009 Share Posted June 18, 2009 Google. Srsly. Quote Link to comment Share on other sites More sharing options...
andrew_dunn Posted June 18, 2009 Author Share Posted June 18, 2009 I tried Google, which didn't help. But through trial and error I solved the problem. I'm working on a demanding schedule, that's why I turned to the forum. Apologies if I mucked up the board. Quote Link to comment Share on other sites More sharing options...
haku Posted June 18, 2009 Share Posted June 18, 2009 Can't use & signs in function calls, only function definitions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.