Index: bp-core/bp-core-catchuri.php
===================================================================
--- bp-core/bp-core-catchuri.php	(revision 3055)
+++ bp-core/bp-core-catchuri.php	(working copy)
@@ -180,7 +180,7 @@
 	$action_variables = $bp_uri;
 
 	/* Remove the username from action variables if this is not a VHOST install */
-	if ( 'no' == VHOST && !$is_root_component )
+	if ( defined( 'VHOST' ) && 'no' == VHOST && !$is_root_component )
 		array_shift($bp_uri);
 
 	/* Reset the keys by merging with an empty array */
