View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
19346Bug reportsSurvey participants (Tokens)public2024-01-12 17:04
ReporterLemonLime Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version6.4.x 
Summary19346: Accessing Survey Participant on a survey resulted to a Internal Server Error
Description

after selecting a survey > Survey Participants. the browser's network log response shows an error

upon debugging both $editorEnabled and $editorUrl are uninitialized after clicking the Survey Participants link

Steps To Reproduce

Steps to reproduce

Select any survey on the list of survey
click on "Survey Participants"

Expected result

Survey Participants view to load propertly

Actual result

PHP Error [500]

Undefined variable $editorEnabled (<Web Server Directory>\application\views\surveyAdministration\partial\topbar\surveyTopbarRight_view.php:149)

#0 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\base\CErrorHandler.php(133): CErrorHandler->handleError()
#1 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\base\CApplication.php(832): CErrorHandler->handle()
#2 C:\inetpub\wwwroot\quality\application\views\surveyAdministration\partial\topbar\surveyTopbarRight_view.php(149): LSYii_Application->handleError()
#3 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CBaseController.php(126): require()
#4 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CBaseController.php(95): AdminController->renderInternal()
#5 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CController.php(872): AdminController->renderFile()
#6 C:\inetpub\wwwroot\quality\application\controllers\AdminController.php(261): AdminController->renderPartial()
#7 C:\inetpub\wwwroot\quality\application\views\surveyAdministration\partial\topbar_tokens\rightSideButtons.php(21): AdminController->renderPartial()
#8 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CBaseController.php(126): require()
#9 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CBaseController.php(95): AdminController->renderInternal()
#10 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CController.php(872): AdminController->renderFile()
#11 C:\inetpub\wwwroot\quality\application\controllers\AdminController.php(261): AdminController->renderPartial()
#12 C:\inetpub\wwwroot\quality\application\controllers\admin\Tokens.php(65): AdminController->renderPartial()
#13 unknown(0): Tokens->index()
#14 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\actions\CAction.php(115): ReflectionMethod->invokeArgs()
#15 C:\inetpub\wwwroot\quality\application\core\SurveyCommonAction.php(83): Tokens->runWithParamsInternal()
#16 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CController.php(308): Tokens->runWithParams()
#17 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CController.php(286): AdminController->runAction()
#18 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CController.php(265): AdminController->runActionWithFilters()
#19 C:\inetpub\wwwroot\quality\application\controllers\AdminController.php(202): AdminController->run()
#20 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CWebApplication.php(282): AdminController->run()
#21 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\web\CWebApplication.php(141): LSYii_Application->runController()
#22 C:\inetpub\wwwroot\quality\vendor\yiisoft\yii\framework\base\CApplication.php(185): LSYii_Application->processRequest()
#23 C:\inetpub\wwwroot\quality\index.php(161): LSYii_Application->run()

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)LimeSurvey Community Edition Version 6.4.1+240108
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMS SQL Server 2019
Server OS (if known)
Webserver software & version (if known)
PHP Version8.2.1

Users monitoring this issue

There are no users monitoring this issue.

Activities

LemonLime

LemonLime

2024-01-11 23:28

reporter   ~79151

OS: Windows Server 2019
Web Server: IIS

LemonLime

LemonLime

2024-01-11 23:28

reporter   ~79152

OS: Windows Server 2019
Web Server: IIS

LemonLime

LemonLime

2024-01-11 23:29

reporter   ~79153

OS: Windows Server 2019
Web Server: IIS

LemonLime

LemonLime

2024-01-12 17:04

reporter   ~79158

When trying to access the survey participants the error occurs on this code
https://github.com/LimeSurvey/LimeSurvey/blob/master/application/views/surveyAdministration/partial/topbar/surveyTopbarRight_view.php#L149

I notice that the view's data was instantiated by this function https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/TopbarConfiguration.php#L319
instead of the same function utilize by the initial viewing of the selected survey https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/TopbarConfiguration.php#L141
in the Tokens.php file https://github.com/LimeSurvey/LimeSurvey/blob/master/application/controllers/admin/Tokens.php#L57

In my local instance, I added the code from
https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/TopbarConfiguration.php#L207 to https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/TopbarConfiguration.php#L214
and https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/TopbarConfiguration.php#L245 to https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/TopbarConfiguration.php#L246

on the function TopbarConfiguration::getTokensTopbarData https://github.com/LimeSurvey/LimeSurvey/blob/master/application/core/TopbarConfiguration.php#L319

Issue History

Date Modified Username Field Change
2024-01-11 23:07 LemonLime New Issue
2024-01-11 23:28 LemonLime Note Added: 79151
2024-01-11 23:28 LemonLime Bug heat 0 => 2
2024-01-11 23:28 LemonLime Note Added: 79152
2024-01-11 23:29 LemonLime Note Added: 79153
2024-01-12 17:04 LemonLime Note Added: 79158