FWIW…
It APPEARS to have been a misconfiguration in the PHP.INI on a new Development Server (WAMP), which resulted in an unknown corruption of the code upon updating from wp4.0 to 4.1 such that PHP was injecting unwanted white space e.g. “\r\n\r\n…” in my AJAX responses (like a missing closing php ?> tag or someting?)
When running ob_clean() before returning an AJAX response, the problem went away, AND… when only the DEV copy of the project displayed the unwanted behavior, I copied the live site (wp4.1) to a mirror installation on the reconfigured DEV server, and all functions as expected.
Still, my practice of utilizing custom AJAX endpoints in future WP Projects is now officially deprecated 😉
Related Posts:
- My javascript is returning this error: $.ajax is not a function
- Can’t get a JSON object in response to an Ajax request with wp_ajax
- Infinite scroll / lazy loading with NextGen Gallery [closed]
- Ajax call does not activate callback function
- jQuery UI Datepicker not working
- Trying to get single posts to load on the front page via ajax
- Ajax not firing properly using Firefox, but works in Chrome
- How to Use JSON With AJAX?
- Using wp_ajax and wp_ajax_nopriv hooks
- How do I get my page to load the jQuery UI Effects library?
- wp_ajax unauthenticated and authenticated
- WordPress ajax function parameter value not being passed
- WordPress customizer refresh screen after save
- Loading posts via AJAX in a hidden div with updated URL?
- Jquery not showing in homepage
- Correct way to write jQuery functions in WordPress
- splitting the URL using jQuery
- WooCommerce Ajax Cart Update Stopped Working
- Rhyzz Repeatable-fields javascript in php and wordpress
- How to Dynamically Load Content Into Body of Bootstrap Modal Window?
- Return an array from get_terms and store as JavaScript array for search autocomplete
- Trouble with WordPress Ajax Login System – 302
- videopress videos are not displayed when loading the content with ajax in a lightbox
- How to return multiple arguments from AJAX callback function
- url – ajax loaded but no JS
- Ajax Validation for reCaptcha
- Sorting WP Auctions by date/price?
- Properly embed javascript into WP (using function.php) – doesn’t work?
- jQuery tabs plugin with callback to fetch data
- Custom AJAX form not working async
- Screen Options JavaScript Code
- Is there some jQuery conflict here?
- Ajax page load in wordpress the right way?
- A carousel slideshow plugin in JavaScript
- WordPress live search and filter
- Orderby post__in Not Working Correctly?
- Get ajaxForm response value
- why does so many javascript libraries are loaded along with my website?
- Retrieve customizer value using ajax or customizer api and print the value in theme
- Displaying contents of a tab
- Widget won’t work due to old JavaScript? Any ideas how to make it work? [closed]
- How to set time delay in javascript
- Pass request headers in a jQuery AJAX GET call
- JavaScript: filter() for Objects
- What does on() in JavaScript do?
- Ajax Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
- jQuery Ajax POST example with PHP
- Enable & Disable a Div and its elements in Javascript
- SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
- The ‘describe’ keyword in javascript
- Enable Submit Comment Without Page Reload (Using Ajax)?
- Ajax Load More Posts in Category Page
- WordPress Ajax URL for function in functions.php
- Move WordPress native javascript to bottom of page?
- AJAX function returning -1
- jQuery AJAX form validation
- Proper way to load a single post via Ajax?
- How to load whole WordPress pages dynamically with AJAX/jQuery like this following website?
- Creating custom AJAX requests
- admin-ajax.php HTTP400: BAD REQUEST – The request could not be processed by the server due to invalid syntax
- How to pass jQuery ajax URL value
- how to get the comment ID in the front end when the REPLY button is clicked?
- How to create popup same as wordpress popup feature
- Add colorpicker to featured image
- Gravity Forms not loading under https, jQuery is not defined
- Admin wp_ajax hook returning 0
- Automatic jQuery accordion from header tags
- Add a Fancybox automatically to post type “post” images
- Enqueuing javascript files
- Creating multiple enclosing shortcodes and fixing JS issues on click
- Can’t load a class into WordPress post editor’s content field
- How to test nonce with AJAX – Plugin development
- How to add a do_action on refreshing of WP customizer?
- I want to import my Json file into a custom made display-modal. How do i link my Json file?
- Frontend Post with JQuery AJAX to Php Issue
- Searching multiple tags and adding jQuery dependant script onto page template?
- TinyMCE 4 remove/add attributes for all images
- Ajax form submit not working, returns 0
- Loading scripts on a single page plants the script in the footer
- Required radio button does not validate in form, when clicked through Javascript/jQuery
- Search query with Ajax
- how to use wp_editor() here am getting empty result
- Accessing an API with jQuery and AJAX
- Parse wordpress blog data using json api and ajax
- Problem adding MP3 attachments to a jPlayer playlist
- problems with jquery external rss feed integration
- AJAX calendar navigation returns -1
- jquery Autocomplete
- How to call a function from functions.php with ajax?
- Ajax post doesnt call succes after got the response
- Colorbox not working on native WordPress gallery when gallery is loaded thru AJAX
- Adding scripts before plugins scripts
- jQuery search function not running in WordPress but running locally (fiddle)
- Autocomplete for titles via ajax – rework of past post away from like_escape()
- Ajax Request with jQuery not happening
- Sorting UL Listing Within the TinyMCE Visual Editor in WordPress
- Contact Form 7 submission does not complete [closed]
- Combo box populating a DIV using ajax/jquery
- Carousel Hover Image
- jQuery datepicker not showing on admin menu