• Fatal error: Using $this when not in object context in /home/database/public_html/mydomain.com/wp-content/plugins/bp-groupblog/bp-groupblog-classes.php on line 58

    I’m getting this error when going to the group blog tab under admin.

    and I just now got this additional error when creating a group.

    Fatal error: Using $this when not in object context in /home/database/public_html/mydomain.com/wp-content/plugins/bp-groupblog/bp-groupblog-classes.php on line 31

    Also when I receive these errors my admin bar disappears

    any help is appreciated

    http://wordpress.org/plugins/bp-groupblog/

Viewing 8 replies - 1 through 8 (of 8 total)
  • I am also getting this error. I did this install twice today. The first one worked and the second one did not. The only difference is that the first install root install was domain.com and the second root install was domain.com/directory.

    Is there a way to modify bp-groupblog-classes.php to allow for a subdirectory install of wordpress multisite? Do I need to add directory into the slug?

    I’m also getting the same error on the BP Groupblog admin page. Could it have something to do with the PHP version or something in php.ini?

    It works on my localhost which is on PHP 5.4.7 but it doesn’t work on the webserver which is on PHP 5.2.17.

    Plugin Author Boone Gorges

    (@boonebgorges)

    Thanks for the reports.

    I think this bug is being caused by BuddyPress 1.8. matom, thanks for the PHP version info – I had an inkling that this is what was going on, though I still haven’t been able to track down what’s going on.

    I have a feeling that this bug is going to be fixed in BP 1.8.1 rather than in bp-groupblog. Either way, I’ll post back here once there’s a fix in place. Thanks again.

    Boone,

    please review the message I sent, I did this install with the same versions twice yesterday. The time it did not work multisite was installed in a sub directory.

    This is probably not a fix or the best way to do this, but as a quick workaround I’ve changed bp-groupblog-classes.php to re-instantiate itself on every function that uses $this.

    See http://pastebin.com/u4VxQC0P

    Works for me for now. I had to do the same on a couple of my own Group Extensions too.

    Thread Starter booker123

    (@booker123)

    Thanks matom, if a better work around is found please post here.

    Plugin Author Boone Gorges

    (@boonebgorges)

    As suspected, this is a BP bug. Details at https://buddypress.trac.wordpress.org/ticket/5126#ticket

    It’ll be fixed in BP 1.8.1, out within the next couple of days. In the meantime, you can manually apply the changes found at https://buddypress.trac.wordpress.org/changeset/7332 (those in the bp-groups-classes.php chunk – ignore the rest) and it should fix the issue.

    Thanks again for reporting and helping to track this down.

    Thanks for your Effort Boone! Also had run into $this 😉

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

The topic ‘Fatal error: /bp-groupblog-classes.php on line 58’ is closed to new replies.