View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
09981Bug reportsSurvey editingpublic2015-11-10 12:28
ReporterDenisChenu Assigned Tosammousa  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Summary09981: LS3 : unable to delete survey(s)
Description

1st : trying to delete MULTIPLE survey on survey/index : return
Argument 1 passed to ls\models\ActiveRecord::deleteDependent() must be an instance of CDbConnection, none given, called in /var/www/ls3/protected/controllers/SurveysController.php on line 313 and defined in index.php?r=surveys/deleteMultiple
2nd : on survey/index : click on delete do nothing
3rd : on survey/update : click on delete (top/right) : nothing happen

Steps To Reproduce

See Description

TagsNo tags attached.
Attached Files
deleteMultiple.html (4,670 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>Internal Server Error</title>

<style type="text/css">
/*<![CDATA[*/
body {font-family:"Verdana";font-weight:normal;color:black;background-color:white;}
h1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
h2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
h3 {font-family:"Verdana";font-weight:bold;font-size:11pt}
p {font-family:"Verdana";font-weight:normal;color:black;font-size:9pt;margin-top: -5px}
.version {color: gray;font-size:8pt;border-top:1px solid #aaaaaa;}
/*]]>*/
</style>
<style>#content > #right > .dose > .dosesingle,
#content > #center > .dose > .dosesingle
{display:none !important;}</style></head>

<body>
<h1>Internal Server Error</h1>
<h2>Argument 1 passed to ls\models\ActiveRecord::deleteDependent() must 
be an instance of CDbConnection, none given, called in 
/var/www/ls3/protected/controllers/SurveysController.php on line 313 and
 defined</h2>
<p>
An internal error occurred while the Web server was processing your request.
Please contact the webmaster to report this problem.
</p>
<p>
Thank you.
</p>
<div class="version">
2015-10-20 08:46:01 </div>


<table class="yiiLog" style="border-spacing:1px;font:11px Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;color:#666666;" cellpadding="2" width="100%">
	<tbody><tr>
		<th style="background:black;color:white;" colspan="5">
			Application Log
		</th>
	</tr>
	<tr style="background-color: #ccc;">
	    <th style="width:120px">Timestamp</th>
		<th>Level</th>
		<th>Category</th>
		<th>Message</th>
	</tr>
	<tr style="background:#FFC0CB">
		<td align="center">08:46:01.558438</td>
		<td>error</td>
		<td>php</td>
		<td><pre>Argument 1 passed to ls\models\ActiveRecord::deleteDependent() must be an
instance of CDbConnection, none given, called in
/var/www/ls3/protected/controllers/SurveysController.php on line 313 and
defined (/var/www/ls3/protected/traits/DependentRecordTrait.php:18)
Stack trace:
#0
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/actions/CAction.php(109):
ReflectionMethod-&gt;invokeArgs()
#1
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(47):
CInlineAction-&gt;runWithParamsInternal()
#2
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/CController.php(308):
CInlineAction-&gt;runWithParams()
#3
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(133):
ls\controllers\SurveysController-&gt;runAction()
#4
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/filters/CFilter.php(40):
CFilterChain-&gt;run()
#5
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/CController.php(1145):
CAccessControlFilter-&gt;filter()
#6
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/filters/CInlineFilter.php(58):
ls\controllers\SurveysController-&gt;filterAccessControl()
#7
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(130):
CInlineFilter-&gt;filter()
#8
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/filters/CFilter.php(40):
CFilterChain-&gt;run()
#9
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/CController.php(1145):
CAccessControlFilter-&gt;filter()
#10
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/filters/CInlineFilter.php(58):
ls\controllers\SurveysController-&gt;filterAccessControl()
#11
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/filters/CFilterChain.php(130):
CInlineFilter-&gt;filter()
#12
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/CController.php(291):
CFilterChain-&gt;run()
#13
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/CController.php(265):
ls\controllers\SurveysController-&gt;runActionWithFilters()
#14
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(282):
ls\controllers\SurveysController-&gt;run()
#15
/var/www/ls3/protected/vendor/yiisoft/yii/framework/web/CWebApplication.php(141):
WebApplication-&gt;runController()
#16 /var/www/ls3/protected/core/WebApplication.php(80):
WebApplication-&gt;processRequest()
#17
/var/www/ls3/protected/vendor/yiisoft/yii/framework/base/CApplication.php(184):
WebApplication-&gt;processRequest()
#18 /var/www/ls3/protected/entry.php(51): WebApplication-&gt;run()
#19 /var/www/ls3/public/index.php(4): include()
REQUEST_URI=/ls3/index.php?r=surveys/deleteMultiple</pre></td>
	</tr></tbody></table>
<!-- end of log messages --></body></html>
<!-- start log messages -->
deleteMultiple.html (4,670 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)90481ff82d9f189fc7d8b64ab92a
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionmysql 5
Server OS (if known)debian8/linux
Webserver software & version (if known)ngync
PHP VersionPHP Version 5.6.9-0+deb8u1

Users monitoring this issue

There are no users monitoring this issue.

Activities

sammousa

sammousa

2015-10-21 12:17

reporter   ~33405

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

DenisChenu

DenisChenu

2015-10-21 12:37

developer   ~33406

Hi sammousa : think it fix the 1st but not
2nd : on survey/index : click on delete do nothing
3rd : on survey/update : click on delete (top/right) : nothing happen

Did you want to do it in js+php here ?
Using SurveysController->actionDelete($id) ?
Show a modal box with "Some information , really with to delete [checkbox]"
And reload page after.

Denis

Related Changesets

LimeSurvey: develop bf2fa607

2015-10-21 10:17:08

sammousa

Details Diff
Fixed issue 09981 Affected Issues
09981
mod - protected/controllers/SurveysController.php Diff File

Issue History

Date Modified Username Field Change
2015-10-20 10:45 DenisChenu New Issue
2015-10-20 10:45 DenisChenu Status new => assigned
2015-10-20 10:45 DenisChenu Assigned To => sammousa
2015-10-20 10:46 DenisChenu File Added: deleteMultiple.html
2015-10-21 12:17 sammousa Status assigned => resolved
2015-10-21 12:17 sammousa Resolution open => fixed
2015-10-21 12:17 sammousa Changeset attached => LimeSurvey develop bf2fa607
2015-10-21 12:17 sammousa Note Added: 33405
2015-10-21 12:37 DenisChenu Note Added: 33406
2015-11-10 12:28 c_schmitz Status resolved => closed
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing