• Resolved ichehab

    (@ichehab)


    admin-ajax.php returned error 400 and the $_REQUEST[‘action’] is empty

    so it means no file sent to the server and only _ in the parameter and the Request Method in GET not POST

    empty( $_REQUEST[‘action’] ) is true <—

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter ichehab

    (@ichehab)

    I solved it.

    If we have <form></form> we have to add method=”post”

    so it will be

    <form method=”post”>
    <?php echo do_shortcode(‘[contact-form-7 id=”698″]’);
    </form>

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Thanks, I’m glad you figured it out.

    All form field should be wrap inside form with method either post/get.

    Thread Starter ichehab

    (@ichehab)

    Yeah but for this package it need to be post method since it takes the method of the parent form.

    I think it’s a bug since it must always be post method not get

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Yes, the default of contact form 7 is POST.

    When you use ‘<?php echo do_shortcode(‘[contact-form-7 id=”698″]’);’ this should automatically wrap with the form and post method. (No need to manually add it)

    Can I see your Contact -> Form settings?

    Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    I view the source of your webpage and I can see multiple <form> tags.

    Can you check on this?

    See Screenshot : https://imgur.com/a/R7Sdl3J

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Empty attachement’ is closed to new replies.