Take a look at the HTML source of http://utraz.com/members/test/activity/
You’ll see
http://utraz.comWP_PLUGINS_DIR/buddypress/bp-themes/bp-default/_inc/global.js?ver=20110921
Obviously, that WP_PLUGINS_DIR shouldn’t be there! This is a strange issue. Have you moved your wp-content folder, or the plugins folder, or done any other non-standard ways to customise your BuddyPress install?
Thanks for getting back,
Nope the wp-CONTENTfile is still there, and all in the correct place buddypress is ROOT>WP-CONTENT>PLUGINS>BUDDYPRESS and the themes are also the same
I know I added this code here:
if ( !function_exists( ‘bp_dtheme_enqueue_scripts’ ) ) :
/**
* Enqueue theme javascript safely
*
* @see https://codex.wordpress.org/Function_Reference/wp_enqueue_script
* @since 1.5
*/
function bp_dtheme_enqueue_scripts() {
// Bump this when changes are made to bust cache
$version = ‘20110921’;
// Enqueue the global JS – Ajax will not work without it
wp_enqueue_script( ‘dtheme-ajax-js’, WP_PLUGINS_DIR . ‘/buddypress/bp-themes/bp-default/_inc/global.js’, array( ‘jquery’ ), $version );
// Add words that we need to use in JS to the end of the page so they can be translated and still used.
$params = array(
‘my_favs’ => __( ‘My Favorites’, ‘buddypress’ ),
‘accepted’ => __( ‘Accepted’, ‘buddypress’ ),
‘rejected’ => __( ‘Rejected’, ‘buddypress’ ),
‘show_all_comments’ => __( ‘Show all comments for this thread’, ‘buddypress’ ),
‘show_all’ => __( ‘Show all’, ‘buddypress’ ),
‘comments’ => __( ‘comments’, ‘buddypress’ ),
‘close’ => __( ‘Close’, ‘buddypress’ ),
‘view’ => __( ‘View’, ‘buddypress’ )
);
wp_localize_script( ‘dtheme-ajax-js’, ‘BP_DTheme’, $params );
}
add_action( ‘wp_enqueue_scripts’, ‘bp_dtheme_enqueue_scripts’ );
endif;
I put this in the last section of functions.php
WP_PLUGINS_DIR should be renamed to WP_PLUGIN_DIR.
Not sure how an extra ‘S’ was added, but please remove the ‘S’ and see what happens.
Thank you both for that, it directed me in the right direction… I removed the wp_plugins_dir to the full link and now it works.
Once again thank you
I’m out of here I keep replying and others are too.
Connor – glad that worked!
modemlooper – Ha! :p