Skip to main content

All Questions

Tagged with
0 votes
0 answers
78 views

Wordpress admin-ajax.php returns 0 and 400 bad request

I have been working in a project and I hit a road block from admin-ajax.php file, when i make an ajax request it returns 400 error bad request and the admin-ajax.php response in the network tab is 0. ...
ladi ayo's user avatar
0 votes
0 answers
24 views

POST wp-admin/admin-ajax.php 400 (Bad Request)

In wp-admin I have a table that extracts data from the database (data comes from a form filled in by users) . The request to the database to delete some elements is contained in form-plugin.php (...
Octavian Racu's user avatar
0 votes
1 answer
31 views

Receive AJAX Form data in Server side

How to receive AJAX Form data in Server side sent by Fetch API ? I have below Fetch API. const sent_urls = () => { const formData = new FormData(); formData.append('action', 'start_parsing')...
abu abu's user avatar
  • 6,912
-1 votes
1 answer
668 views

WordPress Admin Ajax 400 error, returning 0

I've created an AJAX request to send data to my plugin which will then submit a job application. When submitting the form the page that it is returning is blank other than a 0 and the console is ...
Sam St Aubyn's user avatar
0 votes
0 answers
33 views

Woocommerce ajax return empty shipping packages

Am trying to get the shipping packages with ajax but its always returning empty value. same issue while trying to call get the zones with: WC_Shipping_Zones::get_zones(); am using the same code in ...
Ibtekarlabs's user avatar
0 votes
1 answer
118 views

Wordpress Ajax returning full html of same page

Am trying to run Ajax call in my Woocommerce checkout page, but am always getting the full html of same page return. add_action( 'wp_enqueue_scripts', 'theme_scripts' ); function theme_scripts() { ...
Ibtekarlabs's user avatar
0 votes
1 answer
659 views

Oxygen Builder: Making Ajax Calls from Code Block

Yeah, so this is super frustrating. It should be a simple answer for someone... I am trying to simply figure out how to make a call to admin-ajax.php from a Code Block within Oxygen and I can't figure ...
dcolumbus's user avatar
  • 9,692
0 votes
0 answers
223 views

Wordperss admin-ajax.php error 400 Bad Request

I can't find where this error 400 comes from? FontOffice only avaible for logged in persons. I'm trying to create a form to post a custom post type through Ajax. Here is the form in front office: <...
C_Com2see's user avatar
0 votes
2 answers
377 views

Admin-ajax return 0 and error 400 in manager part

Here I am facing a problem with the admin-ajax.php of wordpress. Indeed my project is particular since it contains 2 parts (customer part and admin part). The first part is for the client part since (/...
Camille Colvray's user avatar
0 votes
1 answer
1k views

WordPress admin-ajax.php throwing 400 bad request

add_action( 'wp_footer', function () { ?> <script type='text/javascript' id='ajax'> const ajaxUrl = "<?php echo admin_url('admin-ajax.php'); ?>"; async function ...
Ramanath's user avatar
  • 530
0 votes
0 answers
555 views

WordPress admin-ajax slow/issue

I've noticed in our hosting's snapshot that our admin ajax has been very slow. The example http query below took over 191seconds! also this fired every couple of minutes.. /admin-ajax.php?action=...
AdrianV's user avatar
  • 109
0 votes
1 answer
2k views

Wordpress AJAX request on admin-ajax.php gives error 400

I'm trying to create a Wordpress plugin that will receive a simple AJAX request and, for the moment, just post its body. My code is: File /wp-content/plugins/prova/prova.php: <?php /** * Plugin ...
Fed C's user avatar
  • 193
1 vote
1 answer
6k views

wordpress: AJAX: 400 bad request with admin-ajax.php

I have searched and red a lot of this issue. However, I do not know, why this few simple lines produce a "POST http://example.com/wp-admin/admin-ajax.php 400 (Bad Request)" What I basically ...
mickna's user avatar
  • 53
0 votes
1 answer
533 views

Wordpress admin-ajax.php returns 0 and status 400 on POST, works on GET though

I have angular application embedded to Wordpress site in iframe. Angular app is trying to trigger Wordpress action registered in the function.php file in the child-theme, code is as following: ...
Jakub Zak's user avatar
  • 1,232
1 vote
0 answers
123 views

How can I make a proxy call to this Wordpress PHP function, one time without a parameter, other time with?

So in Wordpress, I have a hook for an ajax action, that looks like this: add_action( 'wp_ajax_myhook', __NAMESPACE__ .'\myhook' ); function myhook() { $username = "[email protected]"...
AviG's user avatar
  • 382

15 30 50 per page