View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
07161Bug reportsSurvey editingpublic2013-01-15 09:51
Reporterhelper Assigned ToDenisChenu  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00+ 
Fixed in Version2.00+ 
Summary07161: 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

TagsNo 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[&#039;surveyls_numberformat&#039;]);
<span class="ln">51</span>         $radix = $radix[&#039;seperator&#039;];
<span class="ln">52</span> 
<span class="ln">53</span>         $surveyOptions = array(
<span class="ln">54</span>         &#039;active&#039; =&gt; ($thissurvey[&#039;active&#039;] == &#039;Y&#039;),
<span class="ln">55</span>         &#039;allowsave&#039; =&gt; ($thissurvey[&#039;allowsave&#039;] == &#039;Y&#039;),
<span class="ln">56</span>         &#039;anonymized&#039; =&gt; ($thissurvey[&#039;anonymized&#039;] != &#039;N&#039;),
<span class="ln">57</span>         &#039;assessments&#039; =&gt; ($thissurvey[&#039;assessments&#039;] == &#039;Y&#039;),
<span class="ln">58</span>         &#039;datestamp&#039; =&gt; ($thissurvey[&#039;datestamp&#039;] == &#039;Y&#039;),
<span class="ln">59</span>         &#039;hyperlinkSyntaxHighlighting&#039; =&gt; (($LEMdebugLevel &amp; 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>         &#039;ipaddr&#039; =&gt; ($thissurvey[&#039;ipaddr&#039;] == &#039;Y&#039;),
<span class="ln">61</span>         &#039;radix&#039;=&gt;$radix,
<span class="error"><span class="ln error-ln">62</span>         &#039;refurl&#039; =&gt; (($thissurvey[&#039;refurl&#039;] == &quot;Y&quot;) ? $_SESSION[$LEMsessid][&#039;refurl&#039;] : NULL),
</span><span class="ln">63</span>         &#039;savetimings&#039; =&gt; ($thissurvey[&#039;savetimings&#039;] == &quot;Y&quot;),
<span class="ln">64</span>         &#039;surveyls_dateformat&#039; =&gt; (isset($thissurvey[&#039;surveyls_dateformat&#039;]) ? $thissurvey[&#039;surveyls_dateformat&#039;] : 1),
<span class="ln">65</span>         &#039;startlanguage&#039;=&gt;(isset($clang-&gt;langcode) ? $clang-&gt;langcode : $thissurvey[&#039;language&#039;]),
<span class="ln">66</span>         &#039;target&#039; =&gt; Yii::app()-&gt;getConfig(&#039;uploaddir&#039;).DIRECTORY_SEPARATOR.&#039;surveys&#039;.DIRECTORY_SEPARATOR.$thissurvey[&#039;sid&#039;].DIRECTORY_SEPARATOR.&#039;files&#039;.DIRECTORY_SEPARATOR,
<span class="ln">67</span>         &#039;tempdir&#039; =&gt; Yii::app()-&gt;getConfig(&#039;tempdir&#039;).DIRECTORY_SEPARATOR,
<span class="ln">68</span>         &#039;timeadjust&#039; =&gt; (isset($timeadjust) ? $timeadjust : 0),
<span class="ln">69</span>         &#039;token&#039; =&gt; (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 == &#039;group&#039; &amp;&amp; isset($param[&#039;action&#039;]) &amp;&amp; ($param[&#039;action&#039;] == &#039;previewgroup&#039;))
</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>
										&nbsp;C:\etc\Apache\htdocs\MSSQL\application\controllers\survey\index.php(651): <strong>SurveyRuntimeHelper</strong>-><strong>run</strong>(&quot;457897&quot;, array(&quot;surveyid&quot; =&gt; &quot;457897&quot;, &quot;thissurvey&quot; =&gt; array(&quot;sid&quot; =&gt; &quot;457897&quot;, &quot;owner_id&quot; =&gt; &quot;1&quot;, &quot;admin&quot; =&gt; &quot;Dr Miles Thompson&quot;, &quot;active&quot; =&gt; &quot;N&quot;, ...), &quot;thisstep&quot; =&gt; &quot;&quot;, &quot;tokensexist&quot; =&gt; 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(&#039;application.helpers.SurveyRuntimeHelper&#039;);
<span class="ln">650</span>         $tmp = new SurveyRuntimeHelper();
<span class="error"><span class="ln error-ln">651</span>         $tmp-&gt;run($surveyid,$redata);
</span><span class="ln">652</span> 
<span class="ln">653</span>         if (isset($_POST[&#039;saveall&#039;]) || isset($flashmessage))
<span class="ln">654</span>         {            
<span class="ln">655</span>             echo &quot;\t\t&lt;script type=&#039;text/javascript&#039;&gt;
<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>
										&nbsp;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-&gt;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>
										&nbsp;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, &#039;run&#039;);
<span class="ln">72</span>         if($method-&gt;getNumberOfParameters()&gt;0)
<span class="ln">73</span>             return $this-&gt;runWithParamsInternal($this, $method, $params);
<span class="ln">74</span>         else
<span class="error"><span class="ln error-ln">75</span>             return $this-&gt;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>
										&nbsp;C:\etc\Apache\htdocs\MSSQL\framework\web\CController.php(309): <strong>CAction</strong>-><strong>runWithParams</strong>(array(&quot;action&quot; =&gt; &quot;previewquestion&quot;, &quot;sid&quot; =&gt; &quot;457897&quot;, &quot;gid&quot; =&gt; &quot;190&quot;, &quot;qid&quot; =&gt; &quot;1767&quot;))				</div>

				<div class="code"><pre><span class="ln">304</span>     {
<span class="ln">305</span>         $priorAction=$this-&gt;_action;
<span class="ln">306</span>         $this-&gt;_action=$action;
<span class="ln">307</span>         if($this-&gt;beforeAction($action))
<span class="ln">308</span>         {
<span class="error"><span class="ln error-ln">309</span>             if($action-&gt;runWithParams($this-&gt;getActionParams())===false)
</span><span class="ln">310</span>                 $this-&gt;invalidActionParams($action);
<span class="ln">311</span>             else
<span class="ln">312</span>                 $this-&gt;afterAction($action);
<span class="ln">313</span>         }
<span class="ln">314</span>         $this-&gt;_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>
										&nbsp;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-&gt;runAction($action);
</span><span class="ln">288</span>         else
<span class="ln">289</span>         {
<span class="ln">290</span>             $priorAction=$this-&gt;_action;
<span class="ln">291</span>             $this-&gt;_action=$action;
<span class="ln">292</span>             CFilterChain::create($this,$action,$filters)-&gt;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>
										&nbsp;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-&gt;getModule())===null)
<span class="ln">263</span>                 $parent=Yii::app();
<span class="ln">264</span>             if($parent-&gt;beforeControllerAction($this,$action))
<span class="ln">265</span>             {
<span class="error"><span class="ln error-ln">266</span>                 $this-&gt;runActionWithFilters($action,$this-&gt;filters());
</span><span class="ln">267</span>                 $parent-&gt;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-&gt;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>
										&nbsp;C:\etc\Apache\htdocs\MSSQL\framework\web\CWebApplication.php(276): <strong>CController</strong>-><strong>run</strong>(&quot;index&quot;)				</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-&gt;_controller;
<span class="ln">274</span>             $this-&gt;_controller=$controller;
<span class="ln">275</span>             $controller-&gt;init();
<span class="error"><span class="ln error-ln">276</span>             $controller-&gt;run($actionID);
</span><span class="ln">277</span>             $this-&gt;_controller=$oldController;
<span class="ln">278</span>         }
<span class="ln">279</span>         else
<span class="ln">280</span>             throw new CHttpException(404,Yii::t(&#039;yii&#039;,&#039;Unable to resolve the request &quot;{route}&quot;.&#039;,
<span class="ln">281</span>                 array(&#039;{route}&#039;=&gt;$route===&#039;&#039;?$this-&gt;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>
										&nbsp;C:\etc\Apache\htdocs\MSSQL\framework\web\CWebApplication.php(135): <strong>CWebApplication</strong>-><strong>runController</strong>(&quot;survey/index/action/previewquestion/sid/457897/gid/190/qid/1767&quot;)				</div>

				<div class="code"><pre><span class="ln">130</span>             foreach(array_splice($this-&gt;catchAllRequest,1) as $name=&gt;$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-&gt;getUrlManager()-&gt;parseUrl($this-&gt;getRequest());
<span class="error"><span class="ln error-ln">135</span>         $this-&gt;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>
										&nbsp;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-&gt;hasEventHandler(&#039;onBeginRequest&#039;))
<span class="ln">161</span>             $this-&gt;onBeginRequest(new CEvent($this));
<span class="error"><span class="ln error-ln">162</span>         $this-&gt;processRequest();
</span><span class="ln">163</span>         if($this-&gt;hasEventHandler(&#039;onEndRequest&#039;))
<span class="ln">164</span>             $this-&gt;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>
										&nbsp;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 . &#039;yii&#039; . EXT;
<span class="ln">176</span> require_once APPPATH . &#039;core/LSYii_Application&#039; . EXT;
<span class="ln">177</span> 
<span class="error"><span class="ln error-ln">178</span> Yii::createApplication(&#039;LSYii_Application&#039;, APPPATH . &#039;config/config&#039; . EXT)-&gt;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>
1767.htm (30,795 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)130103
I will donate to the project if issue is resolvedNo
BrowserChrome, FF, IE
Database type & versionSQL Server 2008
Server OS (if known)Windows 7 and 2008r2
Webserver software & version (if known)Apache 2.4
PHP VersionPHP 3.4

Relationships

duplicate of 07186 closedDenisChenu Preview Question and Preview Question Group buttons give error: Undefined index: refurl 

Users monitoring this issue

There are no users monitoring this issue.

Activities

helper

helper

2013-01-09 17:07

reporter   ~23590

Updated to Version 2.00+ Build 130108 > Issue still exists

c_schmitz

c_schmitz

2013-01-10 01:50

administrator   ~23603

I cannot reproduce. Please attach the survey as .lss file. Thank you.

helper

helper

2013-01-10 19:26

reporter   ~23612

Happens on ALL surveys for me. Several different servers (different developers).

helper

helper

2013-01-10 19:32

reporter   ~23613

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.

helper

helper

2013-01-10 19:46

reporter   ~23614

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.

helper

helper

2013-01-11 14:33

reporter   ~23618

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)?

helper

helper

2013-01-14 14:38

reporter   ~23642

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.

mdekker

mdekker

2013-01-15 09:46

reporter   ~23673

Fixed for duplicate 07186 and released in build 130115

Issue History

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