When I am on my dashboard page
http://pimpandhost.com/site/dashboard and I click the link for Explore Other User's Profiles
http://pimpandhost.com/users/profiles/, I get an Exception report saying
User not found:
Quote:
Exception
User not found.
/www/pimpandhost.com_dev/htdocs/protected/functions.php(59)
47 }
48 $offset = $where2 + 1;
49 }
50 }
51 }
52
53 return $frames > 1;
54 }
55
56
57 function e($message = '...'){
58 d($message);
59 throw new Exception($message);
60 }
61
62 function __exec($cmd, $log_file = null) {
63 l($cmd, $log_file);
64 exec($cmd, $output);
65 l($output, $log_file);
66 return $output;
67 }
68
69 function __interval($str, &$counter = 0) {
70 global $time_start;
71 $result = "\n";
Stack Trace
#0
–
/www/pimpandhost.com_dev/htdocs/protected/controllers/SiteController.php(406): e("User not found.")
401 public function actionProfile()
402 {
403 $username = $_GET['username'];
404 $user = User::model()->findByAttributes(array('username'=>$username));
405 if(!$user){
406 e('User not found.');
407 }
408 $this->author = $user;
409
410 //Album list with pagination
411 $criteria=new CDbCriteria;
#1
+
/www/yii-read-only_svn/framework/web/actions/CInlineAction.php(50): SiteController->actionProfile()
#2
+
/www/yii-read-only_svn/framework/web/CController.php(312): CInlineAction->runWithParams(array("username" => "profiles"))
#3
+
/www/yii-read-only_svn/framework/web/filters/CFilterChain.php(134): CController->runAction(CInlineAction)
#4
+
/www/yii-read-only_svn/framework/web/filters/CFilter.php(41): CFilterChain->run()
#5
+
/www/yii-read-only_svn/framework/web/CController.php(1156): CFilter->filter(CFilterChain)
#6
+
/www/yii-read-only_svn/framework/web/filters/CInlineFilter.php(59): CController->filterAccessControl(CFilterChain)
#7
+
/www/yii-read-only_svn/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter(CFilterChain)
#8
+
/www/yii-read-only_svn/framework/web/CController.php(295): CFilterChain->run()
#9
+
/www/yii-read-only_svn/framework/web/CController.php(269): CController->runActionWithFilters(CInlineAction, array("accessControl"))
#10
+
/www/yii-read-only_svn/framework/web/CWebApplication.php(276): CController->run("profile")
#11
+
/www/yii-read-only_svn/framework/web/CWebApplication.php(135): CWebApplication->runController("site/profile/username/profiles")
#12
+
/www/yii-read-only_svn/framework/base/CApplication.php(162): CWebApplication->processRequest()
#13
–
/www/pimpandhost.com_dev/htdocs/index.php(17): CApplication->run()
12 define('GLOBAL_SERVER', $servers[rand(0,count($servers)-1)]);
13
14 require_once($yii);
15 require_once(dirname(__FILE__).'/protected/globals.php');
16 require_once(dirname(__FILE__).'/protected/functions.php');
17 Yii::createWebApplication($config)->run();
2012-03-21 16:53:04 lighttpd/1.5.0 Yii Framework/1.1.9-dev
|
I hope this helps to fix this bug.