• 0
Sign in to follow this  
Followers 0

BuddyPress Subpages 404


Question

Posted · Report post

I'm porting a large content / community site over to DMS from Carrington Theme. And I'm running into some major roadblocks with BuddyPress compatibility.
 
The main BuddyPress pages work. However, all of the subpages 404.

For instance, if I go to the Activity page and click on any of the groups, forum topics, or member usernames, it 404s. The same thing happens when I go to the Groups page, or the Members page.

When I go in WordPress to Network Admin : Groups (I'm using multisite) and click to "View" any of the groups, it 404s.
 
It looks like I'm not the only one having this problem.

Besides hacking the DMS core, I've tried pretty much everything to debug this:

  • I've tested it with and without bp-template-pack (see this previous thread for more details)
  • I've disabled all active plugins, network-activated plugins, must-use plugins, and custom functions (besides BuddyPress)
  • I've tried tweaking my permalink structure

When I turn on WP_DEBUG and go to individual group pages, it returns these notices:

Notice: bp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in /var/www/vhosts/dev.oxfordclubdev.com/httpdocs/wp-includes/functions.php on line 3012

Notice: Undefined variable: group in /var/www/vhosts/dev.oxfordclubdev.com/httpdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-loader.php on line 598

Notice: Trying to get property of non-object in /var/www/vhosts/dev.oxfordclubdev.com/httpdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-loader.php on line 598

Notice: Undefined variable: group in /var/www/vhosts/dev.oxfordclubdev.com/httpdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-loader.php on line 598

Notice: Trying to get property of non-object in /var/www/vhosts/dev.oxfordclubdev.com/httpdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-loader.php on line 598

--
 
When I try to access individual forum topics, it doesn't even bother to 404. It gives me a wp_die() with the exact same error messages, and an additional mysql_connect() warning. I'd paste the warning, but your forum won't let me...

This is my PL debug output:

WordPress Version : 3.6

Multisite Enabled : Yes

Current Role : Administrator

Framework Path : /var/www/vhosts/dev.oxfordclubdev.com/httpdocs/wp-content/themes/dms

Framework URI : http://dev.oxfordclubdev.com/wp-content/themes/dms

Framework Version : 0.9.6

Framework Build : 0.9.6

PHP Version : 5.2

Child theme : Yes
/var/www/vhosts/dev.oxfordclubdev.com/httpdocs/wp-content/themes/oc
http://dev.oxfordclubdev.com/wp-content/themes/oc

PHP Open basedir restriction : Yes!

PHP memory : 256

Mysql version : 5.0.77

Sections Plugin : Not Installed!

PHP type : Apache2handler

PHP User : Apache

OS : Linux

Launchpad : Not logged in.

--
 

Any ideas?

If anyone from PL would like access to my dev site for troubleshooting purposes, let me know and I'll PM you the details.

Share this post


Link to post
Share on other sites

17 answers to this question

  • 0

Posted · Report post

I'm checking this.  It seems the same on my site when clicking the member profile, but then, I didn't actually create any member profiles yet.

 

I'll report back by tomorrow.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

dconjar"] cc @[member="Rob
 

It's me who posted the issue in BuddyPress support forum, just in case. No answer yet, and I'm pretty sure I won't have any ;). It's most probably a PageLines issue, not a BuddyPress one.

Btw, there's another opened thread in this DMS support forum on the same matter, with other users experiencing the same issue: http://forum.pagelines.com/topic/28714-buddypress-problems-profile-page-not-found/

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Erwan, thanks.

 

It's a very odd issue I must admit I did not get to in detail yet. I will!

 

If you know the answer or can reproduce it, please post a report on it https://github.com/pagelines/DMS

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hey Rob, others...

 

I don't know if this has anything to do with the issue or not, but it appears BP 1.7 changed templating methods. I'm experiencing similar issues - pages within BP that have their own "page" eg Members (http://mysite.com/members) work okay - pages that are then generated eg http://mysite.com/members/user1 don't and produce a 404.

 

This doesn't just appear to be a DMS issue - I've seen it with a few other themes, and others seem to have had the same problem too. That said, the BP default and Twenty Thirteen themes are okay.

 

I'm trying to figure out the issue and have come across this thread on the BP forums - I don't know if it will help / has a key to the answer - but thought I'd post it here in case it does (I've tried creating a buddypress.php file within my theme based on page.php and adding the content and the title hooks, but to no avail). Link is here: http://buddypress.org/support/topic/how-to-make-my-theme-work-with-buddypress-1-8/

 

Cheers,

Iain

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

iain

Hum. If I read well, the BuddyPress thread you mention does not at all adress our odd (Rob is absolutely correct when qualifying it this way) issue i.e.: 404 for "sub pages" only. The user mentioned a theme supposedly not compatible at all with BuddyPress, which is quite different, i.e. the BP loop did'nt even worked for main pages. Btw its online site works atm with BP (pages & "sub pages"): issue solved, or theme changed.

Actually, themes not compatible at all with BuddyPress 1.7 or > are rare: I would be curious to know which are the ones you refer to... especially if you identified themes with the exact issue we're struggling with. And to understand what you mean by "This doesn't appear to be a DMS issue" ;)







 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Erwan,

 

Apologies - my bad. I am having the same issue as Rob... Eg the pages that are created (eg members) works, but going to a "subpage" (eg clicking on a user's name) then creates a 404.

 

I misread the link I offered as being the same issue... Reading it now, it's not!!! Sorry I should have read more carefully!

 

Looking forward to a solution though - thanks in advance for any work you guys do on this one. :-)

 

Cheers,

Iain.

 
 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

iain

Thanks for getting back to me/us & glad the confusion is cleared  ;)


Btw, you could read dozens of threads adressing BP 404 errors but not this one.

I just began to debug what happens (BP "templating" - PHP - SQL - ...) and will post an update when/if I find the answer.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Erwan,

 

No problems and apologies again... I had read loads of threads, I think that's why I made the schoolboy error.... My eyes had gone square! ;-)

 

I had specifically misread the part that said "I have all the 5 pages created without any problem. However, when I click on them, they are all empty. I’ve tried changing the theme to another and the pages were alright " - looking back it quite clearly says that the 5 pages created without any problems, but clicking on them they are empty. I don't know how I managed to misread it as that they 5 pages were created but clicking on links within them were empty (eg 404). Again apologies - I can see the mistake I made. It was a loooong day yesterday in general for me!

 

Anyways, will leave you to look at the issue further. :-)

 

Iain.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Erwan - just wondering, were you able to reproduce it?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hey guys. Nothing helpful add. Just wanted to say I'm experiencing this as well.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Erwan - just wondering, were you able to reproduce it?

 

​Hi dconjar,

Could you explain further what you mean by reproduce?

 

If you mean "the problem still occurs on all my local and online DMS 0.9.7 + BP 1.8.1 sites started afresh", the answer is yes.

 

If you mean "the problem occurs under other various configurations [such as those you mentioned at the beginning of this thread]", the answer is yes for DMS 0.9.7. As a matter of fact, I extend my experimental field to v3 "trunk" +  v2.4.4 +  v1.4.5 with with all BP versions > 1.7, and have quite a few surprises I'll explain later if it's really necessary (i.e. hopefully not, don't want to lead to more confusion here ;))

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hey Erwan - good to know. Might be time to start hacking the DMS core, for me at least.

 

Rob - any luck?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Haven't had the time to address it.  I'm living in these forums, not virtually, but literally dealing with a gzillion issues. Apologies.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi guys,

 

I'm having the same issue here. Trying to start a new community with buddypress plugin... but since it will not be fixed I can't use it with dms... or I can't use dms... even worse!

 

Hope you could find a solution on this!

Thanks

Carlo

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Rob,

 

Sorry to be a pain... I just wondered if there was any update on this. Know you guys are busy though so not meaning to seem pushy. 

Thanks in advance,

Iain.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hey guys GREAT NEWS FOR YOU!

 

larrojas find the solution to our problem... it's like a DMS trick!

 

Take a look here

 

http://forum.pagelines.com/topic/29213-dms-and-plugin-conflict-buddypress-views/

 

and here

 

http://forum.pagelines.com/topic/28714-buddypress-problems-profile-page-not-found/

 

 

It might be repetitive but I guess this answers some of the questions here. I had the same problem expressed above. Now my buddypress and bbpress seems to be working alright. I need to test still BBpress further more since I still don't have any topic.

 

 

 

I have just did the following and hope this can be helpful.

 

I am using Flyte child theme. Many of this themes seems that doesn't have the Content/PostLoop section. it seems that that is why we get the 404 page.

 

I have:

 

1. wordpress multisite

2. new wordpress installation

3. I don't have the buddypress template pack

4. I have the Buddypress 1.8.1 and BBpress   2.3.2

 

 

What I did:

 

1. in editing mode or logged in as admin I when to http://domain.com/members/ ...of course this worked before...

2. then I click any of the members. The first one would be the one who is logged in

3. you will have blank page. Then go to ADD SECTIONS  in DMS

4. select: Content/PostLoop section and drag it to "Template" area. 

 

now I can see my subpages: profile, friends, etc

 

I hope this helps

 

Luis

 

 

Great job man! Thanks again!

Bye

Carlo

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hey Carlo!!

 

Awesome! Thank-you so much! :-)

 

Cheers,

Iain.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0