View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
06264Bug reportsData Entry (non public)public2012-07-19 23:34
ReporterTMSWhite Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version2.00RC4 
Fixed in Version2.00RC5 
Summary06264: unable to access data entry screen
Description

When click the "data entry" button, get this error:

PHP notice
Undefined variable: bgc

C:\xampp\htdocs\ls2\application\controllers\admin\dataentry.php(2077)

2065 // TMSW Conditions->Relevance: Show relevance equation instead of conditions here - better yet, have data entry use survey-at-a-time but with different view
2066
2067 $qinfo = LimeExpressionManager::GetQuestionStatus($deqrow['qid']);
2068 $relevance = trim($qinfo['info']['relevance']);
2069 $explanation = trim($qinfo['relEqn']);
2070 $validation = trim($qinfo['prettyValidTip']);
2071 $qidattributes=getQuestionAttributeValues($deqrow['qid']);
2072 $array_filter_help = flattenText($this->_array_filter_help($qidattributes, $sDataEntryLanguage, $surveyid));
2073
2074 if (($relevance != '' && $relevance != '1') || ($validation != '') || ($array_filter_help != ''))
2075 {
2076 $showme = '';
2077 if ($bgc == "even") {$bgc = "odd";} else {$bgc = "even";} //Do no alternate on explanation row
2078 if ($relevance != '' && $relevance != '1') {
2079 $showme = "[".$blang->gT("Only answer this if the following conditions are met:")."]<br />$explanation\n";
2080 }
2081 if ($showme != '' && $validation != '') {
2082 $showme .= '<br />';
2083 }
2084 if ($validation != '') {
2085 $showme .= "[".$blang->gT("The answer(s) must meet these validation criteria:")."]<br />$validation\n";
2086 }
2087 if ($showme != '' && $array_filter_help != '') {
2088 $showme .= '<br />';
2089 }
Stack Trace
#0
unknown(0): dataentry->view("722461", null)
#1

  • C:\xampp\htdocs\ls2\framework\web\actions\CAction.php(107): ReflectionMethod->invokeArgs(dataentry, array("722461", null))
    #2
    – C:\xampp\htdocs\ls2\application\core\Survey_Common_Action.php(82): CAction->runWithParamsInternal(dataentry, ReflectionMethod, array("surveyid" => "722461", "sa" => "view", "iSurveyId" => "722461", "iSurveyID" => "722461"))
    77 $oMethod = new ReflectionMethod($this, $sDefault);
    78 }
    79
    80 // We're all good to go, let's execute it
    81 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
    82 return parent::runWithParamsInternal($this, $oMethod, $params);
    83 }
    84
    85 /*
    86
    Some functions have different parameters, which are just an alias of the
    87 * usual parameters we're getting in the url. This function just populates
    #3
  • C:\xampp\htdocs\ls2\framework\web\CController.php(309): Survey_Common_Action->runWithParams(array("surveyid" => "722461", "sa" => "view"))
    #4
  • C:\xampp\htdocs\ls2\framework\web\CController.php(287): CController->runAction(dataentry)
    #5
  • C:\xampp\htdocs\ls2\framework\web\CController.php(266): CController->runActionWithFilters(dataentry, array())
    #6
    – C:\xampp\htdocs\ls2\application\controllers\AdminController.php(158): CController->run("dataentry")
    153 Yii::app()->session['redirectopage'] = Yii::app()->request->requestUri;
    154
    155 $this->redirect($this->createUrl('/admin/authentication/login'));
    156 }
    157
    158 return parent::run($action);
    159 }
    160
    161 /*
    162
    Routes all the actions to their respective places
    163 *
    #7
  • C:\xampp\htdocs\ls2\framework\web\CWebApplication.php(276): AdminController->run("dataentry")
    #8
  • C:\xampp\htdocs\ls2\framework\web\CWebApplication.php(135): CWebApplication->runController("admin/dataentry/sa/view")
    #9
  • C:\xampp\htdocs\ls2\framework\base\CApplication.php(162): CWebApplication->processRequest()
    #10
    – C:\xampp\htdocs\ls2\index.php(171): CApplication->run()
    166
    167
    /
    168 require_once BASEPATH . 'yii' . EXT;
    169 require_once APPPATH . 'core/LSYii_Application' . EXT;
    170
    171 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run();
    172
    173 / End of file index.php /
    174 / Location: ./index.php /
    2012-06-22 22:31:45 Apache/2.2.17 (Win32) mod_ssl/2.2.17 OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1 Yii Framework/1.1.10
TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)120624
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql 5.3
Server OS (if known)Windows XP
Webserver software & version (if known)XAMPP
PHP Version5.3

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-06-22 23:35

administrator   ~19497

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

TMSWhite

TMSWhite

2012-06-22 23:51

reporter   ~19503

Still doesn't work - now get this error:

PHP notice

Undefined variable: minvalue

/home1/tomwhite/public_html/ls2/application/controllers/admin/dataentry.php(2422)

2410
2411 if (trim($qidattributes['multiflexible_step'])!='') {
2412 $stepvalue=$qidattributes['multiflexible_step'];
2413 } else {
2414 $stepvalue=1;
2415 }
2416 if ($qidattributes['multiflexible_checkbox']!=0)
2417 {
2418 $minvalue=0;
2419 $maxvalue=1;
2420 $stepvalue=1;
2421 }
2422 $cdata['minvalue'] = $minvalue;
2423 $cdata['maxvalue'] = $maxvalue;
2424 $cdata['stepvalue'] = $stepvalue;
2425
2426 $lquery = "SELECT question, title FROM {{questions}} WHERE parent_qid={$deqrow['qid']} and scale_id=1 and language='{$sDataEntryLanguage}' ORDER BY question_order";
2427 $lresult=dbExecuteAssoc($lquery) or die ("Couldn't get labels, Type \":\"<br />$lquery<br />");
2428 $cdata['lresult'] = $lresult->readAll();
2429
2430 $meaquery = "SELECT question, title FROM {{questions}} WHERE parent_qid={$deqrow['qid']} and scale_id=0 and language='{$sDataEntryLanguage}' ORDER BY question_order";
2431 $mearesult=dbExecuteAssoc($meaquery) or die ("Couldn't get answers, Type \":\"<br />$meaquery<br />");
2432 $cdata['mearesult'] = $mearesult->readAll();
2433
2434 break;
Stack Trace
#0
unknown(0): dataentry->view("815339", null)
#1

  • /home1/tomwhite/public_html/ls2/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(dataentry, array("815339", null))
    #2
    – /home1/tomwhite/public_html/ls2/application/core/Survey_Common_Action.php(82): CAction->runWithParamsInternal(dataentry, ReflectionMethod, array("surveyid" => "815339", "sa" => "view", "iSurveyId" => "815339", "iSurveyID" => "815339"))
    77 $oMethod = new ReflectionMethod($this, $sDefault);
    78 }
    79
    80 // We're all good to go, let's execute it
    81 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
    82 return parent::runWithParamsInternal($this, $oMethod, $params);
    83 }
    84
    85 /*
    86
    Some functions have different parameters, which are just an alias of the
    87 * usual parameters we're getting in the url. This function just populates
    #3
  • /home1/tomwhite/public_html/ls2/framework/web/CController.php(309): Survey_Common_Action->runWithParams(array("surveyid" => "815339", "sa" => "view"))
    #4
  • /home1/tomwhite/public_html/ls2/framework/web/CController.php(287): CController->runAction(dataentry)
    #5
  • /home1/tomwhite/public_html/ls2/framework/web/CController.php(266): CController->runActionWithFilters(dataentry, array())
    #6
    – /home1/tomwhite/public_html/ls2/application/controllers/AdminController.php(158): CController->run("dataentry")
    153 Yii::app()->session['redirectopage'] = Yii::app()->request->requestUri;
    154
    155 $this->redirect($this->createUrl('/admin/authentication/login'));
    156 }
    157
    158 return parent::run($action);
    159 }
    160
    161 /*
    162
    Routes all the actions to their respective places
    163 *
    #7
  • /home1/tomwhite/public_html/ls2/framework/web/CWebApplication.php(276): AdminController->run("dataentry")
    #8
  • /home1/tomwhite/public_html/ls2/framework/web/CWebApplication.php(135): CWebApplication->runController("admin/dataentry/sa/view")
    #9
  • /home1/tomwhite/public_html/ls2/framework/base/CApplication.php(162): CWebApplication->processRequest()
    #10
    – /home1/tomwhite/public_html/ls2/index.php(171): CApplication->run()
    166
    167
    /
    168 require_once BASEPATH . 'yii' . EXT;
    169 require_once APPPATH . 'core/LSYii_Application' . EXT;
    170
    171 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run();
    172
    173 / End of file index.php /
    174 / Location: ./index.php /
    2012-06-22 15:50:44 Apache Yii Framework/1.1.10
c_schmitz

c_schmitz

2012-06-22 23:52

administrator   ~19505

Can you please attach the survey?

TMSWhite

TMSWhite

2012-06-23 00:06

reporter   ~19511

/docs/demosurveys/ls2_validation_tests.lss
/docs/demosurveys/ls2_plurals_test.lss

c_schmitz

c_schmitz

2012-06-23 16:02

administrator   ~19515

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

c_schmitz

c_schmitz

2012-07-19 23:34

administrator   ~19840

2.00RC6 released.

Related Changesets

LimeSurvey: Yii 9d501f68

2012-06-22 14:35:26

c_schmitz

Details Diff
Fixed issue 06264: Unable to access data entry screen Affected Issues
06264
mod - application/controllers/admin/dataentry.php Diff File

LimeSurvey: Yii d0a60560

2012-06-23 07:02:24

c_schmitz

Details Diff
Fixed issue 06264: Unable to access data entry screen Affected Issues
06264
mod - application/controllers/admin/dataentry.php Diff File

Issue History

Date Modified Username Field Change
2012-06-22 22:33 TMSWhite New Issue
2012-06-22 23:35 c_schmitz Changeset attached => LimeSurvey Yii 9d501f68
2012-06-22 23:35 c_schmitz Note Added: 19497
2012-06-22 23:35 c_schmitz Assigned To => c_schmitz
2012-06-22 23:35 c_schmitz Resolution open => fixed
2012-06-22 23:35 c_schmitz Status new => assigned
2012-06-22 23:35 c_schmitz Status assigned => resolved
2012-06-22 23:35 c_schmitz Fixed in Version => 2.00RC5
2012-06-22 23:51 TMSWhite Note Added: 19503
2012-06-22 23:51 TMSWhite Status resolved => assigned
2012-06-22 23:52 c_schmitz Note Added: 19505
2012-06-22 23:52 c_schmitz Status assigned => feedback
2012-06-23 00:06 TMSWhite Note Added: 19511
2012-06-23 00:06 TMSWhite Status feedback => assigned
2012-06-23 16:02 c_schmitz Changeset attached => LimeSurvey Yii d0a60560
2012-06-23 16:02 c_schmitz Note Added: 19515
2012-06-23 16:02 c_schmitz Status assigned => resolved
2012-07-19 23:34 c_schmitz Note Added: 19840
2012-07-19 23:34 c_schmitz Status resolved => closed