Contact Form 7を5.5.1に更新すると400エラーが発生

作成日:

Contact Form 7を5.4xから5.5.1に更新すると、これまで使用していたフォームが一部送信エラーとなりました。

原因を調べていると、テキストフォームのname属性値として「 id 」と指定していたことに起因していることがわかりました。

もともとContact Form 7では使用してはいけないnameがリストアップされており、編集画面でもバリデーションが効いていて使用出来ないようにされていましたが、「id」はここには挙げられていないのですが、含まれてしまったのかもしれません。

使用できないname属性値

  • m
  • p
  • posts
  • w
  • cat
  • withcomments
  • withoutcomments
  • s
  • search
  • exact
  • sentence
  • calendar
  • page
  • paged
  • more
  • tb
  • pb
  • author
  • order
  • orderby
  • year
  • monthnum
  • day
  • hour
  • minute
  • second
  • name
  • category_name
  • tag
  • feed
  • author_name
  • static
  • pagename
  • page_id
  • error
  • attachment
  • attachment_id
  • subpost
  • subpost_id
  • preview
  • robots
  • taxonomy
  • term
  • cpage
  • post_type
  • embed
favicon
Are there any reserved or unavailable words for the name of an input field? https://contactform7.com/faq/are-there-any-reserved-or-unavailable-words-for-the-name-of-an-input-field/

Yes, there are some words that are not available; but this is actually not a restriction of Contact Form 7, but a restriction of WordPress. If you post an input field with a name that is the same a…

物草 灸太郎
物草 灸太郎

WordPressでホームページを制作しつつ、休日は畑を耕したりDIYを楽しんでいます。

Loading...

コメントをどうぞ

  • メールアドレスが公開されることはありません。
  • コメント欄にURLは入力できません。
  • このサイトはreCAPTCHAによって保護されており、Googleのプライバシーポリシー利用規約が適用されます。