View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
10953Bug reportsSurvey editingpublic2016-04-15 10:24
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version2.50.x 
Target Version2.50.xFixed in Version2.50.x 
Summary10953: Using mktime() EM function broke survey admin
Description

Debug=2:
Add a question with {mktime()} : save
PHP send notice

Steps To Reproduce

Import survey and check logic file with debug=2

Additional Information

Problem is "simple survey admin" can not fix the issue easily.

For "imple survey admin" : view question send notice , he can go to home page, survey, list question and here clikc edit.

In 2.06 : must set config to 0 or update DB directly (no other way)

Since PHP 5.1

TagsNo tags attached.
Attached Files
PHP error.html (49,167 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 error</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 error</h1>

	<p class="message">
		mktime(): You should be using the time() function instead	</p>

	<div class="source">
		<p class="file">/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(2030)</p>
		<div class="code"><pre><span class="ln">2018</span>                                 $result = call_user_func_array('sprintf',$params);
<span class="ln">2019</span>                                 break;
<span class="ln">2020</span>                             default:
<span class="ln">2021</span>                                 $result = $funcName($params);
<span class="ln">2022</span>                                 break;
<span class="ln">2023</span>                         }
<span class="ln">2024</span>                     }
<span class="ln">2025</span>                 // Call  function with the params passed
<span class="ln">2026</span>                 } elseif (in_array($argsPassed, $numArgsAllowed)) {
<span class="ln">2027</span>                     switch ($argsPassed) {
<span class="ln">2028</span>                     case 0:
<span class="ln">2029</span>                         if (!$this-&gt;RDP_onlyparse) {
<span class="error"><span class="ln error-ln">2030</span>                             $result = $funcName();
</span><span class="ln">2031</span>                         }
<span class="ln">2032</span>                         break;
<span class="ln">2033</span>                     case 1:
<span class="ln">2034</span>                         if (!$this-&gt;RDP_onlyparse) {
<span class="ln">2035</span>                             switch($funcName) {
<span class="ln">2036</span>                                 case 'acos':
<span class="ln">2037</span>                                 case 'asin':
<span class="ln">2038</span>                                 case 'atan':
<span class="ln">2039</span>                                 case 'cos':
<span class="ln">2040</span>                                 case 'exp':
<span class="ln">2041</span>                                 case 'is_nan':
<span class="ln">2042</span>                                 case 'sin':
</pre></div>	</div>

	<div class="traces">
		<h2>Stack Trace</h2>
				<table style="width:100%;">
						<tbody><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;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(2030): <strong>mktime</strong>()				</div>

				<div class="code"><pre><span class="ln">2025</span>                 // Call  function with the params passed
<span class="ln">2026</span>                 } elseif (in_array($argsPassed, $numArgsAllowed)) {
<span class="ln">2027</span>                     switch ($argsPassed) {
<span class="ln">2028</span>                     case 0:
<span class="ln">2029</span>                         if (!$this-&gt;RDP_onlyparse) {
<span class="error"><span class="ln error-ln">2030</span>                             $result = $funcName();
</span><span class="ln">2031</span>                         }
<span class="ln">2032</span>                         break;
<span class="ln">2033</span>                     case 1:
<span class="ln">2034</span>                         if (!$this-&gt;RDP_onlyparse) {
<span class="ln">2035</span>                             switch($funcName) {
</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;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(814): <strong>ExpressionManager</strong>-&gt;<strong>RDP_RunFunction</strong>(array("mktime", 0, "WORD"), array())				</div>

				<div class="code"><pre><span class="ln">809</span>                 }
<span class="ln">810</span>             }
<span class="ln">811</span>             if ($token3[2] == 'RP')
<span class="ln">812</span>             {
<span class="ln">813</span>                 ++$this-&gt;RDP_pos;   // consume the token so can process next clause
<span class="error"><span class="ln error-ln">814</span>                 return $this-&gt;RDP_RunFunction($funcNameToken,$params);
</span><span class="ln">815</span>             }
<span class="ln">816</span>             else
<span class="ln">817</span>             {
<span class="ln">818</span>                 if ($this-&gt;RDP_EvaluateExpression())
<span class="ln">819</span>                 {
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#2			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(568): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateFunction</strong>()				</div>

				<div class="code"><pre><span class="ln">563</span>                 break;
<span class="ln">564</span>             case 'WORD':
<span class="ln">565</span>             case 'SGQA':
<span class="ln">566</span>                 if (($this-&gt;RDP_pos + 1) &lt; $this-&gt;RDP_count and $this-&gt;RDP_tokens[($this-&gt;RDP_pos + 1)][2] == 'LP')
<span class="ln">567</span>                 {
<span class="error"><span class="ln error-ln">568</span>                     return $this-&gt;RDP_EvaluateFunction();
</span><span class="ln">569</span>                 }
<span class="ln">570</span>                 else
<span class="ln">571</span>                 {
<span class="ln">572</span>                     if ($this-&gt;RDP_isValidVariable($token[0]))
<span class="ln">573</span>                     {
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#3			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(997): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateConstantVarOrFunction</strong>()				</div>

				<div class="code"><pre><span class="ln">0992</span>             }
<span class="ln">0993</span>         }
<span class="ln">0994</span>         else
<span class="ln">0995</span>         {
<span class="ln">0996</span>             --$this-&gt;RDP_pos;
<span class="error"><span class="ln error-ln">0997</span>             return $this-&gt;RDP_EvaluateConstantVarOrFunction();
</span><span class="ln">0998</span>         }
<span class="ln">0999</span>     }
<span class="ln">1000</span> 
<span class="ln">1001</span>     /**
<span class="ln">1002</span>      * Process "a op b" where op in (lt, gt, le, ge, &lt;, &gt;, &lt;=, &gt;=)
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#4			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(1079): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluatePrimaryExpression</strong>()				</div>

				<div class="code"><pre><span class="ln">1074</span>             }
<span class="ln">1075</span>         }
<span class="ln">1076</span>         else
<span class="ln">1077</span>         {
<span class="ln">1078</span>             --$this-&gt;RDP_pos;
<span class="error"><span class="ln error-ln">1079</span>             return $this-&gt;RDP_EvaluatePrimaryExpression();
</span><span class="ln">1080</span>         }
<span class="ln">1081</span>     }
<span class="ln">1082</span> 
<span class="ln">1083</span>     /**
<span class="ln">1084</span>      * Returns array of all JavaScript-equivalent variable names used when parsing a string via sProcessStringContainingExpressions
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#5			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(923): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateUnaryExpression</strong>()				</div>

				<div class="code"><pre><span class="ln">918</span>      * @return boolean - true if success, false if any error occurred
<span class="ln">919</span>      */
<span class="ln">920</span> 
<span class="ln">921</span>     private function RDP_EvaluateMultiplicativeExpression()
<span class="ln">922</span>     {
<span class="error"><span class="ln error-ln">923</span>         if (!$this-&gt;RDP_EvaluateUnaryExpression())
</span><span class="ln">924</span>         {
<span class="ln">925</span>             return  false;
<span class="ln">926</span>         }
<span class="ln">927</span>         while (($this-&gt;RDP_pos + 1) &lt; $this-&gt;RDP_count)
<span class="ln">928</span>         {
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#6			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(503): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateMultiplicativeExpression</strong>()				</div>

				<div class="code"><pre><span class="ln">498</span>      * Process "a op b" where op in (+,-,concatenate)
<span class="ln">499</span>      * @return boolean - true if success, false if any error occurred
<span class="ln">500</span>      */
<span class="ln">501</span>     private function RDP_EvaluateAdditiveExpression()
<span class="ln">502</span>     {
<span class="error"><span class="ln error-ln">503</span>         if (!$this-&gt;RDP_EvaluateMultiplicativeExpression())
</span><span class="ln">504</span>         {
<span class="ln">505</span>             return false;
<span class="ln">506</span>         }
<span class="ln">507</span>         while (($this-&gt;RDP_pos + 1) &lt; $this-&gt;RDP_count)
<span class="ln">508</span>         {
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#7			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(1007): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateAdditiveExpression</strong>()				</div>

				<div class="code"><pre><span class="ln">1002</span>      * Process "a op b" where op in (lt, gt, le, ge, &lt;, &gt;, &lt;=, &gt;=)
<span class="ln">1003</span>      * @return boolean - true if success, false if any error occurred
<span class="ln">1004</span>      */
<span class="ln">1005</span>     private function RDP_EvaluateRelationExpression()
<span class="ln">1006</span>     {
<span class="error"><span class="ln error-ln">1007</span>         if (!$this-&gt;RDP_EvaluateAdditiveExpression())
</span><span class="ln">1008</span>         {
<span class="ln">1009</span>             return false;
<span class="ln">1010</span>         }
<span class="ln">1011</span>         while (($this-&gt;RDP_pos + 1) &lt; $this-&gt;RDP_count)
<span class="ln">1012</span>         {
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#8			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(618): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateRelationExpression</strong>()				</div>

				<div class="code"><pre><span class="ln">613</span>      * Process "a == b", "a eq b", "a != b", "a ne b"
<span class="ln">614</span>      * @return boolean - true if success, false if any error occurred
<span class="ln">615</span>      */
<span class="ln">616</span>     private function RDP_EvaluateEqualityExpression()
<span class="ln">617</span>     {
<span class="error"><span class="ln error-ln">618</span>         if (!$this-&gt;RDP_EvaluateRelationExpression())
</span><span class="ln">619</span>         {
<span class="ln">620</span>             return false;
<span class="ln">621</span>         }
<span class="ln">622</span>         while (($this-&gt;RDP_pos + 1) &lt; $this-&gt;RDP_count)
<span class="ln">623</span>         {
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#9			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(843): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateEqualityExpression</strong>()				</div>

				<div class="code"><pre><span class="ln">838</span>      * @return boolean - true if success, false if any error occurred
<span class="ln">839</span>      */
<span class="ln">840</span> 
<span class="ln">841</span>     private function RDP_EvaluateLogicalAndExpression()
<span class="ln">842</span>     {
<span class="error"><span class="ln error-ln">843</span>         if (!$this-&gt;RDP_EvaluateEqualityExpression())
</span><span class="ln">844</span>         {
<span class="ln">845</span>             return false;
<span class="ln">846</span>         }
<span class="ln">847</span>         while (($this-&gt;RDP_pos + 1) &lt; $this-&gt;RDP_count)
<span class="ln">848</span>         {
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#10			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(881): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateLogicalAndExpression</strong>()				</div>

				<div class="code"><pre><span class="ln">876</span>      * Process "a || b" or "a or b"
<span class="ln">877</span>      * @return boolean - true if success, false if any error occurred
<span class="ln">878</span>      */
<span class="ln">879</span>     private function RDP_EvaluateLogicalOrExpression()
<span class="ln">880</span>     {
<span class="error"><span class="ln error-ln">881</span>         if (!$this-&gt;RDP_EvaluateLogicalAndExpression())
</span><span class="ln">882</span>         {
<span class="ln">883</span>             return false;
<span class="ln">884</span>         }
<span class="ln">885</span>         while (($this-&gt;RDP_pos + 1) &lt; $this-&gt;RDP_count)
<span class="ln">886</span>         {
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#11			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(704): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateLogicalOrExpression</strong>()				</div>

				<div class="code"><pre><span class="ln">699</span>             }
<span class="ln">700</span>             else
<span class="ln">701</span>             {
<span class="ln">702</span>                 // not an assignment expression, so try something else
<span class="ln">703</span>                 $this-&gt;RDP_pos -= 2;
<span class="error"><span class="ln error-ln">704</span>                 return $this-&gt;RDP_EvaluateLogicalOrExpression();
</span><span class="ln">705</span>             }
<span class="ln">706</span>         }
<span class="ln">707</span>         else
<span class="ln">708</span>         {
<span class="ln">709</span>             return $this-&gt;RDP_EvaluateLogicalOrExpression();
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#12			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(720): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateExpression</strong>()				</div>

				<div class="code"><pre><span class="ln">715</span>      * @return boolean - true if success, false if any error occurred
<span class="ln">716</span>      */
<span class="ln">717</span> 
<span class="ln">718</span>     private function RDP_EvaluateExpressions()
<span class="ln">719</span>     {
<span class="error"><span class="ln error-ln">720</span>         $evalStatus = $this-&gt;RDP_EvaluateExpression();
</span><span class="ln">721</span>         if (!$evalStatus)
<span class="ln">722</span>         {
<span class="ln">723</span>             return false;
<span class="ln">724</span>         }
<span class="ln">725</span> 
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#13			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(466): <strong>ExpressionManager</strong>-&gt;<strong>RDP_EvaluateExpressions</strong>()				</div>

				<div class="code"><pre><span class="ln">461</span>         $this-&gt;jsExpression = NULL;
<span class="ln">462</span> 
<span class="ln">463</span>         if ($this-&gt;HasSyntaxErrors()) {
<span class="ln">464</span>             return false;
<span class="ln">465</span>         }
<span class="error"><span class="ln error-ln">466</span>         elseif ($this-&gt;RDP_EvaluateExpressions())
</span><span class="ln">467</span>         {
<span class="ln">468</span>             if ($this-&gt;RDP_pos &lt; $this-&gt;RDP_count)
<span class="ln">469</span>             {
<span class="ln">470</span>                 $this-&gt;RDP_AddError(gT("Extra tokens found"), $this-&gt;RDP_tokens[$this-&gt;RDP_pos]);
<span class="ln">471</span>                 return false;
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#14			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(1880): <strong>ExpressionManager</strong>-&gt;<strong>RDP_Evaluate</strong>("mktime()")				</div>

				<div class="code"><pre><span class="ln">1875</span>                 $prettyPrintParts[] = $stringPart[0];
<span class="ln">1876</span>             }
<span class="ln">1877</span>             else {
<span class="ln">1878</span>                 ++$this-&gt;substitutionNum;
<span class="ln">1879</span>                 $expr = $this-&gt;ExpandThisVar(substr($stringPart[0],1,-1));
<span class="error"><span class="ln error-ln">1880</span>                 if ($this-&gt;RDP_Evaluate($expr))
</span><span class="ln">1881</span>                 {
<span class="ln">1882</span>                     $resolvedPart = $this-&gt;GetResult();
<span class="ln">1883</span>                 }
<span class="ln">1884</span>                 else
<span class="ln">1885</span>                 {
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#15			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_core_helper.php(1843): <strong>ExpressionManager</strong>-&gt;<strong>sProcessStringContainingExpressionsHelper</strong>("{mktime()}", "51290", false)				</div>

				<div class="code"><pre><span class="ln">1838</span>         $errors = array();
<span class="ln">1839</span> 
<span class="ln">1840</span>         for($i=1;$i&lt;=$numRecursionLevels;++$i)
<span class="ln">1841</span>         {
<span class="ln">1842</span>             // TODO - Since want to use &lt;span&gt; for dynamic substitution, what if there are recursive substititons?
<span class="error"><span class="ln error-ln">1843</span>             $result = $this-&gt;sProcessStringContainingExpressionsHelper($result ,$questionNum, $staticReplacement);
</span><span class="ln">1844</span>             if ($i == $whichPrettyPrintIteration)
<span class="ln">1845</span>             {
<span class="ln">1846</span>                 $prettyPrint = $this-&gt;prettyPrintSource;
<span class="ln">1847</span>             }
<span class="ln">1848</span>             $errors = array_merge($errors, $this-&gt;RDP_errs);
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#16			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										
&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/expressions/em_manager_helper.php(4416):
 <strong>ExpressionManager</strong>-&gt;<strong>sProcessStringContainingExpressions</strong>("{mktime()}", "51290", 3, 1, ...)				</div>

				<div class="code"><pre><span class="ln">4411</span>                 $questionSeq = isset($LEM-&gt;questionId2questionSeq[$questionNum]) ? $LEM-&gt;questionId2questionSeq[$questionNum] : -1;
<span class="ln">4412</span>                 $groupSeq = isset($LEM-&gt;questionId2groupSeq[$questionNum]) ? $LEM-&gt;questionId2groupSeq[$questionNum] : -1;
<span class="ln">4413</span>             }
<span class="ln">4414</span>             $stringToParse = $string;   // decode called later htmlspecialchars_decode($string,ENT_QUOTES);
<span class="ln">4415</span>             $qnum = is_null($questionNum) ? 0 : $questionNum;
<span class="error"><span class="ln error-ln">4416</span>             $result = $LEM-&gt;em-&gt;sProcessStringContainingExpressions($stringToParse,$qnum, $numRecursionLevels, $whichPrettyPrintIteration, $groupSeq, $questionSeq, $staticReplacement);
</span><span class="ln">4417</span> 
<span class="ln">4418</span>             if ($timeit) {
<span class="ln">4419</span>                 $LEM-&gt;runtimeTimings[] = array(__METHOD__,(microtime(true) - $now));
<span class="ln">4420</span>             }
<span class="ln">4421</span> 
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#17			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/replacements_helper.php(718): <strong>LimeExpressionManager</strong>::<strong>ProcessString</strong>("{mktime()}",
 "51290", array("ACTIVE" =&gt; false, "ANSWERSCLEARED" =&gt; "Answers 
cleared", "ASSESSMENTS" =&gt; "", "ASSESSMENT_CURRENT_TOTAL" =&gt; "", 
...), false, ...)				</div>

				<div class="code"><pre><span class="ln">713</span>     {
<span class="ln">714</span>         $doTheseReplacements = $coreReplacements;
<span class="ln">715</span>     }
<span class="ln">716</span> 
<span class="ln">717</span>     // Now do all of the replacements - In rare cases, need to do 3 deep recursion, that that is default
<span class="error"><span class="ln error-ln">718</span>     $line = LimeExpressionManager::ProcessString($line, $questionNum, $doTheseReplacements, false, 3, 1, false, true, $bStaticReplacement);
</span><span class="ln">719</span> 
<span class="ln">720</span>     return $line;
<span class="ln">721</span> 
<span class="ln">722</span> }
<span class="ln">723</span> 
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#18			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										
&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/views/admin/survey/Question/question_view.php(38):
 <strong>templatereplace</strong>("{mktime()}", array(), null, "Unspecified", ...)				</div>

				<div class="code"><pre><span class="ln">33</span>                             &lt;?php eT("Question:"); ?&gt;
<span class="ln">34</span>                         &lt;/strong&gt;
<span class="ln">35</span>                     &lt;/td&gt;
<span class="ln">36</span>                     &lt;td&gt;
<span class="ln">37</span>                         &lt;?php
<span class="error"><span class="ln error-ln">38</span>                             templatereplace($qrrow['question'],array(),$aReplacementData,'Unspecified', false ,$qid);
</span><span class="ln">39</span>                             echo viewHelper::stripTagsEM(LimeExpressionManager::GetLastPrettyPrintExpression());
<span class="ln">40</span>                         ?&gt;
<span class="ln">41</span>                     &lt;/td&gt;
<span class="ln">42</span>                 &lt;/tr&gt;
<span class="ln">43</span> 
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#19			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(126): <strong>require</strong>("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...")				</div>

				<div class="code"><pre><span class="ln">121</span>             $data=$_data_;
<span class="ln">122</span>         if($_return_)
<span class="ln">123</span>         {
<span class="ln">124</span>             ob_start();
<span class="ln">125</span>             ob_implicit_flush(false);
<span class="error"><span class="ln error-ln">126</span>             require($_viewFile_);
</span><span class="ln">127</span>             return ob_get_clean();
<span class="ln">128</span>         }
<span class="ln">129</span>         else
<span class="ln">130</span>             require($_viewFile_);
<span class="ln">131</span>     }
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#20			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CBaseController.php(95): <strong>CBaseController</strong>-&gt;<strong>renderInternal</strong>("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...",
 array("surveyid" =&gt; "516953", "gid" =&gt; "2638", "qid" =&gt; 
"51290", "qct" =&gt; 0, ...), true)				</div>

				<div class="code"><pre><span class="ln">090</span>     {
<span class="ln">091</span>         $widgetCount=count($this-&gt;_widgetStack);
<span class="ln">092</span>         if(($renderer=Yii::app()-&gt;getViewRenderer())!==null &amp;&amp; $renderer-&gt;fileExtension==='.'.CFileHelper::getExtension($viewFile))
<span class="ln">093</span>             $content=$renderer-&gt;renderFile($this,$viewFile,$data,$return);
<span class="ln">094</span>         else
<span class="error"><span class="ln error-ln">095</span>             $content=$this-&gt;renderInternal($viewFile,$data,$return);
</span><span class="ln">096</span>         if(count($this-&gt;_widgetStack)===$widgetCount)
<span class="ln">097</span>             return $content;
<span class="ln">098</span>         else
<span class="ln">099</span>         {
<span class="ln">100</span>             $widget=end($this-&gt;_widgetStack);
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#21			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(869): <strong>CBaseController</strong>-&gt;<strong>renderFile</strong>("/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/...",
 array("surveyid" =&gt; "516953", "gid" =&gt; "2638", "qid" =&gt; 
"51290", "qct" =&gt; 0, ...), true)				</div>

				<div class="code"><pre><span class="ln">864</span>      */
<span class="ln">865</span>     public function renderPartial($view,$data=null,$return=false,$processOutput=false)
<span class="ln">866</span>     {
<span class="ln">867</span>         if(($viewFile=$this-&gt;getViewFile($view))!==false)
<span class="ln">868</span>         {
<span class="error"><span class="ln error-ln">869</span>             $output=$this-&gt;renderFile($viewFile,$data,true);
</span><span class="ln">870</span>             if($processOutput)
<span class="ln">871</span>                 $output=$this-&gt;processOutput($output);
<span class="ln">872</span>             if($return)
<span class="ln">873</span>                 return $output;
<span class="ln">874</span>             else
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#22			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(314): <strong>CController</strong>-&gt;<strong>renderPartial</strong>("/admin/survey/Question/question_view",
 array("surveyid" =&gt; "516953", "gid" =&gt; "2638", "qid" =&gt; 
"51290", "qct" =&gt; 0, ...))				</div>

				<div class="code"><pre><span class="ln">309</span>         {
<span class="ln">310</span>             if (empty($sViewKey) || !in_array($sViewKey, array('message', 'output')))
<span class="ln">311</span>             {
<span class="ln">312</span>                 if (is_numeric($sViewKey))
<span class="ln">313</span>                 {
<span class="error"><span class="ln error-ln">314</span>                     Yii::app()-&gt;getController()-&gt;renderPartial($sViewPath . $viewUrl, $aData);
</span><span class="ln">315</span>                 }
<span class="ln">316</span>                 elseif (is_array($viewUrl))
<span class="ln">317</span>                 {
<span class="ln">318</span>                     foreach ($viewUrl as $aSubData)
<span class="ln">319</span>                     {
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#23			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/questions.php(1752): <strong>Survey_Common_Action</strong>-&gt;<strong>_renderWrappedTemplate</strong>("survey/Question",
 "question_view", array("surveyid" =&gt; "516953", "gid" =&gt; "2638", 
"qid" =&gt; "51290", "qct" =&gt; 0, ...))				</div>

				<div class="code"><pre><span class="ln">1747</span>     * @param string|array $aViewUrls View url(s)
<span class="ln">1748</span>     * @param array $aData Data to be passed on. Optional.
<span class="ln">1749</span>     */
<span class="ln">1750</span>     protected function _renderWrappedTemplate($sAction = 'survey/Question', $aViewUrls = array(), $aData = array())
<span class="ln">1751</span>     {
<span class="error"><span class="ln error-ln">1752</span>         parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
</span><span class="ln">1753</span>     }
<span class="ln">1754</span> 
<span class="ln">1755</span>     /**
<span class="ln">1756</span>      * Show error and redirect back if survey is active
<span class="ln">1757</span>      *
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#24			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/admin/questions.php(133): <strong>questions</strong>-&gt;<strong>_renderWrappedTemplate</strong>("survey/Question",
 "question_view", array("surveyid" =&gt; "516953", "gid" =&gt; "2638", 
"qid" =&gt; "51290", "qct" =&gt; 0, ...))				</div>

				<div class="code"><pre><span class="ln">128</span>         $setting_entry = 'last_question_'.Yii::app()-&gt;user-&gt;getId().'_'.$iSurveyID.'_gid';
<span class="ln">129</span>         setGlobalSetting($setting_entry, $gid);
<span class="ln">130</span> 
<span class="ln">131</span>         $aData['surveyIsActive'] = $survey-&gt;active !== 'N';
<span class="ln">132</span> 
<span class="error"><span class="ln error-ln">133</span>         $this-&gt;_renderWrappedTemplate('survey/Question', 'question_view', $aData);
</span><span class="ln">134</span>     }
<span class="ln">135</span> 
<span class="ln">136</span>     /**
<span class="ln">137</span>      * Display import view
<span class="ln">138</span>      */
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#25			</td>
			<td class="content">
				<div class="trace-file">
										&nbsp;unknown(0): <strong>questions</strong>-&gt;<strong>view</strong>("516953", "2638", "51290")				</div>

							</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#26			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/actions/CAction.php(109): <strong>ReflectionMethod</strong>-&gt;<strong>invokeArgs</strong>(questions, array("516953", "2638", "51290"))				</div>

				<div class="code"><pre><span class="ln">104</span>             elseif($param-&gt;isDefaultValueAvailable())
<span class="ln">105</span>                 $ps[]=$param-&gt;getDefaultValue();
<span class="ln">106</span>             else
<span class="ln">107</span>                 return false;
<span class="ln">108</span>         }
<span class="error"><span class="ln error-ln">109</span>         $method-&gt;invokeArgs($object,$ps);
</span><span class="ln">110</span>         return true;
<span class="ln">111</span>     }
<span class="ln">112</span> }
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#27			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/core/Survey_Common_Action.php(101): <strong>CAction</strong>-&gt;<strong>runWithParamsInternal</strong>(questions,
 ReflectionMethod, array("surveyid" =&gt; "516953", "gid" =&gt; "2638", 
"qid" =&gt; "51290", "sa" =&gt; "view", ...))				</div>

				<div class="code"><pre><span class="ln">096</span>             $oMethod = new ReflectionMethod($this, $sDefault);
<span class="ln">097</span>         }
<span class="ln">098</span> 
<span class="ln">099</span>         // We're all good to go, let's execute it
<span class="ln">100</span>         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
<span class="error"><span class="ln error-ln">101</span>         return parent::runWithParamsInternal($this, $oMethod, $params);
</span><span class="ln">102</span>     }
<span class="ln">103</span> 
<span class="ln">104</span>     /**
<span class="ln">105</span>     * Some functions have different parameters, which are just an alias of the
<span class="ln">106</span>     * usual parameters we're getting in the url. This function just populates
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#28			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(308): <strong>Survey_Common_Action</strong>-&gt;<strong>runWithParams</strong>(array("surveyid" =&gt; "516953", "gid" =&gt; "2638", "qid" =&gt; "51290", "sa" =&gt; "view"))				</div>

				<div class="code"><pre><span class="ln">303</span>     {
<span class="ln">304</span>         $priorAction=$this-&gt;_action;
<span class="ln">305</span>         $this-&gt;_action=$action;
<span class="ln">306</span>         if($this-&gt;beforeAction($action))
<span class="ln">307</span>         {
<span class="error"><span class="ln error-ln">308</span>             if($action-&gt;runWithParams($this-&gt;getActionParams())===false)
</span><span class="ln">309</span>                 $this-&gt;invalidActionParams($action);
<span class="ln">310</span>             else
<span class="ln">311</span>                 $this-&gt;afterAction($action);
<span class="ln">312</span>         }
<span class="ln">313</span>         $this-&gt;_action=$priorAction;
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#29			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(286): <strong>CController</strong>-&gt;<strong>runAction</strong>(questions)				</div>

				<div class="code"><pre><span class="ln">281</span>      * @see runAction
<span class="ln">282</span>      */
<span class="ln">283</span>     public function runActionWithFilters($action,$filters)
<span class="ln">284</span>     {
<span class="ln">285</span>         if(empty($filters))
<span class="error"><span class="ln error-ln">286</span>             $this-&gt;runAction($action);
</span><span class="ln">287</span>         else
<span class="ln">288</span>         {
<span class="ln">289</span>             $priorAction=$this-&gt;_action;
<span class="ln">290</span>             $this-&gt;_action=$action;
<span class="ln">291</span>             CFilterChain::create($this,$action,$filters)-&gt;run();
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#30			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CController.php(265): <strong>CController</strong>-&gt;<strong>runActionWithFilters</strong>(questions, array())				</div>

				<div class="code"><pre><span class="ln">260</span>         {
<span class="ln">261</span>             if(($parent=$this-&gt;getModule())===null)
<span class="ln">262</span>                 $parent=Yii::app();
<span class="ln">263</span>             if($parent-&gt;beforeControllerAction($this,$action))
<span class="ln">264</span>             {
<span class="error"><span class="ln error-ln">265</span>                 $this-&gt;runActionWithFilters($action,$this-&gt;filters());
</span><span class="ln">266</span>                 $parent-&gt;afterControllerAction($this,$action);
<span class="ln">267</span>             }
<span class="ln">268</span>         }
<span class="ln">269</span>         else
<span class="ln">270</span>             $this-&gt;missingAction($actionID);
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#31			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/AdminController.php(161): <strong>CController</strong>-&gt;<strong>run</strong>("questions")				</div>

				<div class="code"><pre><span class="ln">156</span>                     $this-&gt;redirect(array('/admin/authentication/sa/login'));
<span class="ln">157</span>                 }
<span class="ln">158</span> 
<span class="ln">159</span>             }
<span class="ln">160</span> 
<span class="error"><span class="ln error-ln">161</span>             return parent::run($action);
</span><span class="ln">162</span>     }
<span class="ln">163</span> 
<span class="ln">164</span>     /**
<span class="ln">165</span>     * Routes all the actions to their respective places
<span class="ln">166</span>     *
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#32			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(282): <strong>AdminController</strong>-&gt;<strong>run</strong>("questions")				</div>

				<div class="code"><pre><span class="ln">277</span>         {
<span class="ln">278</span>             list($controller,$actionID)=$ca;
<span class="ln">279</span>             $oldController=$this-&gt;_controller;
<span class="ln">280</span>             $this-&gt;_controller=$controller;
<span class="ln">281</span>             $controller-&gt;init();
<span class="error"><span class="ln error-ln">282</span>             $controller-&gt;run($actionID);
</span><span class="ln">283</span>             $this-&gt;_controller=$oldController;
<span class="ln">284</span>         }
<span class="ln">285</span>         else
<span class="ln">286</span>             throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
<span class="ln">287</span>                 array('{route}'=&gt;$route===''?$this-&gt;defaultController:$route)));
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#33			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-&gt;<strong>runController</strong>("admin/questions/sa/view")				</div>

				<div class="code"><pre><span class="ln">136</span>             foreach(array_splice($this-&gt;catchAllRequest,1) as $name=&gt;$value)
<span class="ln">137</span>                 $_GET[$name]=$value;
<span class="ln">138</span>         }
<span class="ln">139</span>         else
<span class="ln">140</span>             $route=$this-&gt;getUrlManager()-&gt;parseUrl($this-&gt;getRequest());
<span class="error"><span class="ln error-ln">141</span>         $this-&gt;runController($route);
</span><span class="ln">142</span>     }
<span class="ln">143</span> 
<span class="ln">144</span>     /**
<span class="ln">145</span>      * Registers the core application components.
<span class="ln">146</span>      * This method overrides the parent implementation by registering additional core components.
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#34			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-&gt;<strong>processRequest</strong>()				</div>

				<div class="code"><pre><span class="ln">180</span>     public function run()
<span class="ln">181</span>     {
<span class="ln">182</span>         if($this-&gt;hasEventHandler('onBeginRequest'))
<span class="ln">183</span>             $this-&gt;onBeginRequest(new CEvent($this));
<span class="ln">184</span>         register_shutdown_function(array($this,'end'),0,false);
<span class="error"><span class="ln error-ln">185</span>         $this-&gt;processRequest();
</span><span class="ln">186</span>         if($this-&gt;hasEventHandler('onEndRequest'))
<span class="ln">187</span>             $this-&gt;onEndRequest(new CEvent($this));
<span class="ln">188</span>     }
<span class="ln">189</span> 
<span class="ln">190</span>     /**
</pre></div>			</td>
		</tr>
						<tr class="trace app collapsed">
			<td class="number">
				#35			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/index.php(211): <strong>CApplication</strong>-&gt;<strong>run</strong>()				</div>

				<div class="code"><pre><span class="ln">206</span>         die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath));
<span class="ln">207</span>     }
<span class="ln">208</span> }
<span class="ln">209</span> 
<span class="ln">210</span> Yii::$enableIncludePath = false;
<span class="error"><span class="ln error-ln">211</span> Yii::createApplication('LSYii_Application', $config)-&gt;run();
</span><span class="ln">212</span> 
<span class="ln">213</span> /* End of file index.php */
<span class="ln">214</span> /* Location: ./index.php */
</pre></div>			</td>
		</tr>
				</tbody></table>
	</div>

	<div class="version">
		2016-04-14 18:05:57 Apache/2.2.22 (Debian) <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.17	</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>
PHP error.html (49,167 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)20160416
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)apache
PHP VersionPHP Version 5.4

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2016-04-14 19:06

developer   ~37391

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=18565

DenisChenu

DenisChenu

2016-04-14 19:15

developer   ~37392

Fix committed to 2.06lts branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&amp;id=18567

DenisChenu

DenisChenu

2016-04-14 19:16

developer   ~37393

After thinking : don't update mktime to disallow no var : else it can broke some survey .

c_schmitz

c_schmitz

2016-04-15 10:24

administrator   ~37409

Version 2.50+ Build 160415 released

Related Changesets

LimeSurvey: master 0c0023da

2016-04-14 17:06:06

DenisChenu

Details Diff
Fixed issue 10953: Using mktime() EM function broke survey administration
Dev: use time() if no var is set
Dev: Why not use simply a "min"/"max" system for parameters number : this system is really strange
Dev: @todo : add a really better system to add function (on file/class by function ?)
Affected Issues
10953
mod - application/helpers/expressions/em_core_helper.php Diff File

LimeSurvey: 2.06lts ca867acd

2016-04-14 17:15:10

DenisChenu

Details Diff
Dev: re Fixed issue 10953: Using mktime() EM function broke survey administration
Dev: with 2.06 : there are really no other way
Affected Issues
10953
mod - application/helpers/expressions/em_core_helper.php Diff File

Issue History

Date Modified Username Field Change
2016-04-14 18:18 DenisChenu New Issue
2016-04-14 18:18 DenisChenu Status new => assigned
2016-04-14 18:18 DenisChenu Assigned To => DenisChenu
2016-04-14 18:18 DenisChenu File Added: PHP error.html
2016-04-14 18:19 DenisChenu File Added: limesurvey_survey_mktime.lss
2016-04-14 19:04 DenisChenu Summary Using mktime() EM function broke survey admin, and can be removed => Using mktime() EM function broke survey admin
2016-04-14 19:06 DenisChenu Changeset attached => LimeSurvey master 0c0023da
2016-04-14 19:06 DenisChenu Note Added: 37391
2016-04-14 19:06 DenisChenu Resolution open => fixed
2016-04-14 19:15 DenisChenu Changeset attached => LimeSurvey 2.06lts ca867acd
2016-04-14 19:15 DenisChenu Note Added: 37392
2016-04-14 19:15 DenisChenu Status assigned => resolved
2016-04-14 19:15 DenisChenu Fixed in Version => 2.5
2016-04-14 19:16 DenisChenu Note Added: 37393
2016-04-15 10:24 c_schmitz Note Added: 37409
2016-04-15 10:24 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing