Skip to:
Content
Pages
Categories
Search
Top
Bottom

Call to undefined function bp_blogs_get_subdomain_base

  • @tse11

    Participant

    Hi Guys, I just upgraded to the newest Buddypress version and am getting these errors:

    [Tue Oct 25 14:12:14 2016] [error] #6 /home/mysite/public_html/wp-content/ in /home/mysite/public_html/wp-content/plugins/buddypress/bp-blogs/bp-blogs-template.php on line 1087
    [Tue Oct 25 14:12:14 2016] [error] #5 /home/mysite/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(333): bp_get_template_part(‘blogs/create’, NULL)
    [Tue Oct 25 14:12:14 2016] [error] #4 /home/mysite/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(61): bp_locate_template(Array, true, false)
    [Tue Oct 25 14:12:14 2016] [error] #3 /home/mysite/public_html/wp-content/plugins/buddypress/bp-core/bp-core-template-loader.php(150): load_template(‘/home/intuitalk…’, false)
    [Tue Oct 25 14:12:14 2016] [error] #2 /home/mysite/public_html/wp-includes/template.php(574): require(‘/home/intuitalk…’)
    [Tue Oct 25 14:12:14 2016] [error] #1 /home/mysite/public_html/wp-content/themes/kleo-child/buddypress/blogs/create.php(10): bp_show_blog_signup_form()
    [Tue Oct 25 14:12:14 2016] [error] #0 /home/mysite/public_html/wp-content/plugins/buddypress/bp-blogs/bp-blogs-template.php(1050): bp_blogs_signup_blog(”, ”, Object(WP_Error))
    [Tue Oct 25 14:12:14 2016] [error] PHP Fatal error: Uncaught Error: Call to undefined function bp_blogs_get_subdomain_base() in /home/mysite/public_html/wp-content/plugins/buddypress/bp-blogs/bp-blogs-template.php:1087

    It is of course making my create a blog page only show half the page. Any ideas what could be wrong? I’ve switched out overridden files to the original so I don’t believe that is the issue.

Viewing 5 replies - 1 through 5 (of 5 total)
  • @tse11

    Participant

    I’ve resolved this and will leave a fix here in case anyone else runs into this issue:

    bp_blogs_get_subdomain_base() is a deprecated function, so I changed it in buddypress/bp-blogs/bp-blogs-template.php from:

    bp_blogs_get_subdomain_base()

    to:

    bp_signup_get_subdomain_base

    @danbp

    Participant

    Not sure it’s a fix to apply directly in a core file. You’ve probably need to review some of your templates or custom functions.

    http://hookr.io/plugins/buddypress/2.6.2/functions/bp_blogs_get_subdomain_base/

    http://hookr.io/plugins/buddypress/2.6.2/functions/bp_signup_get_subdomain_base/

    @djpaul

    Keymaster

    Whoops. That’s embarrassing. Two unrelated changes caused this. Sorry.

    We’ll get it fix ASAP.

    @djpaul

    Keymaster

    It’s not quite as bad as I thought. It’s referring to a BP 2.1 deprecated function, at first read I thought it was something in 2.7. Going to look into it more.

    @tse11

    Participant

    Yeah, that is how I discovered the temporary fix for it. I realize editing core is a no-no but I was at it for a few days trying to figure it out! Thanks for looking into it, @djpaul!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar