View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 17127 | Bug reports | Theme editor | public | 2021-02-24 14:03 | 2021-03-03 10:15 |
| Reporter | DenisChenu | Assigned To | ollehar | ||
| Priority | normal | Severity | partial_block | ||
| Status | assigned | Resolution | open | ||
| Product Version | 4.4.7 | ||||
| Summary | 17127: Can't see inherited value of variations in theme options | ||||
| Description | New issue: Title Old issue: When extend theme, try to update Theme option : 500 error Proposed fix: 1) Make a Yii widget out of application/views/themeOptions/options_core.php | ||||
| Steps To Reproduce | Like i do, unsure it was related
| ||||
| Additional Information | Click right/open link in new tab to get the error Error with and without debug | ||||
| Tags | No tags attached. | ||||
| Attached Files | 500 Internal Server Error.html (8,871 bytes)
<!DOCTYPE html>
<html lang="en" dir="ltr" class="en dir-ltr no-js " >
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/bcb02149/jquery-ui.structure.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/d881932f/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/eb6bc67a/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/eb6bc67a/yiistrap.min.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/b1514cc1/css/bootstrap-switch.min.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/61bfd2fe/css/select2.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/61bfd2fe/css/select2-bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/720a828b/css/bootstrap-datetimepicker.min.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/4106a658/roboto.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/4106a658/icomoon.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/ca63d7d9/build/lstutorial.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/8eae9882/build/adminbasics.min.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/3e2268bb/build.min/css/adminsidepanel.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/2b973487/css/lime-admin-colors.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/2b973487/css/statistics.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/e6c5b154/themeoptions-core.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/f922cd07/expressions.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/4106a658/noto.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/9cdb1fb/survey.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/df6d91c4/build/embeddables.min.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/386d394d/template-core.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/386d394d/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/c5377634/css/base.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/c5377634/css/theme.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/c5377634/css/custom.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/c5377634/css/noTablesOnMobile.css" />
<link rel="stylesheet" type="text/css" href="/master/tmp/assets/c5377634/css/errors.css" />
<script type='text/javascript'>window.debugState = {frontend : (0 === 1), backend : (0 === 1)};</script><script type="text/javascript" src="/master/tmp/assets/564f0b1/jquery-3.5.1.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/564f0b1/jquery-migrate-3.3.0.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/bcb02149/jquery-ui.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/3e2268bb/build.min/js/adminsidepanel.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/f612dbb3/js.cookie.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/eb6bc67a/bootstrap.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/eb6bc67a/plugins/bootstrapconfirm/bootstrapconfirm.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/c3317958/moment-with-locales.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/61bfd2fe/js/select2.full.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/eb574272/build/lslog.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/4a78fc56/min/pjax.combined.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/d26ab52b/ckeditor.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/d26ab52b/config.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/31b52e00/ckeditoradditions.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/78ec3b3c/em_javascript.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/4a78fc56/pjax.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/9cdb1fb/survey.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/386d394d/template-core.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/c5377634/scripts/theme.js" class="headScriptTag"></script>
<script type="text/javascript" src="/master/tmp/assets/c5377634/scripts/custom.js" class="headScriptTag"></script>
<script type="text/javascript">
/*<![CDATA[*/
window.LS = window.LS || {}; window.LS.globalUserId = "1";
/*]]>*/
</script>
<title>
500: Internal Server Error
</title>
<meta name="generator" content="LimeSurvey http://www.limesurvey.org" />
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body class="vanilla lang-en " marginwidth="0" marginheight="0" ><script type="text/javascript" src="/master/tmp/assets/b1514cc1/js/bootstrap-switch.min.js"></script>
<script type="text/javascript" src="/master/tmp/assets/720a828b/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="/master/tmp/assets/8eae9882/build/adminbasics.min.js"></script>
<script type="text/javascript" src="/master/tmp/assets/50db2a66/js/modaleditor.js"></script>
<script type="text/javascript" src="/master/tmp/assets/e98acfb3/decimal.js"></script>
<script type="text/javascript" src="/master/tmp/assets/f975f3ef/decimalcustom.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
var LEMmode='survey';
var LEMgseq='';
ExprMgr_process_relevance_and_tailoring = function(evt_type,sgqa,type){
if (typeof LEM_initialized == 'undefined') {
LEM_initialized=true;
LEMsetTabIndexes();
}
if (evt_type == 'onchange' && (typeof last_sgqa !== 'undefined' && sgqa==last_sgqa) && (typeof last_evt_type !== 'undefined' && last_evt_type == 'TAB' && type != 'checkbox')) {
last_evt_type='onchange';
last_sgqa=sgqa;
return;
}
if (evt_type == 'updated' && (typeof last_sgqa !== 'undefined' && sgqa==last_sgqa)) {
last_evt_type='updated';
last_sgqa=sgqa;
return;
}
last_evt_type = evt_type;
last_sgqa=sgqa;
}
var LEMalias2varName = {
};
var LEMvarNameAttr = {
};
/*]]>*/
</script>
<article id="block_error">
<div>
<h1>500: Internal Server Error</h1>
<h2>Object of class stdClass could not be converted to string</h2>
<p>
An internal error occurred while the Web server was processing your request.
</p>
<p>
Please contact dqsdqsdsqdq to report this problem.
</p>
</div>
<div>
</div>
</article>
<script type="text/javascript" src="/master/tmp/assets/ca63d7d9/build/lstutorial.min.js"></script>
<script type="text/javascript" src="/master/tmp/assets/e6c5b154/themeoptions-core.js"></script>
<script type="text/javascript" src="/master/tmp/assets/f922cd07/expression.js"></script>
<script type="text/javascript" src="/master/tmp/assets/df6d91c4/build/embeddables.min.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
jQuery('body').popover({'selector':'a\x5Brel\x3Dpopover\x5D'});
jQuery('body').tooltip({'selector':'a\x5Brel\x3Dtooltip\x5D'});
try{
triggerEmClassChange();
} catch(e) {
console.ls.warn('triggerEmClassChange could not be run. Is survey.js correctly loaded?');
}
triggerEmRelevance();
jQuery(document).off('pjax:scriptcomplete.mainBottom').on('ready pjax:scriptcomplete.mainBottom', function() {
updateMandatoryErrorClass();
});
/*]]>*/
</script>
</body>
</html>
Error.html (37,289 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>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>Error</h1>
<p class="message">
Object of class stdClass could not be converted to string </p>
<div class="source">
<p class="file">/mnt/data/shnoulle/nginx/www/master/application/views/themeOptions/options_core.php(152)</p>
<div class="code"><pre><span class="ln">140</span> <div class="input-group-addon style__colorpicker">
<span class="ln">141</span> <input type="color" name="' . $attributeKey . '_picker" data-value="' . $sParentOption . '" class="selector__colorpicker-inherit-value"/>
<span class="ln">142</span> </div>
<span class="ln">143</span> <input type="text" name="' . $attributeKey . '" data-inheritvalue="' . $sParentOption . '" value="inherit" class="selector_option_value_field selector__color-picker form-control simple_edit_options_' . $attributeKey . '" id="' . $attributeKey . '" />';
<span class="ln">144</span> if ($bInherit && isset($sParentOption)){
<span class="ln">145</span> echo '<div class="input-group-addon">
<span class="ln">146</span> <button class="btn btn-default btn-xs selector__reset-colorfield-to-inherit"><i class="fa fa-refresh"></i></button>
<span class="ln">147</span> </div>';
<span class="ln">148</span> }
<span class="ln">149</span> echo '</div>';
<span class="ln">150</span> } elseif ($attribute['type'] == 'dropdown'){
<span class="ln">151</span> echo ' <div class="col-sm-12">
<span class="error"><span class="ln error-ln">152</span> <select class="form-control selector_option_value_field selector_radio_childfield selector_image_selector" data-parent="' . $attribute['parent'] . '" data-inheritvalue=\'' . ($attributeKey == 'font' && isset($sPackagesToLoad) ? $sPackagesToLoad : $sParentOption) . '\' id="simple_edit_options_' . $attributeKey . '" name="' . $attributeKey . '" >';
</span><span class="ln">153</span> if ($bInherit){
<span class="ln">154</span> if ($attributeKey == 'backgroundimagefile'){
<span class="ln">155</span> $inheritedValue = isset($backgroundfileInheritPreview) ? $backgroundfileInheritPreview : '';
<span class="ln">156</span> } elseif ($attributeKey == 'backgroundimagefile'){
<span class="ln">157</span> $inheritedValue = isset($logofileInheritPreview) ? $logofileInheritPreview : '';
<span class="ln">158</span> } else {
<span class="ln">159</span> $inheritedValue = isset($sParentOption) ? $sParentOption : '';
<span class="ln">160</span> }
<span class="ln">161</span> echo '<option value="inherit">' . gT("Inherit") . ' [' . gT("inherited value:") . ' ' . $inheritedValue . ']</option>';
<span class="ln">162</span> }
<span class="ln">163</span> // dropdown options from config.xml file
<span class="ln">164</span> echo $aOptionAttributes['optionAttributes'][$attributeKey]['dropdownoptions'];
</pre></div> </div>
<div class="traces">
<h2>Stack Trace</h2>
<table style="width:100%;">
<tr class="trace core collapsed">
<td class="number">
#0 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/framework/web/CBaseController.php(126): <strong>require</strong>() </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">
#1 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/framework/web/CBaseController.php(95): <strong>CBaseController</strong>-><strong>renderInternal</strong>("/mnt/data/shnoulle/nginx/www/master/application/views/themeOptio...", array("aOptionAttributes" => array("categories" => array("Simple options", "Images"), "optionAttributes" => array("container" => array("type" => "buttons", "title" => "Survey container", "category" => "Simple options", "width" => "4", ...), "showpopups" => array("type" => "buttons", "title" => "Show popups", "category" => "Simple options", "width" => "4", ...), "showclearall" => array("type" => "buttons", "title" => "Show Clear All button", "category" => "Simple options", "width" => "4", ...), "questionhelptextposition" => array("type" => "buttons", "title" => "Question help text position", "category" => "Simple options", "width" => "4", ...), ...), "optionsPage" => "core"), "aTemplateConfiguration" => array("id" => "873", "template_name" => "CHECK_bootswatch_16782", "sid" => "587692", "gsid" => null, ...), "oParentOptions" => array("container" => "on", "showpopups" => "1", "showclearall" => "off", "questionhelptextposition" => "top", ...), "sPackagesToLoad" => "{"add":["pjax","moment"]}"), true) </div>
<div class="code"><pre><span class="ln">090</span> {
<span class="ln">091</span> $widgetCount=count($this->_widgetStack);
<span class="ln">092</span> if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile))
<span class="ln">093</span> $content=$renderer->renderFile($this,$viewFile,$data,$return);
<span class="ln">094</span> else
<span class="error"><span class="ln error-ln">095</span> $content=$this->renderInternal($viewFile,$data,$return);
</span><span class="ln">096</span> if(count($this->_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->_widgetStack);
</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>
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(872): <strong>CBaseController</strong>-><strong>renderFile</strong>("/mnt/data/shnoulle/nginx/www/master/application/views/themeOptio...", array("aOptionAttributes" => array("categories" => array("Simple options", "Images"), "optionAttributes" => array("container" => array("type" => "buttons", "title" => "Survey container", "category" => "Simple options", "width" => "4", ...), "showpopups" => array("type" => "buttons", "title" => "Show popups", "category" => "Simple options", "width" => "4", ...), "showclearall" => array("type" => "buttons", "title" => "Show Clear All button", "category" => "Simple options", "width" => "4", ...), "questionhelptextposition" => array("type" => "buttons", "title" => "Question help text position", "category" => "Simple options", "width" => "4", ...), ...), "optionsPage" => "core"), "aTemplateConfiguration" => array("id" => "873", "template_name" => "CHECK_bootswatch_16782", "sid" => "587692", "gsid" => null, ...), "oParentOptions" => array("container" => "on", "showpopups" => "1", "showclearall" => "off", "questionhelptextposition" => "top", ...), "sPackagesToLoad" => "{"add":["pjax","moment"]}"), true) </div>
<div class="code"><pre><span class="ln">867</span> */
<span class="ln">868</span> public function renderPartial($view,$data=null,$return=false,$processOutput=false)
<span class="ln">869</span> {
<span class="ln">870</span> if(($viewFile=$this->getViewFile($view))!==false)
<span class="ln">871</span> {
<span class="error"><span class="ln error-ln">872</span> $output=$this->renderFile($viewFile,$data,true);
</span><span class="ln">873</span> if($processOutput)
<span class="ln">874</span> $output=$this->processOutput($output);
<span class="ln">875</span> if($return)
<span class="ln">876</span> return $output;
<span class="ln">877</span> else
</pre></div> </td>
</tr>
<tr class="trace app expanded">
<td class="number">
#3 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/application/views/themeOptions/update.php(111): <strong>CController</strong>-><strong>renderPartial</strong>("./options_core", array("aOptionAttributes" => array("categories" => array("Simple options", "Images"), "optionAttributes" => array("container" => array("type" => "buttons", "title" => "Survey container", "category" => "Simple options", "width" => "4", ...), "showpopups" => array("type" => "buttons", "title" => "Show popups", "category" => "Simple options", "width" => "4", ...), "showclearall" => array("type" => "buttons", "title" => "Show Clear All button", "category" => "Simple options", "width" => "4", ...), "questionhelptextposition" => array("type" => "buttons", "title" => "Question help text position", "category" => "Simple options", "width" => "4", ...), ...), "optionsPage" => "core"), "aTemplateConfiguration" => array("id" => "873", "template_name" => "CHECK_bootswatch_16782", "sid" => "587692", "gsid" => null, ...), "oParentOptions" => array("container" => "on", "showpopups" => "1", "showclearall" => "off", "questionhelptextposition" => "top", ...), "sPackagesToLoad" => "{"add":["pjax","moment"]}")) </div>
<div class="code"><pre><span class="ln">106</span> if ($aOptionAttributes['optionsPage'] == 'core'){
<span class="ln">107</span> $this->renderPartial('./options_core', array(
<span class="ln">108</span> 'aOptionAttributes' => $aOptionAttributes,
<span class="ln">109</span> 'aTemplateConfiguration' => $aTemplateConfiguration,
<span class="ln">110</span> 'oParentOptions' => $oParentOptions,
<span class="error"><span class="ln error-ln">111</span> 'sPackagesToLoad' => $sPackagesToLoad
</span><span class="ln">112</span> )
<span class="ln">113</span> );
<span class="ln">114</span> } else {
<span class="ln">115</span> echo '<div role="tabpanel" class="tab-pane active" id="simple">';
<span class="ln">116</span> echo $templateOptionPage;
</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>
/mnt/data/shnoulle/nginx/www/master/framework/web/CBaseController.php(126): <strong>require</strong>("/mnt/data/shnoulle/nginx/www/master/application/views/themeOptio...") </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">
#5 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/framework/web/CBaseController.php(95): <strong>CBaseController</strong>-><strong>renderInternal</strong>("/mnt/data/shnoulle/nginx/www/master/application/views/themeOptio...", array("model" => TemplateConfiguration, "templateOptionPage" => "", "optionInheritedValues" => stdClass, "optionCssFiles" => "{"replace":["css\/theme.css","css\/custom.css"]}", ...), true) </div>
<div class="code"><pre><span class="ln">090</span> {
<span class="ln">091</span> $widgetCount=count($this->_widgetStack);
<span class="ln">092</span> if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile))
<span class="ln">093</span> $content=$renderer->renderFile($this,$viewFile,$data,$return);
<span class="ln">094</span> else
<span class="error"><span class="ln error-ln">095</span> $content=$this->renderInternal($viewFile,$data,$return);
</span><span class="ln">096</span> if(count($this->_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->_widgetStack);
</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>
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(872): <strong>CBaseController</strong>-><strong>renderFile</strong>("/mnt/data/shnoulle/nginx/www/master/application/views/themeOptio...", array("model" => TemplateConfiguration, "templateOptionPage" => "", "optionInheritedValues" => stdClass, "optionCssFiles" => "{"replace":["css\/theme.css","css\/custom.css"]}", ...), true) </div>
<div class="code"><pre><span class="ln">867</span> */
<span class="ln">868</span> public function renderPartial($view,$data=null,$return=false,$processOutput=false)
<span class="ln">869</span> {
<span class="ln">870</span> if(($viewFile=$this->getViewFile($view))!==false)
<span class="ln">871</span> {
<span class="error"><span class="ln error-ln">872</span> $output=$this->renderFile($viewFile,$data,true);
</span><span class="ln">873</span> if($processOutput)
<span class="ln">874</span> $output=$this->processOutput($output);
<span class="ln">875</span> if($return)
<span class="ln">876</span> return $output;
<span class="ln">877</span> else
</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>
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(785): <strong>CController</strong>-><strong>renderPartial</strong>("update", array("model" => TemplateConfiguration, "templateOptionPage" => "", "optionInheritedValues" => stdClass, "optionCssFiles" => "{"replace":["css\/theme.css","css\/custom.css"]}", ...), true) </div>
<div class="code"><pre><span class="ln">780</span> */
<span class="ln">781</span> public function render($view,$data=null,$return=false)
<span class="ln">782</span> {
<span class="ln">783</span> if($this->beforeRender($view))
<span class="ln">784</span> {
<span class="error"><span class="ln error-ln">785</span> $output=$this->renderPartial($view,$data,true);
</span><span class="ln">786</span> if(($layoutFile=$this->getLayoutFile($this->layout))!==false)
<span class="ln">787</span> $output=$this->renderFile($layoutFile,array('content'=>$output),true);
<span class="ln">788</span>
<span class="ln">789</span> $this->afterRender($view,$output);
<span class="ln">790</span>
</pre></div> </td>
</tr>
<tr class="trace app expanded">
<td class="number">
#8 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/application/controllers/ThemeOptionsController.php(729): <strong>CController</strong>-><strong>render</strong>("update", array("model" => TemplateConfiguration, "templateOptionPage" => "", "optionInheritedValues" => stdClass, "optionCssFiles" => "{"replace":["css\/theme.css","css\/custom.css"]}", ...)) </div>
<div class="code"><pre><span class="ln">724</span> $aData['subaction'] = gT("Survey theme options");
<span class="ln">725</span> $aData['sidemenu']['landOnSideMenuTab'] = 'settings';
<span class="ln">726</span> }
<span class="ln">727</span>
<span class="ln">728</span> $this->aData = $aData;
<span class="error"><span class="ln error-ln">729</span> $this->render('update', $aData);
</span><span class="ln">730</span> }
<span class="ln">731</span>
<span class="ln">732</span> /**
<span class="ln">733</span> * Try to get the get-parameter from request.
<span class="ln">734</span> * At the moment there are three namings for a survey id:
</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>
/mnt/data/shnoulle/nginx/www/master/application/controllers/ThemeOptionsController.php(346): <strong>ThemeOptionsController</strong>-><strong>updateCommon</strong>(TemplateConfiguration, 587692) </div>
<div class="code"><pre><span class="ln">341</span> if ($model->save()) {
<span class="ln">342</span> App()->user->setFlash('success', gT('Theme options saved.'));
<span class="ln">343</span> $this->redirect(array("themeOptions/updateSurvey", 'surveyid' => $sid));
<span class="ln">344</span> }
<span class="ln">345</span> }
<span class="error"><span class="ln error-ln">346</span> $this->updateCommon($model, $sid);
</span><span class="ln">347</span> }
<span class="ln">348</span>
<span class="ln">349</span> /**
<span class="ln">350</span> * Updates particular model.
<span class="ln">351</span> * If update is successful, the browser will be redirected to the 'view' page.
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#10 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CInlineAction.php(49): <strong>ThemeOptionsController</strong>-><strong>actionUpdateSurvey</strong>() </div>
<div class="code"><pre><span class="ln">44</span> $controller=$this->getController();
<span class="ln">45</span> $method=new ReflectionMethod($controller, $methodName);
<span class="ln">46</span> if($method->getNumberOfParameters()>0)
<span class="ln">47</span> return $this->runWithParamsInternal($controller, $method, $params);
<span class="ln">48</span>
<span class="error"><span class="ln error-ln">49</span> $controller->$methodName();
</span><span class="ln">50</span> return true;
<span class="ln">51</span> }
<span class="ln">52</span> }
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#11 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308): <strong>CInlineAction</strong>-><strong>runWithParams</strong>(array("surveyid" => "587692", "gsid" => "12")) </div>
<div class="code"><pre><span class="ln">303</span> {
<span class="ln">304</span> $priorAction=$this->_action;
<span class="ln">305</span> $this->_action=$action;
<span class="ln">306</span> if($this->beforeAction($action))
<span class="ln">307</span> {
<span class="error"><span class="ln error-ln">308</span> if($action->runWithParams($this->getActionParams())===false)
</span><span class="ln">309</span> $this->invalidActionParams($action);
<span class="ln">310</span> else
<span class="ln">311</span> $this->afterAction($action);
<span class="ln">312</span> }
<span class="ln">313</span> $this->_action=$priorAction;
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#12 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286): <strong>CController</strong>-><strong>runAction</strong>(CInlineAction) </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->runAction($action);
</span><span class="ln">287</span> else
<span class="ln">288</span> {
<span class="ln">289</span> $priorAction=$this->_action;
<span class="ln">290</span> $this->_action=$action;
<span class="ln">291</span> CFilterChain::create($this,$action,$filters)->run();
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#13 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265): <strong>CController</strong>-><strong>runActionWithFilters</strong>(CInlineAction, array()) </div>
<div class="code"><pre><span class="ln">260</span> {
<span class="ln">261</span> if(($parent=$this->getModule())===null)
<span class="ln">262</span> $parent=Yii::app();
<span class="ln">263</span> if($parent->beforeControllerAction($this,$action))
<span class="ln">264</span> {
<span class="error"><span class="ln error-ln">265</span> $this->runActionWithFilters($action,$this->filters());
</span><span class="ln">266</span> $parent->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->missingAction($actionID);
</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>
/mnt/data/shnoulle/nginx/www/master/application/controllers/LSBaseController.php(160): <strong>CController</strong>-><strong>run</strong>("updateSurvey") </div>
<div class="code"><pre><span class="ln">155</span> $this->redirect(array('/admin/authentication/sa/login'));
<span class="ln">156</span> }
<span class="ln">157</span> }
<span class="ln">158</span> }
<span class="ln">159</span>
<span class="error"><span class="ln error-ln">160</span> parent::run($action);
</span><span class="ln">161</span> }
<span class="ln">162</span>
<span class="ln">163</span> /**
<span class="ln">164</span> * Load and set session vars
<span class="ln">165</span> *
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#15 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282): <strong>LSBaseController</strong>-><strong>run</strong>("updateSurvey") </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->_controller;
<span class="ln">280</span> $this->_controller=$controller;
<span class="ln">281</span> $controller->init();
<span class="error"><span class="ln error-ln">282</span> $controller->run($actionID);
</span><span class="ln">283</span> $this->_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}'=>$route===''?$this->defaultController:$route)));
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#16 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-><strong>runController</strong>("themeOptions/updateSurvey") </div>
<div class="code"><pre><span class="ln">136</span> foreach(array_splice($this->catchAllRequest,1) as $name=>$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->getUrlManager()->parseUrl($this->getRequest());
<span class="error"><span class="ln error-ln">141</span> $this->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">
#17 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/framework/base/CApplication.php(185): <strong>CWebApplication</strong>-><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->hasEventHandler('onBeginRequest'))
<span class="ln">183</span> $this->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->processRequest();
</span><span class="ln">186</span> if($this->hasEventHandler('onEndRequest'))
<span class="ln">187</span> $this->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">
#18 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
/mnt/data/shnoulle/nginx/www/master/index.php(182): <strong>CApplication</strong>-><strong>run</strong>() </div>
<div class="code"><pre><span class="ln">177</span> require_once APPPATH . 'core/LSYii_Application' . EXT;
<span class="ln">178</span>
<span class="ln">179</span> $config = require_once(APPPATH . 'config/internal' . EXT);
<span class="ln">180</span>
<span class="ln">181</span> Yii::$enableIncludePath = false;
<span class="error"><span class="ln error-ln">182</span> Yii::createApplication('LSYii_Application', $config)->run();
</span><span class="ln">183</span>
<span class="ln">184</span> /* End of file index.php */
<span class="ln">185</span> /* Location: ./index.php */
</pre></div> </td>
</tr>
</table>
</div>
<div class="version">
2021-02-24 12:55:50 nginx/1.18.0 <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.22-dev </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>
| ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 4.4.9 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | not relevantn | ||||
| Database type & version | mariadb | ||||
| Server OS (if known) | fedora/linux | ||||
| Webserver software & version (if known) | nginx | ||||
| PHP Version | php7.4 | ||||
|
debug = 2? |
|
|
oh, you did already. sorry! |
|
|
DB state for this survey |
|
|
Urgh. Spaghetti monster. D: |
|
|
cssFramework property is used both as object and string in different parts of the code. #death |
|
Yes, yes and 10 thousand yes |
|
|
Branch bug/17127-extended-theme-500-error |
|
|
It looks like "class TemplateConfig extends CActiveRecord" has no corresponding database table, despite inheriting from active record??? Not good!!! |
|
|
Maybe TemplateConfig should be a trait rather. :d |
|
|
Almost all code in "application/views/themeOptions/options_core.php" should be a widget. |
|
Can you give the direct link to the branch ? |
|
|
Sure. https://github.com/LimeSurvey/LimeSurvey/tree/bug/17127-extended-theme-500-error Also added a new field "Working Git branch" to all bugs (not shown to non-devs). |
|
|
Very fake fix: https://github.com/LimeSurvey/LimeSurvey/commit/2972aea41c51c74db95bfe40c337ae839471152c But it reduces severity from crash to block for fonts. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-02-24 14:03 | DenisChenu | New Issue | |
| 2021-02-24 14:03 | DenisChenu | File Added: 500 Internal Server Error.html | |
| 2021-02-24 14:03 | DenisChenu | File Added: Error.html | |
| 2021-02-24 14:05 | ollehar | Note Added: 62487 | |
| 2021-02-24 14:05 | ollehar | Note Added: 62488 | |
| 2021-02-24 14:06 | ollehar | Priority | none => high |
| 2021-02-24 14:06 | ollehar | Severity | minor => crash |
| 2021-02-24 15:10 | DenisChenu | Note Added: 62495 | |
| 2021-02-24 15:10 | DenisChenu | File Added: Capture d’écran du 2021-02-24 15-10-16.png | |
| 2021-03-01 15:30 | ollehar | Assigned To | => ollehar |
| 2021-03-01 15:30 | ollehar | Status | new => assigned |
| 2021-03-01 16:01 | ollehar | Note Added: 62577 | |
| 2021-03-01 16:05 | ollehar | Note Added: 62579 | |
| 2021-03-01 16:23 | DenisChenu | Note Added: 62580 | |
| 2021-03-01 17:47 | ollehar | Note Added: 62590 | |
| 2021-03-01 21:37 | ollehar | Note Added: 62593 | |
| 2021-03-01 21:40 | ollehar | Note Added: 62594 | |
| 2021-03-01 22:22 | ollehar | Note Added: 62595 | |
| 2021-03-02 09:07 | DenisChenu | Note Added: 62599 | |
| 2021-03-02 10:23 | ollehar | Working Git branch (developer only) | => bug/17127-extended-theme-500-error |
| 2021-03-02 10:24 | ollehar | Note Added: 62602 | |
| 2021-03-02 16:44 | ollehar | Note Added: 62609 | |
| 2021-03-02 16:45 | ollehar | Severity | crash => partial_block |
| 2021-03-02 16:47 | ollehar | Note Edited: 62609 | |
| 2021-03-02 16:56 | ollehar | Priority | high => normal |
| 2021-03-02 17:49 | ollehar | Summary | Extended theme : 500 error on option => Can't see inherited value of variations in theme options |
| 2021-03-02 17:49 | ollehar | Description Updated | |
| 2021-03-03 10:15 | ollehar | Description Updated |