Skip to:
Content
Pages
Categories
Search
Top
Bottom

V2.8 Undefined Function in MU when Creating Site

  • @thefierywell

    Participant

    Local install; WP 4.7.2, Multisite
    BuddyPress 2.8 only active plugin
    Twentysixteen theme

    I’ve only tested this as Super Admin, but when logged in and creating a site on the front end (mydomain.dev/sites/create/) a Fatal Error now occurs:

    Fatal error: Uncaught Error: Call to undefined function bp_blogs_get_subdomain_base() in /app/public/wp-content/plugins/buddypress/bp-blogs/bp-blogs-template.php on line 1080

    Appears regardless how the following settings are checked:
    – Logged in users may register new sites.
    – Both sites and user accounts can be registered.

    This error did not come up in 2.7.4. Reverting back to 2.7.4 resolves the issue. Not certain this is an actual bug or random? What else can I provide?

    Thanks,
    Patty

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

    Participant

    Hi,

    it is a little bug and already fixed!
    Please read here: https://buddypress.org/support/topic/buddypress-2-8-0-san-matteo/

    @thefierywell

    Participant

    Hi @danbp,

    Thank you! I’ve applied the fix and still experiencing the same problem.

    I’ve only had a few minutes this morning, but is it possible the deprecated 2.1.php file is not loading?

    – Placing a die(); statement in the 2.1.php file does nothing.
    – In class-buddypress.php if move the
    require( $this->plugin_dir . 'bp-core/deprecated/2.1.php' );
    outside of the
    if ( ! bp_get_option( '_bp_ignore_deprecated_code', ! $this->load_deprecated ) ) { statement the die() works, and removing die() the create site functionality returns

    – Also, if I place the called bp_blogs_get_subdomain_base() function into class-buddypress.php it works

    @thefierywell

    Participant

    @r-a-y

    Keymaster

    Thanks for finding this bug, @thefierywell.

    You are correct that this is due to #7307. We’ll be looking to fix this for v2.8.1.

    In the meantime, for a temporary fix, you can switch out bp_blogs_get_subdomain_base() for bp_signup_get_subdomain_base() in bp-blogs\bp-blogs-template.php and that should fix your problem.

    Let us know if you keep seeing some fatal errors.

    @thefierywell

    Participant

    Hey @r-a-y,

    So far, so good!

    Thanks!

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