Support » Fixing WordPress » wp_deregister_script

  • Hello,
    I’m trying to deregister/enqueue 2 js files: jquesry and buddypress global.js
    The goal is to put them in footer. I use this code:

    wp_deregister_script( 'jquery' );
    wp_enqueue_script( 'jquery','',false, '1.4.2',true );
    wp_deregister_script( 'dtheme-ajax-js' );
    wp_enqueue_script( 'dtheme-ajax-js',get_template_directory_uri() . '/_inc/global.js', array( 'jquery' ),'',true );

    The result is– I can see they are loaded in footer, and my blog is working if not use js. When I tried to log in, the error message says-

    “Warning: Cannot modify header information – headers already sent by (output started at …./wp-content/plugins/bp-custom.php:1) in …./wp-login.php on line 337

    Need help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • @mercime


    Volunteer Moderator

    Suggest asking this at BuddyPress forums –

    BuddyPress support forum is very dead recently. I posted nearly 20 different questions, got no answer. I checked other people’s post, mostly get no answer too.
    There could be some reasons. My first guess is– there are some big change undergoing in v1.3, so, people are waiting and don’t bother about old version. My 2nd guess is– moderators are busy on their own business.

    Anyway, I saw Andra’s post last week. She has been mostly in WP forum instead of BP forum for a while. Now she might bring back some life there, hope so.



    Volunteer Moderator

    BuddyPress support forum is very dead recently

    It’s sluggish especially on weekends, not dead. Posting there was a suggestion, you’re free to do whatever you want 🙂

    Thanks mercime! You’ve been very supportive in BP forum. I learned a lot from your conversion with others.
    Maybe it’s just my feeling, that’s true, I work on blog normally in Asia morning during weekends. That’s the north American’s evening. Maybe that’s why I feel it’s dead.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_deregister_script’ is closed to new replies.