PHP warning

Undefined array key 1

/media/shnoulle/data/www/master/application/core/LimeMailer.php(836)

824         }
825     }
826 
827     /**
828      * Variables needed to resend saved emails
829      * @return array
830      */
831     public function getResendEmailVars()
832     {
833         $resendHeader['message_type'] = $this->message_type;
834         $resendHeader['Subject'] = $this->Subject;
835         $resendHeader['uniqueid'] = $this->uniqueid;
836         $resendHeader['boundary'][1] = $this->boundary[1];
837         $resendHeader['boundary'][2] = $this->boundary[2];
838         $resendHeader['boundary'][3] = $this->boundary[3];
839         $resendHeader['MIMEBody'] = $this->MIMEBody;
840 
841         return $resendHeader;
842     }
843 
844     /**
845      * Get the replacements for token.
846      * @return string[]
847      */
848     public function getTokenReplacements()

Stack Trace

#0
+
 /media/shnoulle/data/www/master/application/helpers/frontend_helper.php(675): LimeMailer->getResendEmailVars()
670  * @return bool
671  */
672 function saveFailedEmail(?int $id, ?string $recipient, int $surveyId, int $responseId, string $emailType, ?string $language, LimeMailer $mailer): bool
673 {
674     $errorMessage = $mailer->getError();
675     $resendVars = json_encode($mailer->getResendEmailVars());
676     if (isset($id)) {
677         $failedEmail = FailedEmail::model()->findByPk($id);
678         if (isset($failedEmail)) {
679             $failedEmail->surveyid = $surveyId;
680             $failedEmail->error_message = $errorMessage;
#1
+
 /media/shnoulle/data/www/master/application/helpers/frontend_helper.php(549): saveFailedEmail(null, "denis@sondages.pro", 623399, 2, ...)
544                 $mailer->setTo($notificationRecipient);
545                 $mailerSuccess = $mailer->SendMessage();
546             }
547             if (!$mailerSuccess) {
548                 $failedEmailCount++;
549                 saveFailedEmail($failedNotificationId, $notificationRecipient, $surveyid, $responseId, 'admin_notification', $emailLanguage, $mailer);
550                 if (empty($emails) && $debug > 0 && Permission::model()->hasSurveyPermission($surveyid, 'surveysettings', 'update')) {
551                     /* Find a better way to show email error … */
552                     echo CHtml::tag(
553                         "div",
554                         ['class' => 'alert alert-danger'],
#2
+
 /media/shnoulle/data/www/master/application/helpers/SurveyRuntimeHelper.php(1287): sendSubmitNotifications(623399)
1282             if ($surveyActive && $oSurvey->getHasTokensTable()) {
1283                 submittokens();
1284             }
1285             //Send notifications
1286             if ($surveyActive) {
1287                 sendSubmitNotifications($this->iSurveyid);
1288             }
1289             // Link to Print Answer Preview  **********
1290             $this->aSurveyInfo['aCompleted']['aPrintAnswers']['show'] = false;
1291             if ($this->aSurveyInfo['printanswers'] == 'Y') {
1292                 $this->aSurveyInfo['aCompleted']['aPrintAnswers']['show']  = true;
2026-06-05 15:27:05 nginx/1.26.3 Yii Framework/1.1.32