View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
08109Bug reportsOtherpublic2013-09-05 11:56
Reporterkbarrientos Assigned ToMazi  
PrioritynormalSeveritypartial_block 
Status closedResolutionduplicate 
Product Version2.00+ 
Summary08109: Copying a question
Description

Getting an error when a copying a question. Please refer to the attached screenshot for reference.

Steps To Reproduce

Copy a sample question by click the button for copy question
Give a new code
*Save and then error will come out

TagsNo tags attached.
Attached Files
copy_question_bug.jpg (80,245 bytes)   
copy_question_bug.jpg (80,245 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)130708
I will donate to the project if issue is resolvedNo
BrowserMozilla Firefox
Database type & versionMySQL 5.0.92-50-log
Server OS (if known)Red Hat Enterprise Linux Server release 5.3 (Tikanga)
Webserver software & version (if known)Apache/2.2.3 (CentOS)
PHP VersionPHP Version 5.1.6

Relationships

related to 07787 closedc_schmitz "General error: 2014 Cannot execute queries while other unbuffered queries are active" on function "Get statistics" 
related to 07833 closedc_schmitz "General error: 2014 Cannot execute queries while other unbuffered queries are active" on "editconditionsform" 
related to 08117 closedmdekker Getting an error message when pressing the conditioning button 

Users monitoring this issue

There are no users monitoring this issue.

Activities

kbarrientos

kbarrientos

2013-08-22 10:44

reporter   ~26044

Also attached a simple survey for testing purposes.

DenisChenu

DenisChenu

2013-08-27 14:38

developer   ~26100

Please:

  • Update to last version
  • Set config to 2
  • Attch complete callstack (the HTML error file produced)
kbarrientos

kbarrientos

2013-08-28 09:21

reporter   ~26103

Hello DenisChenu, what is this config setting? where do i set config to 2? Thanks

DenisChenu

DenisChenu

2013-08-28 09:54

developer   ~26104

Hi,

You need FTP access, the file is "aplication/config/config.php" . In this file, you see 'config'=>0 , replace it by 'config'=>2.

kbarrientos

kbarrientos

2013-09-04 10:12

reporter   ~26147

Hello DenisChenu, I already replaced the config from 0 to 2. But the problem now is I'm having issues with logging in to lime 2.0 I can't access the login page anymore.Please have a look at the following errors.

kbarrientos

kbarrientos

2013-09-04 10:12

reporter   ~26148

PHP warning

Wrong parameter count for session_set_cookie_params()

/home/medimix/www/DEVLMS/limesurvey2/framework/web/CHttpSession.php(244)

232 Sets the session cookie parameters.
233
The effect of this method only lasts for the duration of the script.
234 Call this method before the session starts.
235
@param array $value cookie parameters, valid keys include: lifetime, path, domain, secure.
236 @see http://us2.php.net/manual/en/function.session-set-cookie-params.php
237
/
238 public function setCookieParams($value)
239 {
240 $data=session_get_cookie_params();
241 extract($data);
242 extract($value);
243 if(isset($httponly))
244 session_set_cookie_params($lifetime,$path,$domain,$secure,$httponly);
245 else
246 session_set_cookie_params($lifetime,$path,$domain,$secure);
247 }
248
249 /*
250
@return string how to use cookie to store session ID. Defaults to 'Allow'.
251 */
252 public function getCookieMode()
253 {
254 if(ini_get('session.use_cookies')==='0')
255 return 'none';
256 else if(ini_get('session.use_only_cookies')==='0')
Stack Trace
#0

  • /home/medimix/www/DEVLMS/limesurvey2/framework/web/CHttpSession.php(244): session_set_cookie_params(0, "/", "", false, ...)
    #1
  • /home/medimix/www/DEVLMS/limesurvey2/framework/base/CComponent.php(153): CHttpSession->setCookieParams(array("httponly" => true))
    #2
  • /home/medimix/www/DEVLMS/limesurvey2/framework/YiiBase.php(222): CComponent->__set("cookieParams", array("httponly" => true))
    #3
  • /home/medimix/www/DEVLMS/limesurvey2/framework/base/CModule.php(387): YiiBase::createComponent(array("class" => "CHttpSession", "cookieParams" => array("httponly" => true)))
    #4
  • /home/medimix/www/DEVLMS/limesurvey2/framework/base/CModule.php(104): CModule->getComponent("session")
    #5
    – /home/medimix/www/DEVLMS/limesurvey2/application/core/LSYii_Controller.php(31): CModule->get("session")
    26 public function
    construct($id, $module = null)
    27 {
    28 parent::__construct($id, $module);
    29 $this->_checkInstallation();
    30
    31 Yii::app()->session->init();
    32 $this->loadLibrary('LS.LS');
    33 $this->loadHelper('globalsettings');
    34 $this->loadHelper('common');
    35 $this->loadHelper('expressions.em_manager');
    36 $this->loadHelper('replacements');
    #6
  • /home/medimix/www/DEVLMS/limesurvey2/framework/web/CWebApplication.php(349): LSYii_Controller->__construct("admin", null)
    #7
  • /home/medimix/www/DEVLMS/limesurvey2/framework/web/CWebApplication.php(270): CWebApplication->createController("admin")
    #8
  • /home/medimix/www/DEVLMS/limesurvey2/framework/web/CWebApplication.php(135): CWebApplication->runController("admin")
    #9
  • /home/medimix/www/DEVLMS/limesurvey2/framework/base/CApplication.php(162): CWebApplication->processRequest()
    #10
    – /home/medimix/www/DEVLMS/limesurvey2/index.php(179): CApplication->run()
    174
    175
    /
    176 require_once BASEPATH . 'yii' . EXT;
    177 require_once APPPATH . 'core/LSYii_Application' . EXT;
    178
    179 Yii::createApplication('LSYii_Application', APPPATH . 'config/config' . EXT)->run();
    180
    181 / End of file index.php /
    182 / Location: ./index.php /
    2013-09-04 04:09:22 Apache/2.2.3 (CentOS) Yii Framework/1.1.10
kbarrientos

kbarrientos

2013-09-04 10:13

reporter   ~26149

Please advice. Thank you.

DenisChenu

DenisChenu

2013-09-04 10:36

developer   ~26150

Think you made an error when put the 2

// Use the following config variable to set modified optional settings copied from config-defaults.php
'config'=>array(
// debug: Set this to 1 if you are looking for errors. If you still get no errors after enabling this
// then please check your error-logs - either in your hosting provider admin panel or in some /logs directory
// on your webspace.
// LimeSurvey developers: Set this to 2 to additionally display STRICT PHP error messages and get full access to standard templates
    'debug'=>0,
    'debugsql'=>0 // Set this to 1 to enanble sql logging, only active when debug = 2
)

);
/ End of file config.php /

kbarrientos

kbarrientos

2013-09-04 11:51

reporter   ~26155

Hello Guys, the fix for this issue http://bugs.limesurvey.org/view.php?id=8117 also applies for this one. Error doesn't show up anymore. Thanks.

Issue History

Date Modified Username Field Change
2013-08-22 10:43 kbarrientos New Issue
2013-08-22 10:43 kbarrientos File Added: copy_question_bug.jpg
2013-08-22 10:44 kbarrientos Note Added: 26044
2013-08-22 10:44 kbarrientos File Added: limesurvey_survey_233968.lss
2013-08-27 14:37 DenisChenu Relationship added related to 07787
2013-08-27 14:38 DenisChenu Relationship added related to 07833
2013-08-27 14:38 DenisChenu Note Added: 26100
2013-08-28 09:21 kbarrientos Note Added: 26103
2013-08-28 09:54 DenisChenu Note Added: 26104
2013-09-04 10:12 kbarrientos Note Added: 26147
2013-09-04 10:12 kbarrientos Note Added: 26148
2013-09-04 10:13 kbarrientos Note Added: 26149
2013-09-04 10:36 DenisChenu Note Added: 26150
2013-09-04 11:51 kbarrientos Note Added: 26155
2013-09-04 12:34 DenisChenu Relationship added related to 08117
2013-09-05 11:56 Mazi Status new => closed
2013-09-05 11:56 Mazi Assigned To => Mazi
2013-09-05 11:56 Mazi Resolution open => duplicate