Odd Error in Script Called by AJAX
-
Hi,
I’m trying to make use of this plugin as I like the idea of handling all the JS and CSS issues automatically meaning I don’t have to spend so much time switching everything to async calls.
I have however had an issues with an AJAX triggered php script, the script implements the WordPress loop to extend a page with additional content when the user has scrolled to the bottom. I implemented it pretty mush as described here: http://wp.tutsplus.com/tutorials/getting-loopy-ajax-powered-loops-with-jquery-and-wordpress/
But, when I enable Async JS and CSS I get the following error in my apache log: [error] [client *.*.*.*] PHP Fatal error: Call to undefined function wp_get_current_user() in wp-includes/capabilities.php on line 1281
I only ge tthis error when this plugin is enabled, any ideas what might cause it?
Thanks,
Hanni
The topic ‘Odd Error in Script Called by AJAX’ is closed to new replies.