Skip to:
Content
Pages
Categories
Search
Top
Bottom

global.js 404 in javascript console

  • Avatar of jeellison
    jeellison
    Participant

    @jeellison

    Hello Folks,

    I have been struggling with this for weeks now, and I hope somebody can help.

    I have a few problems, which I believe are javascript/ajax related possibly.

    Whenever I click in the activity text field, the submit button does not appear, or if I click on the comment button, it just refreshes the page.

    The javascript console has the following errors on the page :

    Failed to load resource: the server responded with a status of 404 (Not Found) http://strensa.com/wp-content/plugins/buddypress//bp-themes/bp-default/_inc/global.js?ver=20110818

    This file does actually exist and is in the folder as above.

    Now, I have a .htaccess file on the root which contains the following :

    RewriteEngine On
    # WordPress handler
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . / [L]

    And if I delete this and leave it 20 mins and then re-upload it, it starts to work but only for a certain amount of time.

    Can anybody shed any light on this please?

    Additional information.

    the domain : http://www.strensa.com
    you can login with : jon password: jon
    windows server
    plugins installed : buddypress, bbpress, buddypress template pack.

    I have tried a fresh install on another domain and get exactly the same.

    Thanks in advance.
    James

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of jeellison
    jeellison
    Participant

    @jeellison

    Oh, and without the .htaccess, I just get 404′s on all buddypress pages. And I am wondering if the double slashes in the path has anything to do with this?

    Best Regards
    James

    Avatar of migson
    migson
    Participant

    @mitchmattersgmailcom

    I am experiencing this exact same problem too, would greatly appreciate some help here. I’m running a customized bootstrap theme with BuddyPress.

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @jeellison @migson add this to your theme’s stylesheet:

    #whats-new-options {
    height: 40px !important;
    }

    Avatar of jeellison
    jeellison
    Participant

    @jeellison

    Hello and thank you for your reply.

    I have added this to the css and it does resolve the posting issue by keeping the ‘post update’ button in place. BUT it still does not resolve all the issues.

    For eg, I still cannot comment on a post (the page just refreshes)

    When I delete that .htaccess file, EVERYTHING works perfectly, without the javascript error in the console, but once I have gone back to the homepage, the javascript error returns and it all stops again.

    Migson : Are you on windos hosting using iis6?

    Thank you again Mercime. Do you have any other ideas please?

    Best Regards
    James

    Avatar of jeellison
    jeellison
    Participant

    @jeellison

    Can anybody please tell me what files calls global.js? I have a feeling it is the double slashes //?

    Thanks
    James

    Avatar of jeellison
    jeellison
    Participant

    @jeellison

    OK, sorted it.

    If you are experiencing the double slashes then this is the fix.

    open bpt-functions and search for wp_enqueue_script (line 96 for me) and change /bp-themes/bp-default/_inc/global.js to bp-themes/bp-default/_inc/global.js

    Sweet as a nut.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.