Skip to main content

Questions tagged [admin-ajax]

The tag has no usage guidance.

admin-ajax
27 votes
9 answers
118k views

Wordpress admin-ajax.php 400 bad request

I have a strange and frustrating behaviour of wordpress admin-ajax.php file, when i make an ajax request it returns 400 error bad request. (function( $ ) { var ajaxscript = { ajax_url : 'mydomain....
user avatar
5 votes
3 answers
17k views

Wordpress "admin-ajax.php" 404 Error

I created a website for a small bed and breakfast, but I found a problem, which I don’t understand if it is depended on WordPress or the server. This website uses a pop-up animation to show the room ...
Meng's user avatar
  • 51
5 votes
2 answers
2k views

Protect wp-admin while whitelisting admin-ajax.php

I want to allow only my IP address to access wp-admin but at the same time don't want the calls to admin-ajax.php be blocked. So I want to whitelist admin-ajax.php. Does the following code in ....
ishchat's user avatar
  • 51
3 votes
1 answer
730 views

WordPress Attachment Taxonomy Checkbox Group Not Saving In Grid View

I created a taxonomy and attached it to the attachments or Media. I am using Advanced Custom Fields to add a taxonomy field which is displayed as checkbox group. It adds the fields correctly to the ...
James's user avatar
  • 720
2 votes
1 answer
5k views

Cross-Origin Request Blocked. Wordpress Plugin Not Working

We have a Wordpress website, hosted by GoDaddy. Before we went "live" we had it located at staging.coiski.com (wordpress was installed in a folder called /staging), and then when we went "live" we ...
Jon Zmikly's user avatar
2 votes
1 answer
397 views

The admin-ajax page is the most visited page on the website

I run a small blog. And recently I started having my hosting resources limited quite often. I tried to see what is causing the problem, and I find it very suspicious that the wp-admin/admin-ajax page ...
Skinz's user avatar
  • 21
2 votes
1 answer
10k views

Wordpress Forbidden You don't have permission to access /wp-admin/admin-ajax.php on this server

I have a portfolio when I click on the filter button it gives me this error : You don't have permission to access /wp-admin/admin-ajax.php on this server.
Mohammed's user avatar
2 votes
0 answers
928 views

Optimizing wp media library, using wp hooks

My apologies If I am not clear, but I will try my best to explain my problem. After upgrading wordpress to 4.7.3. I am facing a super slow wordpress media library load(i.e. wp-admin/upload.php). It ...
SD433's user avatar
  • 119
2 votes
0 answers
199 views

WP-PostRating Ajax not working

I have WP-PostRating Plugins for rating system, but onclick="rate_post();" onkeypress="rate_post(); function not working. I think PostRating JS conflict with other JS, ERROR LOG [15-May-2016 09:10:...
Nida's user avatar
  • 21
2 votes
1 answer
4k views

wp_localize_script $data parameters in array

I'm trying to develop my first Wordpress plugin, and to do this I want to use wp_localize_script to post forms data without refreshing page. The problem is I don't understand well how to setup the $...
BBFUNK01's user avatar
2 votes
0 answers
2k views

Called and canceled of the admin-ajax.php file multiple times

I have an issue in a Wordpress installation with a plugin. There is a calendar which you can click on a day (or a range of days) and from ajax calls through admin-ajax.php it calculates product costs. ...
Tasos's user avatar
  • 7,487
2 votes
0 answers
2k views

Set Woocommerce woocommerce_get_refreshed_fragments call admin-ajax.php run after page loads

I optimzed my site with cahce and it speeds to about 2 sec load time. The problem is that even that everything is done loading, but there are is 2 ajax call to admin-ajax.php with a action called ...
BenB's user avatar
  • 2,917
1 vote
1 answer
255 views

Navigating to blank PHP file returning 0 in browser

I'm running a WordPress install and was having issues with ajax-loads. Whenever I used the admin-ajax.php script, it wasn't returning anything so I decided to go to the source and see what the issue ...
PavKR's user avatar
  • 1,611
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
1 vote
1 answer
2k views

Ajax call in wordpress not working for subscriber user in front site

i have simple wordpress form to add data in custom table in wordpress using Ajax my jquery code(Ajax code ) jQuery.ajax(ajax_object.ajax_url, { type: "POST", ...
Ankur Bhadania's user avatar

15 30 50 per page
1
2 3 4 5