I'm not sure if this is related or not but I just updated to 3.6.8.PL2 and when trying to access member.php I ran into an error.
The error was rather generic so it led me to do further research. Basically unexpected end to the code on the last line of code in member.php (line 848).
When I compared the 3.6.8 version of member.php to the new version (3.6.8.pl2) I found that there was an addition on lines 573-574 as follows. Removing the added code (the vbulletin code, not the modification code) let's it run normally.
Any ideas?
PHP Code:
if ($execute['profilefields'])
{
This was right before the following code which has been added:
PHP Code:
// *********************
// CUSTOM PROFILE FIELDS
$profilefield_categories = array(0 => array());
$profilefields_result = $db->query_read_slave("
SELECT pf.profilefieldid, pf.profilefieldcategoryid, pf.required, pf.type, pf.data, pf.def, pf.height
FROM " . TABLE_PREFIX . "profilefield AS pf
LEFT JOIN " . TABLE_PREFIX . "profilefieldcategory AS pfc ON(pfc.profilefieldcategoryid = pf.profilefieldcategoryid)
WHERE pf.form = 0 " . iif(!($permissions['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['canseehiddencustomfields']), "
AND pf.hidden = 0") . "
ORDER BY pfc.displayorder, pf.displayorder
");
while ($profilefield = $db->fetch_array($profilefields_result))
{
$profilefield_categories["$profilefield[profilefieldcategoryid]"][] = $profilefield;
}
$customfields = '';
$customfields_category = array();
foreach ($profilefield_categories AS $profilefieldcategoryid => $profilefields)
{
$category = array(
'title' => $vbphrase["category{$profilefieldcategoryid}_title"],
'description' => $vbphrase["category{$profilefieldcategoryid}_desc"],
'fields' => ''
);
foreach ($profilefields AS $profilefield)
{
exec_switch_bg();
fetch_profilefield_display($profilefield, $userinfo["field$profilefield[profilefieldid]"]);
($hook = vBulletinHook::fetch_hook('member_customfields')) ? eval($hook) : false;
if ($profilefield['value'] != '')
{
$show['extrainfo'] = true;
eval('$category[\'fields\'] .= "' . fetch_template('memberinfo_customfields') . '";');
}
}
$customfields_category["$profilefieldcategoryid"] = $category['fields'];
eval('$customfields .= "' . fetch_template('memberinfo_customfields_category') . '";');
}
// END CUSTOM PROFILE FIELDS
// *************************