snow monkey formsの送信時のエラーについて

0
いいねをした人: 居ません
7件の投稿を表示中 - 1 - 7件目 (全7件中)
  • 投稿者
    投稿
  • #138445
    diiih
    参加者
    15

    【お使いの Snow Monkey のバージョン】25.4.3
    【お使いの Snow Monkey Blocks のバージョン】
    【お使いの Snow Monkey Editor のバージョン】
    【お使いの PHP のバージョン】
    【お使いのブラウザ】GoogleChrome
    【当該サイトのURL】テスト環境のため非公開

    ### 発生している問題

    Snow Monkey Forms : 6.4.0

    サーバー:エックスサーバー

    送信、確認画面ボタンを押してもボタンに読み込みのようなものが表示されて、進まない状況です。

    デベロッパーツールのコンソールで以下の表示がありました。

    Uncaught SyntaxError: Unexpected token ‘<‘, “<br />
    <b>”… is not valid JSON
    at JSON.parse (<anonymous>)
    at y.onreadystatechange (app.js?ver=1710989635:1:2925)

    何が原因でしょうか。お手数ですがよろしくお願いします。

    ### 試したこと

    新たに別のフォームを作成して試しましたが同様のエラーがでました。

    0
    いいねをした人: 居ません
    #138447
    キタジマ タカシ
    参加者
    2254

    なにか裏でエラーが出ている気がします。エックスサーバーならコントロールパネルからサーバーのエラーログが確認できるので、送信時にエラーが出ていないか確認してみてください。

    0
    いいねをした人: 居ません
    #138448
    diiih
    参加者
    15

    恐らくこれだと思うのですが、以下の内容から何かわかりますでしょうか?

    [Fri Apr 12 14:45:38.916675 2024] [proxy_fcgi:error] [pid 3365248:tid 3365367] [client 126.38.61.216:56774] AH01071: Got error 'PHP message: PHP Warning: Attempt to read property "id" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 647
    PHP message: PHP Warning: Attempt to read property "theme" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 651
    PHP message: PHP Warning: Attempt to read property "content" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 658
    PHP message: PHP Warning: Attempt to read property "content" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 662
    PHP message: PHP Warning: Attempt to read property "slug" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 666
    PHP message: PHP Warning: Attempt to read property "source" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 670
    PHP message: PHP Warning: Attempt to read property "origin" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 674
    PHP message: PHP Warning: Attempt to read property "type" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 678
    PHP message: PHP Warning: Attempt to read property "description" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 682
    PHP message: PHP Warning: Attempt to read property "title" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 690
    PHP message: PHP Warning: Attempt to read property "wp_id" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 694
    PHP message: PHP Warning: Attempt to read property "title" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 698
    PHP message: PHP Warning: Attempt to read property "status" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 703
    PHP message: PHP Warning: Attempt to read property "wp_id" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 707
    PHP message: PHP Warning: Attempt to read property "has_theme_file" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 711
    PHP message: PHP Warning: Attempt to read property "type" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 714
    PHP message: PHP Warning: Attempt to read property "author" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 719
    PHP message: PHP Warning: Attempt to read property "modified" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 727
    PHP message: PHP Warning: Attempt to read property "type" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 769
    PHP message: PHP Warning: Attempt to read property "type" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 769
    PHP message: PHP Warning: Attempt to read property "author" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 829
    PHP message: PHP Warning: Attempt to read property "type" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 769
    PHP message: PHP Warning: Attempt to read property "type" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 769
    PHP message: PHP Warning: Attempt to read property "id" on null in /home/xxxxx/sample.com/public_html/xxxxx/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php on line 746', referer: https://xxxxx/wp-admin/post.php?post=2876&action=edit
    0
    いいねをした人: 居ません
    #138470
    diiih
    参加者
    15

    お世話になります。

    原因がわかりました。プラグインの「Table of Contents Plus」が有効化していると送信できなくなるようです。

    直近で他のサイトでこのプラグインを併用していても問題なかったので、まさかこのプラグインがフォームに影響するとは思わなかったので見逃していました。申し訳ありません。

    ブログでこのプラグインは使用したいのですが、このプラグインを廃止するしか方法はないでしょうか?

    お手数ですがよろしくお願いいたいます。

    0
    いいねをした人: 居ません
    #138472
    キタジマ タカシ
    参加者
    2254

    なるほどです。Snow Monkey Forms は REST API で画面の切り替えや送信を行うですが、REST API は他のプラグインの処理の影響(フックされた処理)を受けるので、Table of Contents Plus のほうで REST API を考慮せずに処理している部分がもしかしたらあるのかもしれません。

    Snow Monkey Blocks にも目次ブロックがあるのでそれで良ければそれを使うか、Table of Contents Plus のほうにも報告して確認してみてもらうのが良いかもです。

    1
    いいねをした人:
    #138474
    diiih
    参加者
    15

    バージョンの問題とかもあるのでしょうか。同様にプラグインを併用しているサイトで、少し前のバージョンのサイトは問題なく動くようです。

    Snow Monkey Blocksの目次機能もカスタマイズで自動表示できそうなので、ひとまず今回はこちらを使用したいと思います。

    ありがとうございました。

    0
    いいねをした人: 居ません
    #138502
    キタジマ タカシ
    参加者
    2254

    Snow Monkey + Snow Monkey Forms + Table of Contents Plus だけのシンプルなテスト環境をつくってみたのですが、問題は再現できませんでした。

    もしかしたら他のプラグインやカスタマイズコードが影響しているのかもしれません。

    0
    いいねをした人: 居ません
7件の投稿を表示中 - 1 - 7件目 (全7件中)
  • トピック「snow monkey formsの送信時のエラーについて」には新しい返信をつけることはできません。

ドキュメント

Snow Monkey の設定方法やマニュアルを掲載しています。

ドキュメント

フォーラム

Snow Monkey の使い方やカスタマイズについてのご質問・ご要望等はサポートフォーラムで行っています。サポートフォーラムは誰でも閲覧できますが、書き込みできるのは Snow Monkey 購入者のみとなります。

サポートフォーラム

よくあるご質問

Snow Monkey のサービスについて不明な点がある場合は、まずはよくあるご質問をご確認ください。

よくあるご質問

お問い合わせ

よくあるご質問を見ても解決しなかった場合、試用版の申請については問い合わせフォームからお願いいたします。

お問い合わせ

Snow Monkey は Gutenberg ブロックエディターに対応した 100%GPL の WordPress テーマです。拡張性を意識した開発をおこなっており、カスタマイザーとブロックでスピーディーにサイトを立ち上げるだけでなく、CSS やフックを駆使した高度なカスタマイズにも柔軟に対応できます。