View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
07161 | Bug reports | Survey editing | public | 2013-01-08 16:31 | 2013-01-15 09:51 |
Reporter | helper | Assigned To | DenisChenu | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | fixed | ||
Product Version | 2.00+ | ||||
Fixed in Version | 2.00+ | ||||
Summary | 07161: Question preview error - Undefined index: refurl | ||||
Description | Attempting to preview a question I get "Undefined index: refurl" | ||||
Steps To Reproduce | Navigate to a question (or group) and preview | ||||
Tags | No tags attached. | ||||
Attached Files | 1767.htm (30,795 bytes)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>PHP notice</title> <style type="text/css"> /*<![CDATA[*/ html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;} body{line-height:1;} ol,ul{list-style:none;} blockquote,q{quotes:none;} blockquote:before,blockquote:after,q:before,q:after{content:none;} :focus{outline:0;} ins{text-decoration:none;} del{text-decoration:line-through;} table{border-collapse:collapse;border-spacing:0;} body { font: normal 9pt "Verdana"; color: #000; background: #fff; } h1 { font: normal 18pt "Verdana"; color: #f00; margin-bottom: .5em; } h2 { font: normal 14pt "Verdana"; color: #800000; margin-bottom: .5em; } h3 { font: bold 11pt "Verdana"; } pre { font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace; } pre span.error { display: block; background: #fce3e3; } pre span.ln { color: #999; padding-right: 0.5em; border-right: 1px solid #ccc; } pre span.error-ln { font-weight: bold; } .container { margin: 1em 4em; } .version { color: gray; font-size: 8pt; border-top: 1px solid #aaa; padding-top: 1em; margin-bottom: 1em; } .message { color: #000; padding: 1em; font-size: 11pt; background: #f3f3f3; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; margin-bottom: 1em; line-height: 160%; } .source { margin-bottom: 1em; } .code pre { background-color: #ffe; margin: 0.5em 0; padding: 0.5em; line-height: 125%; border: 1px solid #eee; } .source .file { margin-bottom: 1em; font-weight: bold; } .traces { margin: 2em 0; } .trace { margin: 0.5em 0; padding: 0.5em; } .trace.app { border: 1px dashed #c00; } .trace .number { text-align: right; width: 2em; padding: 0.5em; } .trace .content { padding: 0.5em; } .trace .plus, .trace .minus { display:inline; vertical-align:middle; text-align:center; border:1px solid #000; color:#000; font-size:10px; line-height:10px; margin:0; padding:0 1px; width:10px; height:10px; } .trace.collapsed .minus, .trace.expanded .plus, .trace.collapsed pre { display: none; } .trace-file { cursor: pointer; padding: 0.2em; } .trace-file:hover { background: #f0ffff; } /*]]>*/ </style> </head> <body> <div class="container"> <h1>PHP notice</h1> <p class="message"> Undefined index: refurl </p> <div class="source"> <p class="file">C:\etc\Apache\htdocs\MSSQL\application\helpers\SurveyRuntimeHelper.php(62)</p> <div class="code"><pre><span class="ln">50</span> $radix=getRadixPointData($thissurvey['surveyls_numberformat']); <span class="ln">51</span> $radix = $radix['seperator']; <span class="ln">52</span> <span class="ln">53</span> $surveyOptions = array( <span class="ln">54</span> 'active' => ($thissurvey['active'] == 'Y'), <span class="ln">55</span> 'allowsave' => ($thissurvey['allowsave'] == 'Y'), <span class="ln">56</span> 'anonymized' => ($thissurvey['anonymized'] != 'N'), <span class="ln">57</span> 'assessments' => ($thissurvey['assessments'] == 'Y'), <span class="ln">58</span> 'datestamp' => ($thissurvey['datestamp'] == 'Y'), <span class="ln">59</span> 'hyperlinkSyntaxHighlighting' => (($LEMdebugLevel & LEM_DEBUG_VALIDATION_SUMMARY) == LEM_DEBUG_VALIDATION_SUMMARY), // TODO set this to true if in admin mode but not if running a survey <span class="ln">60</span> 'ipaddr' => ($thissurvey['ipaddr'] == 'Y'), <span class="ln">61</span> 'radix'=>$radix, <span class="error"><span class="ln error-ln">62</span> 'refurl' => (($thissurvey['refurl'] == "Y") ? $_SESSION[$LEMsessid]['refurl'] : NULL), </span><span class="ln">63</span> 'savetimings' => ($thissurvey['savetimings'] == "Y"), <span class="ln">64</span> 'surveyls_dateformat' => (isset($thissurvey['surveyls_dateformat']) ? $thissurvey['surveyls_dateformat'] : 1), <span class="ln">65</span> 'startlanguage'=>(isset($clang->langcode) ? $clang->langcode : $thissurvey['language']), <span class="ln">66</span> 'target' => Yii::app()->getConfig('uploaddir').DIRECTORY_SEPARATOR.'surveys'.DIRECTORY_SEPARATOR.$thissurvey['sid'].DIRECTORY_SEPARATOR.'files'.DIRECTORY_SEPARATOR, <span class="ln">67</span> 'tempdir' => Yii::app()->getConfig('tempdir').DIRECTORY_SEPARATOR, <span class="ln">68</span> 'timeadjust' => (isset($timeadjust) ? $timeadjust : 0), <span class="ln">69</span> 'token' => (isset($clienttoken) ? $clienttoken : NULL), <span class="ln">70</span> ); <span class="ln">71</span> <span class="ln">72</span> //Security Checked: POST, GET, SESSION, REQUEST, returnGlobal, DB <span class="ln">73</span> $previewgrp = false; <span class="ln">74</span> if ($surveyMode == 'group' && isset($param['action']) && ($param['action'] == 'previewgroup')) </pre></div> </div> <div class="traces"> <h2>Stack Trace</h2> <table style="width:100%;"> <tr class="trace app expanded"> <td class="number"> #0 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> C:\etc\Apache\htdocs\MSSQL\application\controllers\survey\index.php(651): <strong>SurveyRuntimeHelper</strong>-><strong>run</strong>("457897", array("surveyid" => "457897", "thissurvey" => array("sid" => "457897", "owner_id" => "1", "admin" => "Dr Miles Thompson", "active" => "N", ...), "thisstep" => "", "tokensexist" => 0, ...)) </div> <div class="code"><pre><span class="ln">646</span> //Send local variables to the appropriate survey type <span class="ln">647</span> unset($redata); <span class="ln">648</span> $redata = compact(array_keys(get_defined_vars())); <span class="ln">649</span> Yii::import('application.helpers.SurveyRuntimeHelper'); <span class="ln">650</span> $tmp = new SurveyRuntimeHelper(); <span class="error"><span class="ln error-ln">651</span> $tmp->run($surveyid,$redata); </span><span class="ln">652</span> <span class="ln">653</span> if (isset($_POST['saveall']) || isset($flashmessage)) <span class="ln">654</span> { <span class="ln">655</span> echo "\t\t<script type='text/javascript'> <span class="ln">656</span> $(document).ready( function() { </pre></div> </td> </tr> <tr class="trace app expanded"> <td class="number"> #1 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> C:\etc\Apache\htdocs\MSSQL\application\controllers\survey\index.php(18): <strong>index</strong>-><strong>action</strong>() </div> <div class="code"><pre><span class="ln">13</span> <span class="ln">14</span> class index extends CAction { <span class="ln">15</span> <span class="ln">16</span> public function run() <span class="ln">17</span> { <span class="error"><span class="ln error-ln">18</span> $this->action(); </span><span class="ln">19</span> } <span class="ln">20</span> <span class="ln">21</span> function action() <span class="ln">22</span> { <span class="ln">23</span> global $surveyid; </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #2 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> C:\etc\Apache\htdocs\MSSQL\framework\web\actions\CAction.php(75): <strong>index</strong>-><strong>run</strong>() </div> <div class="code"><pre><span class="ln">70</span> { <span class="ln">71</span> $method=new ReflectionMethod($this, 'run'); <span class="ln">72</span> if($method->getNumberOfParameters()>0) <span class="ln">73</span> return $this->runWithParamsInternal($this, $method, $params); <span class="ln">74</span> else <span class="error"><span class="ln error-ln">75</span> return $this->run(); </span><span class="ln">76</span> } <span class="ln">77</span> <span class="ln">78</span> /** <span class="ln">79</span> * Executes a method of an object with the supplied named parameters. <span class="ln">80</span> * This method is internally used. </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #3 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> C:\etc\Apache\htdocs\MSSQL\framework\web\CController.php(309): <strong>CAction</strong>-><strong>runWithParams</strong>(array("action" => "previewquestion", "sid" => "457897", "gid" => "190", "qid" => "1767")) </div> <div class="code"><pre><span class="ln">304</span> { <span class="ln">305</span> $priorAction=$this->_action; <span class="ln">306</span> $this->_action=$action; <span class="ln">307</span> if($this->beforeAction($action)) <span class="ln">308</span> { <span class="error"><span class="ln error-ln">309</span> if($action->runWithParams($this->getActionParams())===false) </span><span class="ln">310</span> $this->invalidActionParams($action); <span class="ln">311</span> else <span class="ln">312</span> $this->afterAction($action); <span class="ln">313</span> } <span class="ln">314</span> $this->_action=$priorAction; </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #4 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> C:\etc\Apache\htdocs\MSSQL\framework\web\CController.php(287): <strong>CController</strong>-><strong>runAction</strong>(index) </div> <div class="code"><pre><span class="ln">282</span> * @see runAction <span class="ln">283</span> */ <span class="ln">284</span> public function runActionWithFilters($action,$filters) <span class="ln">285</span> { <span class="ln">286</span> if(empty($filters)) <span class="error"><span class="ln error-ln">287</span> $this->runAction($action); </span><span class="ln">288</span> else <span class="ln">289</span> { <span class="ln">290</span> $priorAction=$this->_action; <span class="ln">291</span> $this->_action=$action; <span class="ln">292</span> CFilterChain::create($this,$action,$filters)->run(); </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #5 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> C:\etc\Apache\htdocs\MSSQL\framework\web\CController.php(266): <strong>CController</strong>-><strong>runActionWithFilters</strong>(index, array()) </div> <div class="code"><pre><span class="ln">261</span> { <span class="ln">262</span> if(($parent=$this->getModule())===null) <span class="ln">263</span> $parent=Yii::app(); <span class="ln">264</span> if($parent->beforeControllerAction($this,$action)) <span class="ln">265</span> { <span class="error"><span class="ln error-ln">266</span> $this->runActionWithFilters($action,$this->filters()); </span><span class="ln">267</span> $parent->afterControllerAction($this,$action); <span class="ln">268</span> } <span class="ln">269</span> } <span class="ln">270</span> else <span class="ln">271</span> $this->missingAction($actionID); </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #6 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> C:\etc\Apache\htdocs\MSSQL\framework\web\CWebApplication.php(276): <strong>CController</strong>-><strong>run</strong>("index") </div> <div class="code"><pre><span class="ln">271</span> { <span class="ln">272</span> list($controller,$actionID)=$ca; <span class="ln">273</span> $oldController=$this->_controller; <span class="ln">274</span> $this->_controller=$controller; <span class="ln">275</span> $controller->init(); <span class="error"><span class="ln error-ln">276</span> $controller->run($actionID); </span><span class="ln">277</span> $this->_controller=$oldController; <span class="ln">278</span> } <span class="ln">279</span> else <span class="ln">280</span> throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', <span class="ln">281</span> array('{route}'=>$route===''?$this->defaultController:$route))); </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #7 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> C:\etc\Apache\htdocs\MSSQL\framework\web\CWebApplication.php(135): <strong>CWebApplication</strong>-><strong>runController</strong>("survey/index/action/previewquestion/sid/457897/gid/190/qid/1767") </div> <div class="code"><pre><span class="ln">130</span> foreach(array_splice($this->catchAllRequest,1) as $name=>$value) <span class="ln">131</span> $_GET[$name]=$value; <span class="ln">132</span> } <span class="ln">133</span> else <span class="ln">134</span> $route=$this->getUrlManager()->parseUrl($this->getRequest()); <span class="error"><span class="ln error-ln">135</span> $this->runController($route); </span><span class="ln">136</span> } <span class="ln">137</span> <span class="ln">138</span> /** <span class="ln">139</span> * Registers the core application components. <span class="ln">140</span> * This method overrides the parent implementation by registering additional core components. </pre></div> </td> </tr> <tr class="trace core collapsed"> <td class="number"> #8 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> C:\etc\Apache\htdocs\MSSQL\framework\base\CApplication.php(162): <strong>CWebApplication</strong>-><strong>processRequest</strong>() </div> <div class="code"><pre><span class="ln">157</span> */ <span class="ln">158</span> public function run() <span class="ln">159</span> { <span class="ln">160</span> if($this->hasEventHandler('onBeginRequest')) <span class="ln">161</span> $this->onBeginRequest(new CEvent($this)); <span class="error"><span class="ln error-ln">162</span> $this->processRequest(); </span><span class="ln">163</span> if($this->hasEventHandler('onEndRequest')) <span class="ln">164</span> $this->onEndRequest(new CEvent($this)); <span class="ln">165</span> } <span class="ln">166</span> <span class="ln">167</span> /** </pre></div> </td> </tr> <tr class="trace app expanded"> <td class="number"> #9 </td> <td class="content"> <div class="trace-file"> <div class="plus">+</div> <div class="minus">–</div> C:\etc\Apache\htdocs\MSSQL\index.php(178): <strong>CApplication</strong>-><strong>run</strong>() </div> <div class="code"><pre><span class="ln">173</span> * <span class="ln">174</span> */ <span class="ln">175</span> require_once BASEPATH . 'yii' . EXT; <span class="ln">176</span> require_once APPPATH . 'core/LSYii_Application' . EXT; <span class="ln">177</span> <span class="error"><span class="ln error-ln">178</span> Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run(); </span><span class="ln">179</span> <span class="ln">180</span> /* End of file index.php */ <span class="ln">181</span> /* Location: ./index.php */ </pre></div> </td> </tr> </table> </div> <div class="version"> 2013-01-08 07:22:40 Apache/2.4.3 (Win32) OpenSSL/0.9.8x PHP/5.4.8 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.10 </div> </div> <script type="text/javascript"> /*<![CDATA[*/ var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)"); var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)"); var e = document.getElementsByTagName("div"); for(var j=0,len=e.length;j<len;j++){ if(traceReg.test(e[j].className)){ e[j].onclick = function(){ var trace = this.parentNode.parentNode; if(collapsedReg.test(trace.className)) trace.className = trace.className.replace("collapsed", "expanded"); else trace.className = trace.className.replace("expanded", "collapsed"); } } } /*]]>*/ </script> </body> </html> <script type="text/javascript"> /*<![CDATA[*/ if(typeof(console)=='object') { console.group("Application Log"); console.log("[07:22:40.180][trace][system.db.CDbConnection] Opening DB connection"); console.log("[07:22:40.186][trace][system.db.CDbCommand] Querying SQL: SHOW COLUMNS FROM `lime_settings_global`"); console.log("[07:22:40.193][trace][system.db.CDbCommand] Querying SQL: SHOW CREATE TABLE `lime_settings_global`"); console.log("[07:22:40.194][trace][system.db.ar.CActiveRecord] Settings_global.findAll()"); console.log("[07:22:40.197][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM `lime_settings_global` `t`"); console.log("[07:22:40.260][trace][system.db.CDbCommand] Querying SQL: SHOW COLUMNS FROM `lime_surveys`"); console.log("[07:22:40.275][trace][system.db.CDbCommand] Querying SQL: SHOW CREATE TABLE `lime_surveys`"); console.log("[07:22:40.276][trace][system.db.ar.CActiveRecord] Survey.findByPk()"); console.log("[07:22:40.276][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM `lime_surveys` `t` WHERE `t`.`sid`=457897 LIMIT 1"); console.log("[07:22:40.277][trace][system.db.CDbCommand] Querying SQL: SHOW COLUMNS FROM `lime_surveys_languagesettings`"); console.log("[07:22:40.289][trace][system.db.CDbCommand] Querying SQL: SHOW CREATE TABLE `lime_surveys_languagesettings`"); console.log("[07:22:40.290][trace][system.db.ar.CActiveRecord] Surveys_languagesettings.findByPk()"); console.log("[07:22:40.295][trace][system.db.CDbCommand] Querying SQL: SELECT `t`.`surveyls_survey_id` AS `t0_c0`, `t`.`surveyls_language` AS `t0_c1`, `t`.`surveyls_title` AS `t0_c2`, `t`.`surveyls_description` AS `t0_c3`, `t`.`surveyls_welcometext` AS `t0_c4`, `t`.`surveyls_endtext` AS `t0_c5`, `t`.`surveyls_url` AS `t0_c6`, `t`.`surveyls_urldescription` AS `t0_c7`, `t`.`surveyls_email_invite_subj` AS `t0_c8`, `t`.`surveyls_email_invite` AS `t0_c9`, `t`.`surveyls_email_remind_subj` AS `t0_c10`, `t`.`surveyls_email_remind` AS `t0_c11`, `t`.`surveyls_email_register_subj` AS `t0_c12`, `t`.`surveyls_email_register` AS `t0_c13`, `t`.`surveyls_email_confirm_subj` AS `t0_c14`, `t`.`surveyls_email_confirm` AS `t0_c15`, `t`.`surveyls_dateformat` AS `t0_c16`, `t`.`surveyls_attributecaptions` AS `t0_c17`, `t`.`email_admin_notification_subj` AS `t0_c18`, `t`.`email_admin_notification` AS `t0_c19`, `t`.`email_admin_responses_subj` AS `t0_c20`, `t`.`email_admin_responses` AS `t0_c21`, `t`.`surveyls_numberformat` AS `t0_c22`, `survey`.`sid` AS `t1_c0`, `survey`.`owner_id` AS `t1_c1`, `survey`.`admin` AS `t1_c2`, `survey`.`active` AS `t1_c3`, `survey`.`expires` AS `t1_c4`, `survey`.`startdate` AS `t1_c5`, `survey`.`adminemail` AS `t1_c6`, `survey`.`anonymized` AS `t1_c7`, `survey`.`faxto` AS `t1_c8`, `survey`.`format` AS `t1_c9`, `survey`.`savetimings` AS `t1_c10`, `survey`.`template` AS `t1_c11`, `survey`.`language` AS `t1_c12`, `survey`.`additional_languages` AS `t1_c13`, `survey`.`datestamp` AS `t1_c14`, `survey`.`usecookie` AS `t1_c15`, `survey`.`allowregister` AS `t1_c16`, `survey`.`allowsave` AS `t1_c17`, `survey`.`autonumber_start` AS `t1_c18`, `survey`.`autoredirect` AS `t1_c19`, `survey`.`allowprev` AS `t1_c20`, `survey`.`printanswers` AS `t1_c21`, `survey`.`ipaddr` AS `t1_c22`, `survey`.`refurl` AS `t1_c23`, `survey`.`datecreated` AS `t1_c24`, `survey`.`publicstatistics` AS `t1_c25`, `survey`.`publicgraphs` AS `t1_c26`, `survey`.`listpublic` AS `t1_c27`, `survey`.`htmlemail` AS `t1_c28`, `survey`.`sendconfirmation` AS `t1_c29`, `survey`.`tokenanswerspersistence` AS `t1_c30`, `survey`.`assessments` AS `t1_c31`, `survey`.`usecaptcha` AS `t1_c32`, `survey`.`usetokens` AS `t1_c33`, `survey`.`bounce_email` AS `t1_c34`, `survey`.`attributedescriptions` AS `t1_c35`, `survey`.`emailresponseto` AS `t1_c36`, `survey`.`emailnotificationto` AS `t1_c37`, `survey`.`tokenlength` AS `t1_c38`, `survey`.`showxquestions` AS `t1_c39`, `survey`.`showgroupinfo` AS `t1_c40`, `survey`.`shownoanswer` AS `t1_c41`, `survey`.`showqnumcode` AS `t1_c42`, `survey`.`bouncetime` AS `t1_c43`, `survey`.`bounceprocessing` AS `t1_c44`, `survey`.`bounceaccounttype` AS `t1_c45`, `survey`.`bounceaccounthost` AS `t1_c46`, `survey`.`bounceaccountpass` AS `t1_c47`, `survey`.`bounceaccountencryption` AS `t1_c48`, `survey`.`bounceaccountuser` AS `t1_c49`, `survey`.`showwelcome` AS `t1_c50`, `survey`.`showprogress` AS `t1_c51`, `survey`.`allowjumps` AS `t1_c52`, `survey`.`navigationdelay` AS `t1_c53`, `survey`.`nokeyboard` AS `t1_c54`, `survey`.`alloweditaftercompletion` AS `t1_c55`, `survey`.`googleanalyticsstyle` AS `t1_c56`, `survey`.`googleanalyticsapikey` AS `t1_c57` FROM `lime_surveys_languagesettings` `t` LEFT OUTER JOIN `lime_surveys` `survey` ON (t.surveyls_survey_id = survey.sid) WHERE (`t`.`surveyls_survey_id`=457897 AND `t`.`surveyls_language`=\'en\')"); console.log("[07:22:40.300][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_groups WHERE sid=457897 AND language=\'en\' ORDER BY group_order"); console.log("[07:22:40.302][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1767 AND language=\'en\'"); console.log("[07:22:40.302][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1766 AND language=\'en\'"); console.log("[07:22:40.302][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1774 AND language=\'en\'"); console.log("[07:22:40.303][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1779 AND language=\'en\'"); console.log("[07:22:40.303][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1780 AND language=\'en\'"); console.log("[07:22:40.303][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1781 AND language=\'en\'"); console.log("[07:22:40.303][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1768 AND language=\'en\'"); console.log("[07:22:40.304][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1775 AND language=\'en\'"); console.log("[07:22:40.304][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1769 AND language=\'en\'"); console.log("[07:22:40.304][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1776 AND language=\'en\'"); console.log("[07:22:40.304][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1770 AND language=\'en\'"); console.log("[07:22:40.305][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1777 AND language=\'en\'"); console.log("[07:22:40.305][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1771 AND language=\'en\'"); console.log("[07:22:40.305][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1778 AND language=\'en\'"); console.log("[07:22:40.306][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1772 AND language=\'en\'"); console.log("[07:22:40.306][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions WHERE qid=1773 AND language=\'en\'"); console.log("[07:22:40.306][trace][system.db.CDbCommand] Querying SQL: SHOW TABLES"); console.log("[07:22:40.312][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_groups WHERE sid=457897 AND language=\'en\' ORDER BY group_order"); console.log("[07:22:40.313][trace][system.db.CDbCommand] Querying SQL: SELECT count(*)\n FROM lime_groups INNER JOIN lime_questions ON lime_groups.gid = lime_questions.gid\n WHERE lime_questions.sid=457897\n AND lime_groups.language=\'en\'\n AND lime_questions.language=\'en\'\n AND lime_questions.parent_qid=0\n"); console.log("[07:22:40.317][trace][system.db.CDbCommand] Querying SQL: SELECT count(*)\n FROM lime_questions WHERE type in (\'X\',\'*\')\n AND sid=457897 AND language=\'en\' AND parent_qid=0"); console.log("[07:22:40.324][trace][system.db.CDbCommand] Querying SQL: SHOW COLUMNS FROM `lime_defaultvalues`"); console.log("[07:22:40.331][trace][system.db.CDbCommand] Querying SQL: SHOW CREATE TABLE `lime_defaultvalues`"); console.log("[07:22:40.335][trace][system.db.ar.CActiveRecord] Defaultvalues.findAll()"); console.log("[07:22:40.336][trace][system.db.CDbCommand] Querying SQL: SHOW COLUMNS FROM `lime_questions`"); console.log("[07:22:40.345][trace][system.db.CDbCommand] Querying SQL: SHOW CREATE TABLE `lime_questions`"); console.log("[07:22:40.346][trace][system.db.CDbCommand] Querying SQL: SELECT `t`.`qid` AS `t0_c0`, `t`.`scale_id` AS `t0_c1`, `t`.`sqid` AS `t0_c2`, `t`.`language` AS `t0_c3`, `t`.`specialtype` AS `t0_c4`, `t`.`defaultvalue` AS `t0_c5`, `question`.`qid` AS `t1_c0`, `question`.`parent_qid` AS `t1_c1`, `question`.`sid` AS `t1_c2`, `question`.`gid` AS `t1_c3`, `question`.`type` AS `t1_c4`, `question`.`title` AS `t1_c5`, `question`.`question` AS `t1_c6`, `question`.`preg` AS `t1_c7`, `question`.`help` AS `t1_c8`, `question`.`other` AS `t1_c9`, `question`.`mandatory` AS `t1_c10`, `question`.`question_order` AS `t1_c11`, `question`.`language` AS `t1_c12`, `question`.`scale_id` AS `t1_c13`, `question`.`same_default` AS `t1_c14`, `question`.`relevance` AS `t1_c15` FROM `lime_defaultvalues` `t` LEFT OUTER JOIN `lime_questions` `question` ON (t.qid = question.qid) WHERE (question.sid=457897)"); console.log("[07:22:40.346][trace][system.db.CDbCommand] Querying SQL: SELECT a.qid, a.sqid, a.scale_id, a.specialtype, a.defaultvalue FROM lime_defaultvalues as a, lime_questions as b WHERE a.qid = b.qid AND a.language = b.language AND a.language = \'en\' AND b.same_default=0 AND b.sid = 457897"); console.log("[07:22:40.347][trace][system.db.CDbCommand] Querying SQL: SELECT a.qid, a.sqid, a.scale_id, a.specialtype, a.defaultvalue FROM lime_defaultvalues as a, lime_questions as b WHERE a.qid = b.qid AND a.language = b.language AND a.language = \'en\' AND b.same_default=1 AND b.sid = 457897"); console.log("[07:22:40.347][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM lime_questions as questions, lime_groups as groups WHERE questions.gid=groups.gid AND questions.sid=457897 AND questions.language=\'en\' AND questions.parent_qid=0 AND groups.language=\'en\' ORDER BY group_order, question_order"); console.log("[07:22:40.359][trace][system.db.CDbCommand] Querying SQL: SELECT sq.*, q.other FROM lime_questions as sq, lime_questions as q WHERE sq.parent_qid=q.qid AND q.sid=457897 AND sq.language=\'en\' AND q.language=\'en\' ORDER BY sq.parent_qid, q.question_order,sq.scale_id , sq.question_order"); console.log("[07:22:40.370][trace][system.db.CDbCommand] Querying SQL: SHOW COLUMNS FROM `lime_groups`"); console.log("[07:22:40.376][trace][system.db.CDbCommand] Querying SQL: SHOW CREATE TABLE `lime_groups`"); console.log("[07:22:40.376][trace][system.db.ar.CActiveRecord] Groups.findAll()"); console.log("[07:22:40.376][trace][system.db.CDbCommand] Querying SQL: SELECT * FROM `lime_groups` `t` WHERE (sid=:ycp0 AND language=:ycp1) AND (randomization_group != \'\'). Bound with :ycp0=\'457897\', :ycp1=\'en\'"); console.log("[07:22:40.377][trace][system.db.CDbCommand] Querying SQL: SELECT attr.qid, value FROM lime_question_attributes as attr right join lime_questions as quests on attr.qid=quests.qid WHERE attribute=\'random_group\' and value <> \'\' and sid=457897 GROUP BY attr.qid, value"); console.log("[07:22:40.381][trace][system.db.CDbCommand] Querying SQL: SHOW COLUMNS FROM `lime_survey_url_parameters`"); console.log("[07:22:40.387][trace][system.db.CDbCommand] Querying SQL: SHOW CREATE TABLE `lime_survey_url_parameters`"); console.log("[07:22:40.387][trace][system.db.CDbCommand] Querying SQL: select \'\' as act, up.*,q.title, sq.title as sqtitle, q.question, sq.question as sqquestion from lime_survey_url_parameters up\n left join lime_questions q on q.qid=up.targetqid\n left join lime_questions sq on q.qid=up.targetsqid\n where up.sid=:surveyid. Bound with :surveyid=\'457897\'"); console.groupEnd(); } /*]]>*/ </script> | ||||
Bug heat | 6 | ||||
Complete LimeSurvey version number (& build) | 130103 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | Chrome, FF, IE | ||||
Database type & version | SQL Server 2008 | ||||
Server OS (if known) | Windows 7 and 2008r2 | ||||
Webserver software & version (if known) | Apache 2.4 | ||||
PHP Version | PHP 3.4 | ||||
duplicate of | 07186 | closed | DenisChenu | Preview Question and Preview Question Group buttons give error: Undefined index: refurl |
Updated to Version 2.00+ Build 130108 > Issue still exists |
|
I cannot reproduce. Please attach the survey as .lss file. Thank you. |
|
Happens on ALL surveys for me. Several different servers (different developers). |
|
I am in the process of a new installation on another server from the latest package from LimeSurvey. Will update this ticket after I get the instance going. This seems to be an extreme method - one that I have had to do several times in the past few months to get past errors. |
|
New installation, new database space, and the problem still exists on any survey (even a newly created one). Be sure to navigate down to the question before previewing. |
|
I did a quick look at this value that LimeSurvey is attempting to get out of session. Added to line 52: print_r($_SESSION[$LEMsessid]['refurl']); Output for a survey is always "-" and output for question preview is null. I am wondering if this should be $_SESSION['refurl'] (for line 62 which would return the referring URL)? |
|
This too is associated with the debug setting of the config.php. If I change out the setting from "2" to "0" I am able to preview. This is sad that a debug functionality is impairing functionality. |
|
Fixed for duplicate 07186 and released in build 130115 |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2013-01-08 16:31 | helper | New Issue | |
2013-01-08 16:31 | helper | File Added: 1767.htm | |
2013-01-09 17:07 | helper | Note Added: 23590 | |
2013-01-10 01:50 | c_schmitz | Note Added: 23603 | |
2013-01-10 01:50 | c_schmitz | Assigned To | => c_schmitz |
2013-01-10 01:50 | c_schmitz | Status | new => feedback |
2013-01-10 19:26 | helper | Note Added: 23612 | |
2013-01-10 19:26 | helper | Status | feedback => assigned |
2013-01-10 19:32 | helper | Note Added: 23613 | |
2013-01-10 19:46 | helper | Note Added: 23614 | |
2013-01-11 14:33 | helper | Note Added: 23618 | |
2013-01-14 14:38 | helper | Note Added: 23642 | |
2013-01-15 09:42 | DenisChenu | Relationship added | duplicate of 07186 |
2013-01-15 09:46 | mdekker | Note Added: 23673 | |
2013-01-15 09:46 | mdekker | Status | assigned => closed |
2013-01-15 09:46 | mdekker | Assigned To | c_schmitz => DenisChenu |
2013-01-15 09:46 | mdekker | Resolution | open => fixed |
2013-01-15 09:46 | mdekker | Fixed in Version | => 2.10 |
2013-01-15 09:51 | DenisChenu | Fixed in Version | 2.10 => 2.00+ |
2019-11-01 17:25 | c_schmitz | Category | Survey design => Survey editing |