• 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

    http://wordpress.org/plugins/async-js-and-css/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dmikam

    (@dmikam)

    Hi !

    What WordPress version do you have ? It looks like this function must be defined since 2.0.3 so it is really strange.

    Thread Starter hanni_ali

    (@hanni_ali)

    WP Version is 3.6.2

    I agree it’s strange and the issue only arises when I have your plugin enabled. The php script called by the AJAX request works fine when your plugin is disabled…

    Plugin Author dmikam

    (@dmikam)

    Could you Activate the plugin and in it’s configuration disable all options and see if an error is still therr? If it’s not, try to enable all options one by one to see which of them produces it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Odd Error in Script Called by AJAX’ is closed to new replies.