View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
19539Bug reportsSurvey editingpublic2024-04-25 16:24
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version6.5.x 
Summary19539: Direct access to assessment throw a 500 error
Description

With PHP81 when goes directly to a assesent manager for surey : get a 500 error

Steps To Reproduce

Steps to reproduce

Create a survey
Go to assessment management, see the page (with or without assesment)
Open a new tab
Unlog from admin
Call again assessment page, login

Expected result

See the assesment page

Actual result

500 error with or without debug

TagsNo tags attached.
Attached Files
500 Erreur interne au serveur.html (17,240 bytes)   
<!DOCTYPE html>
<html dir="ltr" class="fr dir-ltr  no-js " xmlns="http://www.w3.org/1999/html" data-lt-installed="true" lang="fr"><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="500%20Erreur%20interne%20au%20serveur_fichiers/jquery-ui.min.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/ibm-sans.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/ibm-serif.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/remixicon.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/tempus-dominus.min.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/roboto.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/icomoon.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/select2.min.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/select2-bootstrap-5-theme.min.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/lstutorial.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/sea_green.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/adminsidepanel.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/noto.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/survey.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/embeddables.min.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/template-core.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/awesome-bootstrap-checkbox.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/bootstrap_5.min.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/base.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/theme.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/noTablesOnMobile.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/custom.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/errors.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/previewModalWidget.css">
<link rel="stylesheet" type="text/css" href="500%20Erreur%20interne%20au%20serveur_fichiers/style.css">
<script type="text/javascript">window.debugState = {frontend : (0 === 1), backend : (0 === 1)};</script><script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/jquery.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/jquery-migrate.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/jquery-ui.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/adminsidepanel.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/js.cookie.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/moment-with-locales.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/popper-tempus.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/datepickerInit.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/lslog.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/pjax.combined.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/select2.full.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/ckeditor.js" class="headScriptTag"></script><style>.cke{visibility:hidden;}</style>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/config.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/ckeditoradditions.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/bootstrap_5.min.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/em_javascript.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/pjax.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/survey.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/template-core.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/theme.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/ajaxify.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/custom.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/script.js" class="headScriptTag"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/script_002.js" class="headScriptTag"></script>
<script type="text/javascript">
/*<![CDATA[*/

           window.LS = window.LS || {}; window.LS.globalUserId = "1";
LS.data = {"baseUrl":"http:\/\/php8.1.local\/master","showScriptName":true,"urlFormat":"get","adminImageUrl":"\/master\/themes\/admin\/Sea_Green\/images\/","csrfTokenName":"YII_CSRF_TOKEN","csrfToken":"blg5eU5qNX5KdjBMc2R1SEVqejlYYWc0MjVQUzJoRVgU9JCGLy-g52Ls5AEsOmKOyCGTd6LwMwOcv0S0oBn5Xw==","csrfTokenData":{"YII_CSRF_TOKEN":"blg5eU5qNX5KdjBMc2R1SEVqejlYYWc0MjVQUzJoRVgU9JCGLy-g52Ls5AEsOmKOyCGTd6LwMwOcv0S0oBn5Xw=="},"language":"fr","replacementFields":{"path":"\/master\/index.php?r=limereplacementfields\/index"}};

                    // @see https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html#jquery
                    function csrfSafeMethod(method) {
                        // these HTTP methods do not require CSRF protection
                        return (/^(GET|HEAD|OPTIONS)$/.test(method));
                    }
                    // Use $.ajaxPrefilter() instead of $.ajaxSetup({beforeSend: ...}) to add the CSRF token because beforeSend is
                    // executed after the content type is determined. So, if the request had no data when beforeSend is executed,
                    // the content type is 'text/plain', which is wrong.
                    // urlencode for security (encode simple and double quote and antislash)
                    $.ajaxPrefilter(function(settings) {
                        if(!csrfSafeMethod(settings.type)) {
                            // Data could be passed as string or object, so we add the token depending on the data type
                            if (typeof settings.data == 'string') {
                                // NB: This sometimes includes the CSRF token twice, when already added to data.
                                settings.data +=  '&YII_CSRF_TOKEN=blg5eU5qNX5KdjBMc2R1SEVqejlYYWc0MjVQUzJoRVgU9JCGLy-g52Ls5AEsOmKOyCGTd6LwMwOcv0S0oBn5Xw%3D%3D';
                            } else {
                                settings.data = settings.data || {};
                                settings.data.YII_CSRF_TOKEN = 'blg5eU5qNX5KdjBMc2R1SEVqejlYYWc0MjVQUzJoRVgU9JCGLy-g52Ls5AEsOmKOyCGTd6LwMwOcv0S0oBn5Xw%3D%3D';
                            }
                        }
                    });
var frameSrc = "/login";
 var userdateformat="DD.MM.YYYY";var userlanguage="fr";
LS.lang = $.extend(LS.lang,{"errorTitle":"Erreur : %s","errorUnknow":"Inconnu","unknowText":"Une erreur inconnue est survenue"});

/*]]>*/
</script>
<title>
                    500 : Erreur interne au serveur
            </title>

    <meta name="generator" content="LimeSurvey http://www.limesurvey.org">
            <link rel="shortcut icon" href="http://php8.1.local/master/tmp/assets/b7d95e4f/favicon.ico">
    </head>

<body class="vanilla lang-fr " marginwidth="0" marginheight="0"><script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/adminbasics.min.js"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/modaleditor.js"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/decimal.js"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/decimalcustom.js"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/activatesurvey.js"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/previewModalWidget.js"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/assessments.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
var strnogroup = 'Il n’y a pas de groupes disponibles.';

    CKEDITOR.on('dialogDefinition', function (ev) {
        var dialogName = ev.data.name;
        var dialogDefinition = ev.data.definition;

        // Remove upload tab from Link and Image dialog as it interferes with
        // CSRF protection and upload can be reached using the browse server tab
        if ( dialogName == 'link')
        {
           // remove Upload tab
           dialogDefinition.removeContents( 'upload' );
        }
        if ( dialogName == 'image')
        {
           // remove Upload tab
           dialogDefinition.removeContents( 'Upload' );
        }
    });
    CKEDITOR.on('instanceReady', function(event) {
        var textareaId = event.editor.element.getId();
        $('#'+textareaId+'_htmleditor_loader').remove();
        event.editor.dataProcessor.writer.setRules( 'br', { breakAfterOpen: 0 } );
    });    

    var sReplacementFieldTitle = 'Champs texte réservés';
    var sReplacementFieldButton = 'Insérez/modifiez un mot clé';
    var sSwitchToolbarFullTitle = 'Afficher la barre d\'outils complète';
    var sSwitchToolbarBasicTitle = 'Afficher la barre d\'outils de base';
    var editorwindowsHash = new Object();

    function find_popup_editor(fieldname)
    {
        var window = null;
        for (var key in editorwindowsHash)
        {
            if (key==fieldname && !editorwindowsHash[key].closed)
            {
                window = editorwindowsHash[key];
                return window;
            }
        }
        return null;
    }

    function start_popup_editor(fieldname, editorurl)
    {
        controlidena = fieldname + '_popupctrlena';
        controliddis = fieldname + '_popupctrldis';
        numwindows = editorwindowsHash.length;
        activepopup = find_popup_editor(fieldname);
        if (activepopup == null)
        {
            var targetField = document.getElementById(fieldname);
            targetField.readOnly=true;
            document.getElementById(controlidena).style.display='none';
            document.getElementById(controliddis).style.display='';
            
            // Override language direction if 'data-contents-dir' attribute is set in the target field
            if (targetField.hasAttribute('data-contents-dir')) {
                var inputLangDirection = targetField.getAttribute('data-contents-dir');
                editorurl = editorurl + '/contdir/' + (inputLangDirection ? inputLangDirection : '');
            }
            popup = window.open(editorurl,'', 'location=no, status=yes, scrollbars=auto, menubar=no, resizable=yes, width=690, height=500');

            editorwindowsHash[fieldname] = popup;
        }
        else
        {
            activepopup.focus();
        }
    }

    function updateCKeditor(fieldname,value)
    {
        var mypopup= editorwindowsHash[fieldname];
        if (mypopup)
        {
            var oMyEditor = mypopup.CKEDITOR.instances['MyTextarea'];
            if (oMyEditor) {oMyEditor.setData(value);}
            mypopup.focus();
        }
        else
        {
            var oMyEditor = CKEDITOR.instances[fieldname];
            oMyEditor.setData(value);
        }
    }

    var ckSettings = {
        language : 'fr',
        sid : '0',
        gid : '0',
        qid : '0',
        replacementFieldsPath : '/master/index.php?r=limereplacementfields/index',
    }

/*]]>*/
</script>
<script type="text/javascript" id="lemscripts">
/*<![CDATA[*/
var LEMmode='group';
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;

}

/*]]>*/
</script>

<div class="container">
    <div id="error-card" class="card w-75 mt-6 mb-0 mx-auto">
        <div class="card-body">
            <h2 class="card-title">
                                    500 : Erreur interne au serveur
                                in_array(): Argument #2 ($haystack) must be of type array, null given
            </h2>
            <hr>
            <div class="card-text">Une erreur interne est survenue quand le serveur Web traitait votre requête.</div>
                            Veuillez contacter Administrator pour rapporter ce problème.
                                </div>

    </div>
</div>
    
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/lstutorial.min.js"></script>
<script type="text/javascript" src="500%20Erreur%20interne%20au%20serveur_fichiers/embeddables.min.js"></script>
<script type="text/javascript">
/*<![CDATA[*/

            try{ 
                triggerEmClassChange(); 
            } catch(e) {
                console.ls.warn('triggerEmClassChange could not be run. Is survey.js/old_template_core_pre.js correctly loaded?');
            }

triggerEmRelevance();
jQuery(document).off('pjax:scriptcomplete.mainBottom').on('ready pjax:scriptcomplete.mainBottom', function() {
var runner_exportTypeSelector = new PreviewModalScript("exportTypeSelector",{"onModalClose":["\n                $('#selector__exportTypeSelector--buttonText').html('Exporter');\n                "],"onUpdate":["value","\n                var itemData = $('[data-key='+value+']').data('item-value');\n                var loadUrl = itemData.itemArray.href;\n                if(itemData.itemArray.external == true) {\n                    window.open(loadUrl, '_blank');\n                } else {\n                    if(itemData.itemArray.download == true) {\n                        var link = document.createElement('a');\n                        link.setAttribute('href', loadUrl);\n                        link.setAttribute('download', itemData.downloadFilename ? itemData.downloadFilename : value);\n                        link.setAttribute('target', '_blank');\n                        link.style.display = 'none';\n                        document.body.appendChild(link);\n                        link.click();\n                        document.body.removeChild(link);\n                    } else {\n                        $(document).trigger('pjax:load', {url: loadUrl});\n                    }\n                }\n                $('#selector__exportTypeSelector--buttonText').html('Exporter');\n                "],"value":"","theme":"","debugString":"Key: ","debug":false,"viewType":"select_modal"}); runner_exportTypeSelector.bind();
updateMandatoryErrorClass();
});
/*]]>*/
</script>


</body></html>
PHP warning.html (23,658 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" data-lt-installed="true" lang="en"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PHP warning</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 warning</h1>

	<p class="message">
		Undefined array key "LEMsid"	</p>

	<div class="source">
		<p class="file">/media/shnoulle/data/webdev/master/application/helpers/expressions/em_manager_helper.php(4539)</p>
		<div class="code"><pre><span class="ln">4527</span>             $LEM-&gt;surveyOptions['assessments'] = true;
<span class="ln">4528</span>         }
<span class="ln">4529</span>         //        $LEM-&gt;runtimeTimings[] = array(__METHOD__,(microtime(true) - $now));
<span class="ln">4530</span> 
<span class="ln">4531</span>         $LEM-&gt;initialized = true;
<span class="ln">4532</span> 
<span class="ln">4533</span>         if ($initializeVars) {
<span class="ln">4534</span>             $LEM-&gt;em-&gt;StartProcessingGroup(
<span class="ln">4535</span>                 isset($_SESSION['LEMsid']) ? $_SESSION['LEMsid'] : null,
<span class="ln">4536</span>                 '',
<span class="ln">4537</span>                 true
<span class="ln">4538</span>             );
<span class="error"><span class="ln error-ln">4539</span>             $LEM-&gt;setVariableAndTokenMappingsForExpressionManager($_SESSION['LEMsid']);
</span><span class="ln">4540</span>         }
<span class="ln">4541</span>     }
<span class="ln">4542</span> 
<span class="ln">4543</span>     /**
<span class="ln">4544</span>      * Initialize a survey so can use EM to manage navigation
<span class="ln">4545</span>      * @param int $surveyid
<span class="ln">4546</span>      * @param string $surveyMode
<span class="ln">4547</span>      * @param array $aSurveyOptions
<span class="ln">4548</span>      * @param bool $forceRefresh
<span class="ln">4549</span>      * @param int $debugLevel
<span class="ln">4550</span>      * @return array
<span class="ln">4551</span>      */
</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;/media/shnoulle/data/webdev/master/application/views/layouts/layout_questioneditor.php(20): <strong>LimeExpressionManager</strong>::<strong>StartProcessingPage</strong>(false, true)				</div>

				<div class="code"><pre><span class="ln">15</span> $layoutHelper-&gt;showadminmenu($aData);
<span class="ln">16</span> 
<span class="ln">17</span> echo "&lt;!-- BEGIN LAYOUT_INSURVEY --&gt;";
<span class="ln">18</span> // Needed to evaluate EM expressions in question summary
<span class="ln">19</span> // See bug #11845
<span class="error"><span class="ln error-ln">20</span> LimeExpressionManager::StartProcessingPage(false, true);
</span><span class="ln">21</span> $aData['debug'] = $aData;
<span class="ln">22</span> 
<span class="ln">23</span> echo $layoutHelper-&gt;renderTopbarTemplate($aData);
<span class="ln">24</span> 
<span class="ln">25</span> //The load indicator for pjax
</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>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(126): <strong>require</strong>("/media/shnoulle/data/webdev/master/application/views/layouts/lay...")				</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">
				#2			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CBaseController.php(95): <strong>CBaseController</strong>-&gt;<strong>renderInternal</strong>("/media/shnoulle/data/webdev/master/application/views/layouts/lay...", array("content" =&gt; "  &lt;div class="side-body "&gt;
    &lt;x-test id="action::surveyAssessm..."), 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">
				#3			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(787): <strong>CBaseController</strong>-&gt;<strong>renderFile</strong>("/media/shnoulle/data/webdev/master/application/views/layouts/lay...", array("content" =&gt; "  &lt;div class="side-body "&gt;
    &lt;x-test id="action::surveyAssessm..."), true)				</div>

				<div class="code"><pre><span class="ln">782</span>     {
<span class="ln">783</span>         if($this-&gt;beforeRender($view))
<span class="ln">784</span>         {
<span class="ln">785</span>             $output=$this-&gt;renderPartial($view,$data,true);
<span class="ln">786</span>             if(($layoutFile=$this-&gt;getLayoutFile($this-&gt;layout))!==false)
<span class="error"><span class="ln error-ln">787</span>                 $output=$this-&gt;renderFile($layoutFile,array('content'=&gt;$output),true);
</span><span class="ln">788</span> 
<span class="ln">789</span>             $this-&gt;afterRender($view,$output);
<span class="ln">790</span> 
<span class="ln">791</span>             $output=$this-&gt;processOutput($output);
<span class="ln">792</span> 
</pre></div>			</td>
		</tr>
						<tr class="trace app expanded">
			<td class="number">
				#4			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/application/controllers/AssessmentController.php(94): <strong>CController</strong>-&gt;<strong>render</strong>("assessments_view",
 array("survey" =&gt; Survey, "surveyid" =&gt; 893992, "headings" =&gt; 
array("Portée", "Groupe de questions", "Minimum", "Maximum"), "groups" 
=&gt; array(64 =&gt; " Lorem ipsum dolor sit amet, consectetur 
adipiscing elit. Donec ..."), ...))				</div>

				<div class="code"><pre><span class="ln">89</span>         );
<span class="ln">90</span>         App()-&gt;getClientScript()-&gt;registerScriptFile(App()-&gt;getConfig('adminscripts') . 'assessments.js', LSYii_ClientScript::POS_BEGIN);
<span class="ln">91</span> 
<span class="ln">92</span>         PrepareEditorScript(true, $this);
<span class="ln">93</span>         $this-&gt;aData = $aData;
<span class="error"><span class="ln error-ln">94</span>         $this-&gt;render('assessments_view', $this-&gt;aData);
</span><span class="ln">95</span>     }
<span class="ln">96</span> 
<span class="ln">97</span>     /**
<span class="ln">98</span>      * Activates assessment mode for the survey.
<span class="ln">99</span>      *
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#5			</td>
			<td class="content">
				<div class="trace-file">
										&nbsp;unknown(0): <strong>AssessmentController</strong>-&gt;<strong>actionIndex</strong>("893992")				</div>

							</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#6			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(114): <strong>ReflectionMethod</strong>-&gt;<strong>invokeArgs</strong>(AssessmentController, array("893992"))				</div>

				<div class="code"><pre><span class="ln">109</span>             elseif($param-&gt;isDefaultValueAvailable())
<span class="ln">110</span>                 $ps[]=$param-&gt;getDefaultValue();
<span class="ln">111</span>             else
<span class="ln">112</span>                 return false;
<span class="ln">113</span>         }
<span class="error"><span class="ln error-ln">114</span>         $method-&gt;invokeArgs($object,$ps);
</span><span class="ln">115</span>         return true;
<span class="ln">116</span>     }
<span class="ln">117</span> }
</pre></div>			</td>
		</tr>
						<tr class="trace core collapsed">
			<td class="number">
				#7			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47): <strong>CAction</strong>-&gt;<strong>runWithParamsInternal</strong>(AssessmentController, ReflectionMethod, array("r" =&gt; "assessment/index", "surveyid" =&gt; "893992"))				</div>

				<div class="code"><pre><span class="ln">42</span>     {
<span class="ln">43</span>         $methodName='action'.$this-&gt;getId();
<span class="ln">44</span>         $controller=$this-&gt;getController();
<span class="ln">45</span>         $method=new ReflectionMethod($controller, $methodName);
<span class="ln">46</span>         if($method-&gt;getNumberOfParameters()&gt;0)
<span class="error"><span class="ln error-ln">47</span>             return $this-&gt;runWithParamsInternal($controller, $method, $params);
</span><span class="ln">48</span> 
<span class="ln">49</span>         $controller-&gt;$methodName();
<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">
				#8			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): <strong>CInlineAction</strong>-&gt;<strong>runWithParams</strong>(array("r" =&gt; "assessment/index", "surveyid" =&gt; "893992"))				</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">
				#9			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(286): <strong>CController</strong>-&gt;<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-&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">
				#10			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(265): <strong>CController</strong>-&gt;<strong>runActionWithFilters</strong>(CInlineAction, 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 expanded">
			<td class="number">
				#11			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/application/controllers/LSBaseController.php(145): <strong>CController</strong>-&gt;<strong>run</strong>("index")				</div>

				<div class="code"><pre><span class="ln">140</span>                     $this-&gt;redirect(array('/admin/authentication/sa/login'));
<span class="ln">141</span>                 }
<span class="ln">142</span>             }
<span class="ln">143</span>         }
<span class="ln">144</span> 
<span class="error"><span class="ln error-ln">145</span>         parent::run($action);
</span><span class="ln">146</span>     }
<span class="ln">147</span> 
<span class="ln">148</span>     /**
<span class="ln">149</span>      * Load and set session vars
<span class="ln">150</span>      *
</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>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): <strong>LSBaseController</strong>-&gt;<strong>run</strong>("index")				</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">
				#13			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): <strong>CWebApplication</strong>-&gt;<strong>runController</strong>("assessment/index")				</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">
				#14			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/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">
				#15			</td>
			<td class="content">
				<div class="trace-file">
											<div class="plus">+</div>
						<div class="minus">–</div>
										&nbsp;/media/shnoulle/data/webdev/master/index.php(161): <strong>CApplication</strong>-&gt;<strong>run</strong>()				</div>

				<div class="code"><pre><span class="ln">156</span> require_once APPPATH . 'core/LSYii_Application' . EXT;
<span class="ln">157</span> 
<span class="ln">158</span> $config = require_once(APPPATH . 'config/internal' . EXT);
<span class="ln">159</span> 
<span class="ln">160</span> Yii::$enableIncludePath = false;
<span class="error"><span class="ln error-ln">161</span> Yii::createApplication('LSYii_Application', $config)-&gt;run();
</span><span class="ln">162</span> 
<span class="ln">163</span> /* End of file index.php */
<span class="ln">164</span> /* Location: ./index.php */
</pre></div>			</td>
		</tr>
				</tbody></table>
	</div>

	<div class="version">
		2024-04-25 16:15:20 nginx/1.22.1 <a href="https://www.yiiframework.com/">Yii Framework</a>/1.1.29	</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 warning.html (23,658 bytes)   
Bug heat2
Complete LimeSurvey version number (& build)6.5.4
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)not relevant
PHP Version 8.1.28

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2024-04-25 16:24

developer   ~80002

issue by $LEM->setVariableAndTokenMappingsForExpressionManager($_SESSION['LEMsid']);

$_SESSION['LEMsid'] is not set

Issue History

Date Modified Username Field Change
2024-04-25 16:23 DenisChenu New Issue
2024-04-25 16:23 DenisChenu File Added: 500 Erreur interne au serveur.html
2024-04-25 16:23 DenisChenu File Added: PHP warning.html
2024-04-25 16:24 DenisChenu Note Added: 80002
2024-04-25 16:24 DenisChenu Bug heat 0 => 2