Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: problem with upload question

problem with upload question 1 Jahr 2 Monate her #106207

  • ricardo
  • ricardos Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 117
  • Dank erhalten: 1
  • Karma: 0
Every time participants attach a file they cannot go back to the survey and must exit and return, with the document not attached.

Using version 2.05+ Build 140116 Tried to update but ComfortUpdate fails at step 4. Reported bug 3 days ago.

Help with this issued is much appreciated...and needed
Der Administrator hat öffentliche Schreibrechte deaktiviert.

problem with upload question 1 Jahr 2 Monate her #106224

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 7140
  • Dank erhalten: 977
  • Karma: 285
Hi,

Maybe there are some scories(file leave here, but not needed) after confortupdate.Then : try manual update (replace your file with 'official' file) and did the user clean their browser cache ?

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.

problem with upload question 1 Jahr 2 Monate her #106260

  • ricardo
  • ricardos Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 117
  • Dank erhalten: 1
  • Karma: 0
Hi Denis,

Thanks for the reply...I haven't been able to do comfort update becasue the process always fails at step 4. I've got some serious surveys going on, and I'm hestitant to do a manual update.
I'll wait till I hear if the comfortUpdate problem is a bug or it's just me who's having problems with this.

cheers
Der Administrator hat öffentliche Schreibrechte deaktiviert.

problem with upload question 1 Jahr 2 Monate her #106278

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 7140
  • Dank erhalten: 977
  • Karma: 285
What's is your PHP version ?
2.05 need PHP5.3 and up.

Denis
Der Administrator hat öffentliche Schreibrechte deaktiviert.

problem with upload question 1 Jahr 2 Monate her #106368

  • ricardo
  • ricardos Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 117
  • Dank erhalten: 1
  • Karma: 0
PHP 5.3.25 I updated the installation, but the upload question persists. There's no button to go back to the survey after uploading a document
Der Administrator hat öffentliche Schreibrechte deaktiviert.

problem with upload question 1 Jahr 2 Monate her #106370

  • ricardo
  • ricardos Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 117
  • Dank erhalten: 1
  • Karma: 0
I created a test survey with only one group and a file-upload question...and the good news is that the question is working fine. I was able to upload a file and go back to the survey.

This means that something in the survey is creating the error. I'm now going group by group, question by question to find out what causes the file upload to crash.

I'm attaching the lls file, in case somebody would like to take a look too.

Thanks

Dateianhang:

Dateiname: llpApplication.lss
Dateigröße: 121 KB
Der Administrator hat öffentliche Schreibrechte deaktiviert.

problem with upload question 1 Jahr 2 Monate her #106371

  • ricardo
  • ricardos Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 117
  • Dank erhalten: 1
  • Karma: 0
One of my questions in the group where the file upload question is, has a javascript code. I deleted the function and the upload question is now working fine. This function had been working fine...what could've changed?

<script type="text/javascript" charset="utf-8">
$(document).ready(function(){

// Identify the questions
var q1ID = '{QID}';
var q1 = $('#question'+q1ID+'');
var q2 = $(q1).nextAll('.array-multi-flexi-text:eq(0)');
var q2ID = $(q2).attr('id').split('question')[1];

// Initial row handling
handleRows($('input[type="text"]', q1));

// Listener on the numeric input
$('input[type="text"]', q1).change(function(){
var maxRows = $('tr:[id^="javatbd"]', q2).length;
if($(this).val() > maxRows) {
alert('You can only display a maximum of '+maxRows+' rows!');
$(this).val('');
}
else {
handleRows(this);
}
});

function handleRows(el) {
var numRows = $(el).val();
$('tr:[id^="javatbd"]', q2).hide();
$('tr:[id^="javatbd"]', q2).each(function(i){
if(i >= numRows) {
$('input[type="text"], select', this).val('');
}
else {
$(this).show();
}
})
}
});
</script>How many courses, focused on or related to entrepreneurship, are you teaching this year?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

problem with upload question 1 Jahr 2 Monate her #106381

  • tpartner
  • tpartners Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 4839
  • Dank erhalten: 987
  • Karma: 417
There are syntax errors that the new version of jQuery will not tolerate.

You need to change all instances of this:
$('tr:[id^="javatbd"]', q2)
To this:
$('tr[id^="javatbd"]', q2)


<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function(){
 
		// Identify the questions
		var q1ID = '{QID}';
		var q1 = $('#question'+q1ID+'');
		var q2 = $(q1).nextAll('.array-multi-flexi-text:eq(0)');
		var q2ID = $(q2).attr('id').split('question')[1];
 
		// Initial row handling
		handleRows($('input[type="text"]', q1));
 
		// Listener on the numeric input
		$('input[type="text"]', q1).change(function(){
			var maxRows = $('tr[id^="javatbd"]', q2).length;
			if($(this).val() > maxRows) {
				alert('You can only display a maximum of '+maxRows+' rows!');
				$(this).val('');
			}
			else {
				handleRows(this);
			}
		});
 
		function handleRows(el) {
			var numRows = $(el).val();
			$('tr[id^="javatbd"]', q2).hide();
			$('tr[id^="javatbd"]', q2).each(function(i){
				if(i >= numRows) {
					$('input[type="text"], select', this).val('');
				}
				else {
					$(this).show();
				}
			})
		}
	});
</script>
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
Letzte Änderung: 1 Jahr 2 Monate her von tpartner.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.164 Sekunden
Donation Image