Skip to main content

Questions tagged [admin-ajax]

The tag has no usage guidance.

0 votes
2 answers
3k views

Wordpress admin-ajax.php 400 Failed to load

Am using this script 'WordPress CPT Ajax filtering' found here on GitHub. Everything work as i need it apart from the 'All' filter, click this and all post disappear and i get the error below, but the ...
Daniel's user avatar
  • 199
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
0 answers
42 views

run admin-ajax.php returning 400

I have looked over a few other related questions but I must be missing something. I dont know much PHP but I am hoping someone can help tell me where iv gone wrong. The site is saying that /wp-admin/...
webmaster alex l's user avatar
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
0 votes
0 answers
200 views

In Wordpress, trying to add an existing image from the media library to a text widget throws 404 error

I have two Wordpress instances (same Wordpress version, both recent fresh installs) on two different domains, both hosted with Namecheap, one of them works fine (actually hosted on a subdomain like ...
Wolfgang Bremer's user avatar
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
0 votes
0 answers
512 views

Admin Ajax 413 Error - Max size is Higher

I have a plugin which performs admin ajax request on clicking send button in page. The data send some html data to PHP function. When i click send button, i receive the following error. Failed to ...
melvin's user avatar
  • 2,611
0 votes
3 answers
3k views

Admin Ajax causing slow wordpress site (waterfall)

Can someone help me figure out how to fix the slow admin-ajax.php problem? Sorry I'm new to wordpress. I understand it could be related to the wpbakery (visual composer) plugin used to build the ...
Brian Lau's user avatar
  • 127
0 votes
1 answer
415 views

Wordpress :: Need to Call Ajax Action by extra script.php file in root folder of Wordpress

We have requirement for run costume script (a php file) in root of wordpress Simply we have script.php file in root of wordpress project. when I run https://mywordpress.co/script.php simply I need ...
Tarun Bariya's user avatar
1 vote
0 answers
2k views

Ajax call caching using Litespeed cache plugin in Wordpress

I have an issue with caching ajax calls, I am using ajax calls to count my post views and because of my high traffic I am not able to hit the database directly, so I want to store post views in cache ...
Ali Mohammadi's user avatar
1 vote
1 answer
231 views

Calling PHP function in Wordpress through admin-ajax.php not updating meta information, but receive a success message

post_views_count() is meant to update the view count of the page current postID using an ajax request so it can still work. When called it is outputting that is has been successfully called but when ...
Matt's user avatar
  • 81
-1 votes
1 answer
2k views

Admin-Ajax is slowing down my Wordpress site

I am running a Wordpress website: link All plugins, wordpress and theme are updated to the latest version. I am also running on Woocommerce. When disabling the Woocommerce-plugin, the site is ...
user2152403's user avatar
0 votes
0 answers
334 views

nopriv actions not working when not logged in

I'm redoing a client's WP/WooCommerce site and I'm having trouble with admin-ajax actions when the customer is not logged in. I don't believe the nopriv actions are being found by the ajax call. If ...
Snuglas's user avatar
  • 63

15 30 50 per page