View Issue Details

IDProjectCategoryView StatusLast Update
05563User patchesRemoteControlpublic2012-06-21 14:16
Reporterpdedou Assigned To 
PrioritynormalSeveritytrivial 
Status confirmedResolutionopen 
Product Version1.91+ 
Summary05563: When fSendStatistic function is used, the following SOAP-ERROR comes up: Call to a member function SetLanguage() on a non-object
Description

I updated LimeSurvey to the current build (11232) and i noticed this issue "Call to a member function SetLanguage() on a non-object" when i used the fSendStatistic function. I 've already fixed it by patching the lsrc.helper.php.

Steps To Reproduce

Use fSendStatistic function like: fSendStatistic('username', 'password', 1000, 'reporter@limesurvey.org', 'html', '0').

TagsNo tags attached.
Complete LimeSurvey version number (& build)11232

Activities

pdedou

pdedou

2011-11-08 10:32

reporter  

lsrc.helper.php.diff (1,452 bytes)   
Index: lsrc.helper.php
===================================================================
--- lsrc.helper.php	(revision 11232)
+++ lsrc.helper.php	(working copy)
@@ -2056,6 +2056,7 @@
         include("lsrc.config.php");
         global $sitename;
         global $clang;
+        $mail = new PHPMailer();
 
 
         if($tempFile==null && isset($html))
@@ -2109,12 +2110,12 @@
 				."</style>";
 
 				$message = sprintf($clang->gT("This is your personal statistic sheet for survey #%s"),$css."<center>".$message.$surveyid."<br/>".$html."</center>");
-				return SendEmailMessage($message, sprintf($clang->gT("Statistics Survey #%s"),$surveyid), $to, getBounceEmail($surveyid), $sitename, true);
+                return SendEmailMessage($mail, $message, sprintf($clang->gT("Statistics Survey #%s"),$surveyid), $to, getBounceEmail($surveyid), $sitename, true);
         }
         else
         {
             $message = sprintf($clang->gT("This is your personal statistic sheet for survey #%s"),$surveyid);
-            return SendEmailMessage($message, sprintf($clang->gT("Statistics Survey #%s"),$surveyid), $to , getBounceEmail($surveyid), $sitename, $ishtml, getBounceEmail($surveyid), $tempFile);
+            return SendEmailMessage($mail, $message, sprintf($clang->gT("Statistics Survey #%s"),$surveyid), $to , getBounceEmail($surveyid), $sitename, $ishtml, getBounceEmail($surveyid), $tempFile);
         }
 
     }
lsrc.helper.php.diff (1,452 bytes)   

Issue History

Date Modified Username Field Change
2011-11-08 10:32 pdedou New Issue
2011-11-08 10:32 pdedou File Added: lsrc.helper.php.diff
2011-11-08 11:57 c_schmitz Assigned To => c_schmitz
2011-11-08 11:57 c_schmitz Status new => acknowledged
2011-11-08 11:57 c_schmitz Project Bug reports => User patches
2012-06-21 13:30 c_schmitz Status acknowledged => confirmed
2012-06-21 13:33 c_schmitz Priority none => normal
2012-06-21 14:16 c_schmitz Assigned To c_schmitz =>