id related_id class type/scale name relevance text help language validation mandatory other default same_default allowed_filetypes alphasort answer_width answer_width_bycolumn array_filter array_filter_exclude array_filter_style assessment_value category_separator choice_input_columns choice_title code_filter commented_checkbox commented_checkbox_auto cssclass date_format date_max date_min display_columns display_rows display_type dropdown_dates dropdown_dates_minute_step dropdown_dates_month_style dropdown_prefix dropdown_prepostfix dropdown_separators dropdown_size dualscale_headerA dualscale_headerB em_validation_q em_validation_q_tip em_validation_sq em_validation_sq_tip equals_num_value equation exclude_all_others exclude_all_others_auto hidden hide_tip input_boxes input_size label_input_columns location_city location_country location_defaultcoordinates location_mapheight location_mapservice location_mapwidth location_mapzoom location_nodefaultfromip location_postal location_state max_answers max_filesize max_num_of_files max_num_value max_num_value_n max_subquestions maximum_chars min_answers min_num_of_files min_num_value min_num_value_n multiflexible_checkbox multiflexible_max multiflexible_min multiflexible_step num_value_int_only numbers_only other_comment_mandatory other_numbers_only other_replace_text page_break parent_order placeholder prefix printable_help public_statistics random_group random_order rank_title repeat_headings reverse samechoiceheight samelistheight scale_export show_comment show_grand_total show_title show_totals showpopups slider_accuracy slider_custom_handle slider_default slider_default_set slider_handle slider_layout slider_max slider_middlestart slider_min slider_orientation slider_rating slider_reset slider_reversed slider_separator slider_showminmax statistics_graphtype statistics_showgraph statistics_showmap suffix text_input_columns text_input_width time_limit time_limit_action time_limit_countdown_message time_limit_disable_next time_limit_disable_prev time_limit_message time_limit_message_delay time_limit_message_style time_limit_timer_style time_limit_warning time_limit_warning_2 time_limit_warning_2_display_time time_limit_warning_2_message time_limit_warning_2_style time_limit_warning_display_time time_limit_warning_message time_limit_warning_style use_dropdown value_range_allows_missing S sid 141682 S admin inherit S adminemail inherit S anonymized I S faxto S format I S savetimings I S template inherit S language en S additional_languages S datestamp I S usecookie I S allowregister I S allowsave I S autonumber_start 0 S autoredirect I S allowprev I S printanswers I S ipaddr I S refurl I S publicstatistics I S publicgraphs I S listpublic I S htmlemail I S sendconfirmation I S tokenanswerspersistence I S assessments I S usecaptcha E S usetokens N S bounce_email inherit S emailresponseto inherit S emailnotificationto inherit S tokenlength -1 S showxquestions I S showgroupinfo I S shownoanswer I S showqnumcode I S bounceprocessing N S showwelcome I S showprogress I S questionindex -1 S navigationdelay -1 S nokeyboard I S alloweditaftercompletion I S gsid 1 S showsurveypolicynotice 0 S tokenencryptionoptions S ipanonymize I SL surveyls_survey_id 141682 en SL surveyls_language en en SL surveyls_title test en SL surveyls_description en SL surveyls_welcometext en SL surveyls_endtext en SL surveyls_url en SL surveyls_urldescription en SL surveyls_email_invite_subj "Invitation to participate in a survey" en SL surveyls_email_invite "Dear {FIRSTNAME},you have been invited to participate in a survey.The survey is titled:""{SURVEYNAME}""""{SURVEYDESCRIPTION}""To participate, please click on the link below.Sincerely,{ADMINNAME} ({ADMINEMAIL})----------------------------------------------Click here to do the survey:{SURVEYURL}If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:{OPTOUTURL}If you are blacklisted but want to participate in this survey and want to receive invitations please click the following link:{OPTINURL}" en SL surveyls_email_remind_subj "Reminder to participate in a survey" en SL surveyls_email_remind "Dear {FIRSTNAME},Recently we invited you to participate in a survey.We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part.The survey is titled:""{SURVEYNAME}""""{SURVEYDESCRIPTION}""To participate, please click on the link below.Sincerely,{ADMINNAME} ({ADMINEMAIL})----------------------------------------------Click here to do the survey:{SURVEYURL}If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:{OPTOUTURL}" en SL surveyls_email_register_subj "Survey registration confirmation" en SL surveyls_email_register "Dear {FIRSTNAME},You, or someone using your email address, have registered to participate in an online survey titled {SURVEYNAME}.To complete this survey, click on the following URL:{SURVEYURL}If you have any questions about this survey, or if you did not register to participate and believe this email is in error, please contact {ADMINNAME} at {ADMINEMAIL}." en SL surveyls_email_confirm_subj "Confirmation of your participation in our survey" en SL surveyls_email_confirm "Dear {FIRSTNAME},this email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.If you have any further questions about this email, please contact {ADMINNAME} on {ADMINEMAIL}.Sincerely,{ADMINNAME}" en SL surveyls_dateformat 9 en SL email_admin_notification_subj "Response submission for survey {SURVEYNAME}" en SL email_admin_notification "Hello,A new response was submitted for your survey '{SURVEYNAME}'.Click the following link to see the individual response:{VIEWRESPONSEURL}Click the following link to edit the individual response:{EDITRESPONSEURL}View statistics by clicking here:{STATISTICSURL}" en SL email_admin_responses_subj "Response submission for survey {SURVEYNAME} with results" en SL email_admin_responses "Hello,A new response was submitted for your survey '{SURVEYNAME}'.Click the following link to see the individual response:{VIEWRESPONSEURL}Click the following link to edit the individual response:{EDITRESPONSEURL}View statistics by clicking here:{STATISTICSURL}The following answers were given by the participant:{ANSWERTABLE}" en SL surveyls_numberformat 0 en PHP notice

PHP notice

Undefined offset: 0

/var/www/surveys/application/helpers/export_helper.php(2574)

2562             $defaultvalues[$defaultvalue['language']][$defaultvalue['sqid']] = $defaultvalue['defaultvalue'];
2563         } else {
2564             $defaultvalues[$defaultvalue['language']][$defaultvalue['qid']] = $defaultvalue['defaultvalue'];
2565         }
2566     }
2567 
2568     $groups = array();
2569     $index_languages = 0;
2570     foreach ($aSurveyLanguages as $key => $language) {
2571         // groups data
2572         if (array_key_exists('groups', $xmlData)){
2573             // Converting the XML to array has the disadvantage that if only there is one child it will not be properly nested in the array
2574             if (!array_key_exists('gid', $xmlData['groups']['rows']['row'][0])){
2575                 $aSaveData=$xmlData['groups']['rows']['row'];
2576                 unset($xmlData['groups']['rows']['row']);
2577                 $xmlData['groups']['rows']['row'][0] = $aSaveData;
2578             }
2579 
2580             foreach($xmlData['groups']['rows']['row'] as $group){
2581                 $groups_data[$group['gid']] = $group;
2582             }
2583 
2584             // Converting the XML to array has the disadvantage that if only there is one child it will not be properly nested in the array
2585             if (!array_key_exists('gid', $xmlData['group_l10ns']['rows']['row'][0])){
2586                 $aSaveData=$xmlData['group_l10ns']['rows']['row'];

Stack Trace

#0
+
 /var/www/surveys/application/controllers/admin/export.php(1344): tsvSurveyExport("141682")
1339         header("Content-Type: text/tab-separated-values charset=UTF-8");
1340         header("Content-Disposition: attachment; filename=$fn");
1341         header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
1342         header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
1343         header("Cache-Control: must-revalidate, no-store, no-cache");
1344         tsvSurveyExport($surveyid);
1345     }
1346 
1347     /**
1348      * @param string $content_type
1349      */
#1
+
 /var/www/surveys/application/controllers/admin/export.php(1083): export->_exporttsv("141682")
1078 
1079                 echo quexml_export($iSurveyID, $quexmllang);
1080                 Yii::app()->end();
1081             }
1082         } elseif ($action == 'exportstructuretsv') {
1083             $this->_exporttsv($iSurveyID);
1084         } elseif ($action == "exportarchive") {
1085             $this->_exportarchive($iSurveyID);
1086         } elseif ($action == "exportprintables") {
1087             $this->_exportPrintableHtmls($iSurveyID);
1088         }
#2
+
 /var/www/surveys/application/controllers/admin/export.php(42): export->_surveyexport("exportstructuretsv", "141682")
37     {
38         $action = Yii::app()->request->getParam('action');
39         $iSurveyID = sanitize_int(Yii::app()->request->getParam('surveyid'));
40 
41         if (Permission::model()->hasSurveyPermission($iSurveyID, 'surveycontent', 'export')) {
42             $this->_surveyexport($action, $iSurveyID);
43             return;
44         }
45     }
46 
47     /**
2020-05-21 17:56:04 nginx/1.10.3 Yii Framework/1.1.22-dev