Recoverable error
Object of class Tokens_dynamic could not be converted to string
/domains/valuematch.net/survey/application/helpers/sanitize_helper.php(395)
383 
384 function sanitize_languagecode($codetosanitize) {
385     return preg_replace('/[^a-z0-9-]/i', '', $codetosanitize);
386 }
387 
388 function sanitize_languagecodeS($codestringtosanitize) {
389     $codearray=explode(" ",trim($codestringtosanitize));
390     $codearray=array_map("sanitize_languagecode",$codearray);
391     return implode(" ",$codearray);
392 }
393 
394 function sanitize_token($codetosanitize) {
395     return preg_replace('/[^_a-z0-9]/i', '', $codetosanitize);
396 }
397 
398 function sanitize_signedint($integer, $min='', $max='')
399 {
400     $int  = (int) $integer;
401 
402     if((($min != '') && ($int < $min)) || (($max != '') && ($int > $max)))
403     {
404         return FALSE;                              // Oops! Outside limits.
405     }
406 
407     return $int;
Stack Trace
#0	–  /domains/valuematch.net/survey/application/helpers/sanitize_helper.php(395): preg_replace("/[^_a-z0-9]/i", "", Tokens_dynamic)
390     $codearray=array_map("sanitize_languagecode",$codearray);
391     return implode(" ",$codearray);
392 }
393 
394 function sanitize_token($codetosanitize) {
395     return preg_replace('/[^_a-z0-9]/i', '', $codetosanitize);
396 }
397 
398 function sanitize_signedint($integer, $min='', $max='')
399 {
400     $int  = (int) $integer;	
#1	–  /domains/valuematch.net/survey/application/helpers/replacements_helper.php(517): sanitize_token(Tokens_dynamic)
512 
513     if(isset($surveyid))
514     {
515         $restartparam=array();
516         if($_token)
517             $restartparam['token']=sanitize_token($_token);// urlencode with needed with sanitize_token
518         if (Yii::app()->request->getQuery('lang'))
519             $restartparam['lang']=sanitize_languagecode(Yii::app()->request->getQuery('lang'));
520         elseif($s_lang)
521             $restartparam['lang']=$s_lang;
522         $restartparam['newtest']="Y";	
#2	–  /domains/valuematch.net/survey/application/controllers/RegisterController.php(276): templatereplace(" <meta http-equiv="content-type" content="text...", array(), array("surveyid" => "10001", "postlang" => "nl", "baselang" => "nl", "clang" => Limesurvey_lang, ...), "survey[262]")
271     * function will parse the templates data
272     * @return displays the requested template
273     */
274     function _printTemplateContent($sTemplateFile, &$redata, $iDebugLine = -1)
275     {
276         echo templatereplace(file_get_contents($sTemplateFile),array(),$redata,'survey['.$iDebugLine.']');
277     }
278 
279 }	
#3	+  /domains/valuematch.net/survey/application/controllers/RegisterController.php(262): RegisterController->_printTemplateContent("/domains/valuematch.net/survey/upload/templates/ValueMatch_04_TP...", "array("surveyid" => "10001", "postlang" => "nl", "baselang" => "...", 262)
	
#4	 unknown(0): RegisterController->actionIndex("10001")	
#5	+  /domains/valuematch.net/survey/framework/web/actions/CAction.php(107): ReflectionMethod->invokeArgs(RegisterController, array("10001"))
	
#6	+  /domains/valuematch.net/survey/framework/web/actions/CInlineAction.php(48): CAction->runWithParamsInternal(RegisterController, ReflectionMethod, array("surveyid" => "10001"))
	
#7	+  /domains/valuematch.net/survey/framework/web/CController.php(309): CInlineAction->runWithParams(array("surveyid" => "10001"))
	
#8	+  /domains/valuematch.net/survey/framework/web/CController.php(287): CController->runAction(CInlineAction)
	
#9	+  /domains/valuematch.net/survey/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array())
	
#10	+  /domains/valuematch.net/survey/framework/web/CWebApplication.php(276): CController->run("index")
	
#11	+  /domains/valuematch.net/survey/framework/web/CWebApplication.php(135): CWebApplication->runController("register/index/surveyid/10001")
	
#12	+  /domains/valuematch.net/survey/framework/base/CApplication.php(162): CWebApplication->processRequest()
	
#13	+  /domains/valuematch.net/survey/index.php(178): CApplication->run()