FIX FOR THE VIEW PROFILE PROBLEM!!!
If you get the following error when viewing a profile:
"This profile does not exist or is no longer available",
then try the fix below. It's worked for me!
You'll need to make changes to the
comprofiler.php file, found under
components > com_comprofiler.
The changes are done on
lines 352 thru 371. Replace all instances of:
[code:1]$_REQUEST[/code:1]
and change it to:
[code:1]$_GET[/code:1]
Or if this is easier for you, highlight/select lines 352 (look for "
function setUserDBrequest") thru line 371 of your comprofiler.php file, then paste the following in its place:
[code:1]
function setUserDBrequest( $uid ) {
global $database;
if (!isset($_GET)) {
if (!$uid) {
return false;
}
$database->setQuery( "SELECT * FROM #__comprofiler c, #__users u WHERE c.id=u.id AND c.id=".$uid);
} else {
$userReq = urldecode(cbGetUnEscaped($_GET));
$len = strlen($userReq);
if (($len > 2) && (substr($userReq, 0, 1) == "'"«») && (substr($userReq, $len-1, 1) == "'"«»)) {
$userReq = substr($userReq, 1, $len-2);
$database->setQuery( "SELECT * FROM #__comprofiler c, #__users u WHERE c.id=u.id AND u.username='".cbGetEscaped(utf8ToISO($userReq))."'"«»);
} else {
$database->setQuery( "SELECT * FROM #__comprofiler c, #__users u WHERE c.id=u.id AND c.id=".cbGetEscaped($_GET));
}
}
return true;
}
[/code:1]
Good luck, and I hope it works for you! Oh, and BTW, I don't know what the security risks are if you do make the above changes so keep that in mind!!