CException

Property "UniqueNotification.hash" is not defined.

/home/myhost/www/limesurvey/framework/db/ar/CActiveRecord.php(161)

149      * PHP setter magic method.
150      * This method is overridden so that AR attributes can be accessed like properties.
151      * @param string $name property name
152      * @param mixed $value property value
153      */
154     public function __set($name,$value)
155     {
156         if($this->setAttribute($name,$value)===false)
157         {
158             if(isset($this->getMetaData()->relations[$name]))
159                 $this->_related[$name]=$value;
160             else
161                 parent::__set($name,$value);
162         }
163     }
164 
165     /**
166      * Checks if a property value is null.
167      * This method overrides the parent implementation by checking
168      * if the named attribute is null or not.
169      * @param string $name the property name or the event name
170      * @return boolean whether the property value is null
171      */
172     public function __isset($name)
173     {

Stack Trace

#1
+
 /home/myhost/www/limesurvey/application/models/UniqueNotification.php(54): CActiveRecord->__set("hash", "ac50652393f46c49b2ece06739041a7daa9d3192a6efd909c41403060836f1f9")
49      * @return void
50      */
51     public function save($runValidation = true, $attributes = null)
52     {
53         $toHash = $this->entity . $this->entity_id . $this->title . $this->message;
54         $this->hash = hash('sha256', $toHash);
55 
56         $duplicate = self::model()->findByAttributes(array(
57             'hash' => $this->hash
58         ));
59 
#2
+
 /home/myhost/www/limesurvey/application/models/UniqueNotification.php(98): UniqueNotification->save()
093         }
094 
095         foreach ($users as $user) {
096             $options['user_id'] = $user->uid;
097             $not = new UniqueNotification($options);
098             $not->save();
099         }
100     }
101 }
#3
+
 /home/myhost/www/limesurvey/application/core/Survey_Common_Action.php(415): UniqueNotification::broadcast(array("title" => "New update available (Current version: 170115)", "markAsNew" => false, "message" => "Uma atualização de segurança está disponível.<a href=/quest..."), array(User))
410                 {
411                     UniqueNotification::broadcast(array(
412                         'title' => gT('New update available')." (".gT("Current version: ").$currentVersion.")",
413                         'markAsNew' => false,
414                         'message' => gT('A security update is available.')."<a href=".$urlUpdate.">".gT('Click here to use ComfortUpdate.')."</a>"
415                     ), $superadmins);
416                 }
417             }
418         }
419     }
420 
#4
+
 /home/myhost/www/limesurvey/application/core/Survey_Common_Action.php(290): Survey_Common_Action->_updatenotification()
285         }
286         else
287         {
288             ///
289             $this->_fullpagebar($aData);
290             $this->_updatenotification();
291             $this->_notifications();
292             //// TODO : Move this div inside each correct view ASAP !
293             echo '
294                     <!-- Full page, started in Survey_Common_Action::render_wrapped_template() -->
295                         <div class="container-fluid full-page-wrapper" id="in_survey_common_action">
#5
+
 /home/myhost/www/limesurvey/application/controllers/admin/index.php(93): Survey_Common_Action->_renderWrappedTemplate("super", "welcome", array("issuperadmin" => true, "showLastSurvey" => true, "surveyTitle" => "Solicitação de Orçamento v3.0.0(ID:988452)", "surveyUrl" => "/questionario/index.php/admin/survey/sa/view/surveyid/988452", ...))
88         $aData['bShowLogo'] = (getGlobalSetting('show_logo')=="show");
89         $aData['oSurveySearch'] = new Survey('search');
90         $aData['bShowLastSurveyAndQuestion'] = (getGlobalSetting('show_last_survey_and_question')=="show");
91         $aData['iBoxesByRow']=(int) getGlobalSetting('boxes_by_row');
92         $aData['sBoxesOffSet']=(string) getGlobalSetting('boxes_offset');
93         $this->_renderWrappedTemplate('super', 'welcome', $aData);
94     }
95 
96 }
#7
+
 /home/myhost/www/limesurvey/framework/web/actions/CAction.php(109): ReflectionMethod->invokeArgs(Index, array())
104             elseif($param->isDefaultValueAvailable())
105                 $ps[]=$param->getDefaultValue();
106             else
107                 return false;
108         }
109         $method->invokeArgs($object,$ps);
110         return true;
111     }
112 }
#8
+
 /home/myhost/www/limesurvey/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(Index, ReflectionMethod, array())
096             $oMethod = new ReflectionMethod($this, $sDefault);
097         }
098 
099         // We're all good to go, let's execute it
100         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
101         return parent::runWithParamsInternal($this, $oMethod, $params);
102     }
103 
104     /**
105     * Some functions have different parameters, which are just an alias of the
106     * usual parameters we're getting in the url. This function just populates
#9
+
 /home/myhost/www/limesurvey/framework/web/CController.php(308): Survey_Common_Action->runWithParams(array())
303     {
304         $priorAction=$this->_action;
305         $this->_action=$action;
306         if($this->beforeAction($action))
307         {
308             if($action->runWithParams($this->getActionParams())===false)
309                 $this->invalidActionParams($action);
310             else
311                 $this->afterAction($action);
312         }
313         $this->_action=$priorAction;
2017-01-16 15:26:21 Apache Yii Framework/1.1.17
Profiling Summary Report (Time: 0.68100s, Memory: 15,617KB)
Procedure Count Total (s) Avg. (s) Min. (s) Max. (s)
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_surveys`) 1 0.00844 0.00844 0.00844 0.00844
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_surveys_languagesettings`) 1 0.00506 0.00506 0.00506 0.00506
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_users`) 1 0.00474 0.00474 0.00474 0.00474
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_questions`) 1 0.00401 0.00401 0.00401 0.00401
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_settings_global`) 1 0.00390 0.00390 0.00390 0.00390
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_permissions`) 1 0.00388 0.00388 0.00388 0.00388
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_plugins`) 1 0.00371 0.00371 0.00371 0.00371
system.db.CDbCommand.query(SHOW FULL COLUMNS FROM `lime_notifications`) 1 0.00358 0.00358 0.00358 0.00358
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_notifications`) 1 0.00313 0.00313 0.00313 0.00313
system.db.CDbCommand.query(SELECT `t`.`uid`, `t`.`users_name`, `t`.`password`, `t`.`full_name`, `t`.`parent_id`, `t`.`lang`, `t`.`email`, `t`.`htmleditormode`, `t`.`templateeditormode`, `t`.`questionselectormode`, `t`.`one_time_pw`, `t`.`dateformat`, `t`.`created`, `t`.`modified` FROM `lime_users` `t` JOIN lime_permissions AS p ON p.uid = t.uid WHERE p.permission = 'superadmin') 1 0.00265 0.00265 0.00265 0.00265
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_settings_global`) 1 0.00264 0.00264 0.00264 0.00264
system.db.CDbCommand.query(SELECT COUNT(*) FROM `lime_users` `t`) 1 0.00247 0.00247 0.00247 0.00247
system.db.CDbCommand.query(SELECT COUNT(*) FROM `lime_notifications` `t` WHERE ((entity = 'user') AND (entity_id = 1)) AND (status = 'new')) 1 0.00230 0.00230 0.00230 0.00230
system.db.CDbCommand.query(SELECT `t`.`sid` AS `t0_c0`, `t`.`owner_id` AS `t0_c1`, `t`.`admin` AS `t0_c2`, `t`.`active` AS `t0_c3`, `t`.`expires` AS `t0_c4`, `t`.`startdate` AS `t0_c5`, `t`.`adminemail` AS `t0_c6`, `t`.`anonymized` AS `t0_c7`, `t`.`faxto` AS `t0_c8`, `t`.`format` AS `t0_c9`, `t`.`savetimings` AS `t0_c10`, `t`.`template` AS `t0_c11`, `t`.`language` AS `t0_c12`, `t`.`additional_languages` AS `t0_c13`, `t`.`datestamp` AS `t0_c14`, `t`.`usecookie` AS `t0_c15`, `t`.`allowregister` AS `t0_c16`, `t`.`allowsave` AS `t0_c17`, `t`.`autonumber_start` AS `t0_c18`, `t`.`autoredirect` AS `t0_c19`, `t`.`allowprev` AS `t0_c20`, `t`.`printanswers` AS `t0_c21`, `t`.`ipaddr` AS `t0_c22`, `t`.`refurl` AS `t0_c23`, `t`.`datecreated` AS `t0_c24`, `t`.`publicstatistics` AS `t0_c25`, `t`.`publicgraphs` AS `t0_c26`, `t`.`listpublic` AS `t0_c27`, `t`.`htmlemail` AS `t0_c28`, `t`.`sendconfirmation` AS `t0_c29`, `t`.`tokenanswerspersistence` AS `t0_c30`, `t`.`assessments` AS `t0_c31`, `t`.`usecaptcha` AS `t0_c32`, `t`.`usetokens` AS `t0_c33`, `t`.`bounce_email` AS `t0_c34`, `t`.`attributedescriptions` AS `t0_c35`, `t`.`emailresponseto` AS `t0_c36`, `t`.`emailnotificationto` AS `t0_c37`, `t`.`tokenlength` AS `t0_c38`, `t`.`showxquestions` AS `t0_c39`, `t`.`showgroupinfo` AS `t0_c40`, `t`.`shownoanswer` AS `t0_c41`, `t`.`showqnumcode` AS `t0_c42`, `t`.`bouncetime` AS `t0_c43`, `t`.`bounceprocessing` AS `t0_c44`, `t`.`bounceaccounttype` AS `t0_c45`, `t`.`bounceaccounthost` AS `t0_c46`, `t`.`bounceaccountpass` AS `t0_c47`, `t`.`bounceaccountencryption` AS `t0_c48`, `t`.`bounceaccountuser` AS `t0_c49`, `t`.`showwelcome` AS `t0_c50`, `t`.`showprogress` AS `t0_c51`, `t`.`questionindex` AS `t0_c52`, `t`.`navigationdelay` AS `t0_c53`, `t`.`nokeyboard` AS `t0_c54`, `t`.`alloweditaftercompletion` AS `t0_c55`, `t`.`googleanalyticsstyle` AS `t0_c56`, `t`.`googleanalyticsapikey` AS `t0_c57`, `defaultlanguage`.`surveyls_survey_id` AS `t1_c0`, `defaultlanguage`.`surveyls_language` AS `t1_c1`, `defaultlanguage`.`surveyls_title` AS `t1_c2`, `defaultlanguage`.`surveyls_description` AS `t1_c3`, `defaultlanguage`.`surveyls_welcometext` AS `t1_c4`, `defaultlanguage`.`surveyls_endtext` AS `t1_c5`, `defaultlanguage`.`surveyls_url` AS `t1_c6`, `defaultlanguage`.`surveyls_urldescription` AS `t1_c7`, `defaultlanguage`.`surveyls_email_invite_subj` AS `t1_c8`, `defaultlanguage`.`surveyls_email_invite` AS `t1_c9`, `defaultlanguage`.`surveyls_email_remind_subj` AS `t1_c10`, `defaultlanguage`.`surveyls_email_remind` AS `t1_c11`, `defaultlanguage`.`surveyls_email_register_subj` AS `t1_c12`, `defaultlanguage`.`surveyls_email_register` AS `t1_c13`, `defaultlanguage`.`surveyls_email_confirm_subj` AS `t1_c14`, `defaultlanguage`.`surveyls_email_confirm` AS `t1_c15`, `defaultlanguage`.`surveyls_dateformat` AS `t1_c16`, `defaultlanguage`.`surveyls_attributecaptions` AS `t1_c17`, `defaultlanguage`.`email_admin_notification_subj` AS `t1_c18`, `defaultlanguage`.`email_admin_notification` AS `t1_c19`, `defaultlanguage`.`email_admin_responses_subj` AS `t1_c20`, `defaultlanguage`.`email_admin_responses` AS `t1_c21`, `defaultlanguage`.`surveyls_numberformat` AS `t1_c22`, `defaultlanguage`.`attachments` AS `t1_c23` FROM `lime_surveys` `t` LEFT OUTER JOIN `lime_surveys_languagesettings` `defaultlanguage` ON (`t`.`language`=`defaultlanguage`.`surveyls_language`) AND (`t`.`sid`=`defaultlanguage`.`surveyls_survey_id`) ORDER BY surveyls_title) 1 0.00229 0.00229 0.00229 0.00229
system.db.CDbCommand.query(SELECT * FROM `lime_settings_global` `t`) 1 0.00158 0.00158 0.00158 0.00158
system.db.CDbCommand.query(SHOW TABLES) 1 0.00121 0.00121 0.00121 0.00121
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_surveys`) 1 0.00118 0.00118 0.00118 0.00118
system.db.CDbCommand.query(SELECT `t`.`sid` AS `t0_c0`, `t`.`owner_id` AS `t0_c1`, `t`.`admin` AS `t0_c2`, `t`.`active` AS `t0_c3`, `t`.`expires` AS `t0_c4`, `t`.`startdate` AS `t0_c5`, `t`.`adminemail` AS `t0_c6`, `t`.`anonymized` AS `t0_c7`, `t`.`faxto` AS `t0_c8`, `t`.`format` AS `t0_c9`, `t`.`savetimings` AS `t0_c10`, `t`.`template` AS `t0_c11`, `t`.`language` AS `t0_c12`, `t`.`additional_languages` AS `t0_c13`, `t`.`datestamp` AS `t0_c14`, `t`.`usecookie` AS `t0_c15`, `t`.`allowregister` AS `t0_c16`, `t`.`allowsave` AS `t0_c17`, `t`.`autonumber_start` AS `t0_c18`, `t`.`autoredirect` AS `t0_c19`, `t`.`allowprev` AS `t0_c20`, `t`.`printanswers` AS `t0_c21`, `t`.`ipaddr` AS `t0_c22`, `t`.`refurl` AS `t0_c23`, `t`.`datecreated` AS `t0_c24`, `t`.`publicstatistics` AS `t0_c25`, `t`.`publicgraphs` AS `t0_c26`, `t`.`listpublic` AS `t0_c27`, `t`.`htmlemail` AS `t0_c28`, `t`.`sendconfirmation` AS `t0_c29`, `t`.`tokenanswerspersistence` AS `t0_c30`, `t`.`assessments` AS `t0_c31`, `t`.`usecaptcha` AS `t0_c32`, `t`.`usetokens` AS `t0_c33`, `t`.`bounce_email` AS `t0_c34`, `t`.`attributedescriptions` AS `t0_c35`, `t`.`emailresponseto` AS `t0_c36`, `t`.`emailnotificationto` AS `t0_c37`, `t`.`tokenlength` AS `t0_c38`, `t`.`showxquestions` AS `t0_c39`, `t`.`showgroupinfo` AS `t0_c40`, `t`.`shownoanswer` AS `t0_c41`, `t`.`showqnumcode` AS `t0_c42`, `t`.`bouncetime` AS `t0_c43`, `t`.`bounceprocessing` AS `t0_c44`, `t`.`bounceaccounttype` AS `t0_c45`, `t`.`bounceaccounthost` AS `t0_c46`, `t`.`bounceaccountpass` AS `t0_c47`, `t`.`bounceaccountencryption` AS `t0_c48`, `t`.`bounceaccountuser` AS `t0_c49`, `t`.`showwelcome` AS `t0_c50`, `t`.`showprogress` AS `t0_c51`, `t`.`questionindex` AS `t0_c52`, `t`.`navigationdelay` AS `t0_c53`, `t`.`nokeyboard` AS `t0_c54`, `t`.`alloweditaftercompletion` AS `t0_c55`, `t`.`googleanalyticsstyle` AS `t0_c56`, `t`.`googleanalyticsapikey` AS `t0_c57`, `languagesettings`.`surveyls_survey_id` AS `t1_c0`, `languagesettings`.`surveyls_language` AS `t1_c1`, `languagesettings`.`surveyls_title` AS `t1_c2`, `languagesettings`.`surveyls_description` AS `t1_c3`, `languagesettings`.`surveyls_welcometext` AS `t1_c4`, `languagesettings`.`surveyls_endtext` AS `t1_c5`, `languagesettings`.`surveyls_url` AS `t1_c6`, `languagesettings`.`surveyls_urldescription` AS `t1_c7`, `languagesettings`.`surveyls_email_invite_subj` AS `t1_c8`, `languagesettings`.`surveyls_email_invite` AS `t1_c9`, `languagesettings`.`surveyls_email_remind_subj` AS `t1_c10`, `languagesettings`.`surveyls_email_remind` AS `t1_c11`, `languagesettings`.`surveyls_email_register_subj` AS `t1_c12`, `languagesettings`.`surveyls_email_register` AS `t1_c13`, `languagesettings`.`surveyls_email_confirm_subj` AS `t1_c14`, `languagesettings`.`surveyls_email_confirm` AS `t1_c15`, `languagesettings`.`surveyls_dateformat` AS `t1_c16`, `languagesettings`.`surveyls_attributecaptions` AS `t1_c17`, `languagesettings`.`email_admin_notification_subj` AS `t1_c18`, `languagesettings`.`email_admin_notification` AS `t1_c19`, `languagesettings`.`email_admin_responses_subj` AS `t1_c20`, `languagesettings`.`email_admin_responses` AS `t1_c21`, `languagesettings`.`surveyls_numberformat` AS `t1_c22`, `languagesettings`.`attachments` AS `t1_c23` FROM `lime_surveys` `t` LEFT OUTER JOIN `lime_surveys_languagesettings` `languagesettings` ON (`languagesettings`.`surveyls_survey_id`=`t`.`sid`) WHERE (sid = :surveyid) AND (surveyls_language=language). Bound with :surveyid='988452') 1 0.00106 0.00106 0.00106 0.00106
system.db.CDbCommand.query(SELECT COUNT(*) FROM `lime_surveys` `t` WHERE active = 'Y') 1 0.00096 0.00096 0.00096 0.00096
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_surveys_languagesettings`) 1 0.00087 0.00087 0.00087 0.00087
system.db.CDbCommand.query(SELECT * FROM `lime_surveys` `t` WHERE `t`.`sid`=988452 LIMIT 1) 1 0.00083 0.00083 0.00083 0.00083
system.db.CDbCommand.query(SELECT `defaultlanguage`.`surveyls_survey_id` AS `t1_c0`, `defaultlanguage`.`surveyls_language` AS `t1_c1`, `defaultlanguage`.`surveyls_title` AS `t1_c2`, `defaultlanguage`.`surveyls_description` AS `t1_c3`, `defaultlanguage`.`surveyls_welcometext` AS `t1_c4`, `defaultlanguage`.`surveyls_endtext` AS `t1_c5`, `defaultlanguage`.`surveyls_url` AS `t1_c6`, `defaultlanguage`.`surveyls_urldescription` AS `t1_c7`, `defaultlanguage`.`surveyls_email_invite_subj` AS `t1_c8`, `defaultlanguage`.`surveyls_email_invite` AS `t1_c9`, `defaultlanguage`.`surveyls_email_remind_subj` AS `t1_c10`, `defaultlanguage`.`surveyls_email_remind` AS `t1_c11`, `defaultlanguage`.`surveyls_email_register_subj` AS `t1_c12`, `defaultlanguage`.`surveyls_email_register` AS `t1_c13`, `defaultlanguage`.`surveyls_email_confirm_subj` AS `t1_c14`, `defaultlanguage`.`surveyls_email_confirm` AS `t1_c15`, `defaultlanguage`.`surveyls_dateformat` AS `t1_c16`, `defaultlanguage`.`surveyls_attributecaptions` AS `t1_c17`, `defaultlanguage`.`email_admin_notification_subj` AS `t1_c18`, `defaultlanguage`.`email_admin_notification` AS `t1_c19`, `defaultlanguage`.`email_admin_responses_subj` AS `t1_c20`, `defaultlanguage`.`email_admin_responses` AS `t1_c21`, `defaultlanguage`.`surveyls_numberformat` AS `t1_c22`, `defaultlanguage`.`attachments` AS `t1_c23` FROM `lime_surveys_languagesettings` `defaultlanguage` WHERE (`defaultlanguage`.`surveyls_language`=:ypl0) AND (`defaultlanguage`.`surveyls_survey_id`=:ypl1). Bound with :ypl0='pt-BR', :ypl1='988452') 1 0.00078 0.00078 0.00078 0.00078
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_questions`) 1 0.00071 0.00071 0.00071 0.00071
system.db.CDbCommand.query(SELECT * FROM `lime_settings_global` `t` WHERE `t`.`stg_name`='show_survey_list' LIMIT 1) 1 0.00069 0.00069 0.00069 0.00069
system.db.CDbCommand.query(SELECT COUNT(*) FROM `lime_notifications` `t` WHERE (entity = 'user') AND (entity_id = 1)) 1 0.00068 0.00068 0.00068 0.00068
system.db.CDbCommand.query(SELECT * FROM `lime_questions` `t` WHERE `t`.`qid`=:yp0 AND `t`.`gid`=:yp1 AND `t`.`sid`=:yp2 AND `t`.`language`=:yp3 LIMIT 1. Bound with :yp0='137', :yp1='24', :yp2='988452', :yp3='pt-BR') 1 0.00062 0.00062 0.00062 0.00062
system.db.CDbCommand.query(SELECT * FROM `lime_settings_global` `t` WHERE stg_name=:name LIMIT 1. Bound with :name='DBVersion') 1 0.00062 0.00062 0.00062 0.00062
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_users`) 1 0.00057 0.00057 0.00057 0.00057
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_permissions`) 1 0.00055 0.00055 0.00055 0.00055
system.db.CDbCommand.query(SELECT * FROM `lime_permissions` `t` WHERE `t`.`entity_id`=:yp0 AND `t`.`entity`=:yp1 AND `t`.`uid`=:yp2 AND `t`.`permission`=:yp3 LIMIT 1. Bound with :yp0=0, :yp1='global', :yp2=1, :yp3='superadmin') 1 0.00053 0.00053 0.00053 0.00053
system.db.CDbCommand.query(SELECT COUNT(*) FROM `lime_notifications` `t` WHERE ((entity = 'user') AND (entity_id = 1)) AND (importance = 3)) 1 0.00052 0.00052 0.00052 0.00052
system.db.CDbCommand.query(SHOW CREATE TABLE `lime_plugins`) 1 0.00051 0.00051 0.00051 0.00051
system.db.CDbCommand.query(SELECT COUNT(*) FROM `lime_surveys` `t`) 1 0.00048 0.00048 0.00048 0.00048
system.db.CDbCommand.query(SELECT * FROM `lime_plugins` `t` WHERE `t`.`active`=:yp0. Bound with :yp0=1) 1 0.00047 0.00047 0.00047 0.00047