Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress Maps “plugin triggered a fatal error.” solved

  • Avatar of yansony
    yansony
    Participant

    @yansony

    I have recently installed the Buddypress Maps plugin. However, when I tried to activate it, I have got a message like “plugin triggered a fatal error.” It appears that I am not the only one getting this error message. Anyway, the reason for that error is that the closing bracket of the php code in the bp-maps.php file is commented out. To fix it, just add */ on the line before the ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of psyber
    Psyber
    Participant

    @psyber

    @yansony This is a pretty cricital plugin for many users, is the plugin working for you as it is designed to? I have tried many times with no success? Would you mind sharing your website, can we see it in action?

    Avatar of yansony
    yansony
    Participant

    @yansony

    @psyber My website is not running yet, so I can’t show it.

    I have found another possible fix for the problems with storing custom markers. Go to buddypress-maps/_inc/js , then open the bp-maps.js file and replace all j.post with jQuery.post

    Avatar of tweetyx
    tweetyx
    Participant

    @tweetyx

    Problems solved on actually bp and wordpress 3.0 for profile
    The first problem was the js conflict with jquery -> dynamic marks not works
    the second is the profile maps doesn’t work so ->
    the file bp_maps_profile_init.php contain a bp_maps_profile_init() function where the function bp_maps_profile_is_enabled, bp_is_profile_edit and bp_maps_profile_is_map_group return false so the js aren’t be loaded .
    So you must change the condition for it work!
    this is my code
    function bp_maps_profile_init() {
    global $bp;

    //backend options
    add_action( ‘bp_maps_admin_plugins_div’,’bp_maps_profile_admin_plugins_div’);
    //the numer of my group edit for the location page (/members/admin/profile/edit/group/6/)

    if(strpos($_SERVER["REQUEST_URI"], “edit/group/6?) !== false):

    //change infobulle content to set user’s info
    add_filter(‘bp_maps_marker_infobulle_content’,’bp_maps_profile_infobulle_content’,10,2);
    //add_filter(‘bp_maps_get_markerslist_marker_content’,’bp_maps_profile_marker_content’,10,2);

    //change infobulle content to set user’s info
    add_filter(‘bp_maps_get_marker_title’,’bp_maps_profile_marker_title’,10,2);
    add_filter(‘bp_maps_get_marker_list_title’,’bp_maps_profile_marker_title’,10,2);

    add_action(‘wp_print_scripts’,’bp_maps_profile_print_scripts’); //edition scripts (address autocomplete)
    add_filter(‘bp_maps_get_map_js’,’bp_maps_profile_add_map_js’,10,2); //array to contain the field ids
    add_action(‘wp’,’bp_maps_profile_edit_no_marker’);

    //TO FIX : useless ?
    //add_filter(‘bp_maps_get_new_marker_address’,’bp_maps_profile_get_new_marker_address’);

    do_action(‘bp_maps_profile_edit_map_screen’);

    bp_maps_head_init(); //load maps JS

    endif;

    }

    If you want to dll my version it here http://www.sky-flop.com/buddypressmaps-titi.rar

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

The topic ‘Buddypress Maps “plugin triggered a fatal error.” solved’ is closed to new replies.