Title: Function root_domain was called incorrectly
Last modified: February 24, 2024

---

# Function root_domain was called incorrectly

 *  Resolved [joneiseman](https://wordpress.org/support/users/joneiseman/)
 * (@joneiseman)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/function-root_domain-was-called-incorrectly/)
 * I’m getting the following notices:
 *     ```wp-block-code
       PHP Notice:  Function root_domain was called incorrectly. The root_domain BuddyPress main class property is deprecated since 12.0.0, please use the root_url property instead. Please see <a>Debugging in WordPress</a> for more information. (This message was added in version BuddyPress 12.0.0.) in .../public_html/wp-includes/functions.php on line 6031
       ```
   
 * This can be fixed by changing line 265 in wp-content/plugins/events-manager/buddypress/
   bp-em-core.php from this:
 *     ```wp-block-code
       $group_link = $bp->root_domain . '/' . bp_get_groups_root_slug() . '/' . $bp->groups->current_group->slug . '/';
       ```
   
 * To this:
 *     ```wp-block-code
       $group_link = function_exists('bp_get_root_url') ? bp_get_root_url() : bp_get_root_domain() . '/' . bp_get_groups_root_slug() . '/' . $bp->groups->current_group->slug . '/';
       ```
   
    -  This topic was modified 2 years, 3 months ago by [joneiseman](https://wordpress.org/support/users/joneiseman/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/function-root_domain-was-called-incorrectly/#post-17452389)
 * Thank you, I will inform the Devs about this.

Viewing 1 replies (of 1 total)

The topic ‘Function root_domain was called incorrectly’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/function-root_domain-was-called-incorrectly/#post-17452389)
 * Status: resolved