Typo3 Formhandler验证提供白屏

时间:2014-07-12 06:56:06

标签: typo3 typoscript

我完全遵循了typo3 formhandler“how-to-set-up-a-simple-form”。 standaard表格有效,但当我添加验证部分时,表格帖子会显示白色屏幕。我使用下面的typoscript。是什么原因导致来自验证后的白屏?

plugin.Tx_Formhandler.settings {   

  validators.1.class = Validator_Default
  validators.1.disabled = 0
  validators.1.config.fieldConf {
    message.errorCheck.1 = required
    message.errorCheck.2 = minLength
    message.errorCheck.2.value = 5

    sender_name.errorCheck.1 = required

    sender_email.errorCheck.1 = required
    sender_email.errorCheck.2 = email
  }

  addErrorAnchors = 1
  singleErrorTemplate {
    totalWrap = |
    singleWrap = <span style="color: red;">|</span>
  }
  errorListTemplate {
    totalWrap = <div style="color: red;">Es sind folgende Fehler aufgetreten: <ul>|</ul></div>
    singleWrap = <li>|</li>
  }

  debug = 0    
  langFile = fileadmin/templates/sandraverdijck/lang/lang-contactform.xml
  templateFile = fileadmin/templates/sandraverdijck/html/contactform.html  
  formValuesPrefix = formhandler    
  finishers {     
    1 {       
      class = Tx_Formhandler_Finisher_Mail     
    }     
    2 {       
      class = Tx_Formhandler_Finisher_SubmittedOK       
      config.returns = 1     
    }   
  } 
}

1 个答案:

答案 0 :(得分:0)

因此,在这种情况下,您可以找到解决方案here。 摘要:默认情况下未启用mb_strlen。你必须这样做。