• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Facebook SDK updates for xenForo

Tracy Perry

Well-known member
#23
Code:
if($_GET['fbrefresh']){
$canological_url = '?refresh='.$_GET['fbrefresh'];
}else {
$canological_url = '';
}
To prevent undefined index notice, This should be:

Code:
if(isset($_GET['fbrefresh'])){
$canological_url = '?refresh='.$_GET['fbrefresh'];
}else {
$canological_url = '';
}
Yep, I just converted to nginx and the undefined index was driving me CRAZY in the log. After researching (and I'm not a coder by far) I stumbled upon the if(ifset code and once I put it into place ALL errors stopped. My log had gone to 256MB in just a matter of a short time before the code change.
 

Rob

Well-known member
#33
@Mike @Kier can either of you confirm if the issues defined in this thread affect the latest version of xenforo? I assume we're all good now but no harm in checking.
 

Chris D

XenForo developer
Staff member
#34
I'm of the opinion that the changes outlined in this resource were never necessary. However, parts of the Facebook SDK that XF uses were updated in 1.4 so it's safe to assume that everything is as up to date as it should be.