Jump to content

Archived

This topic is now archived and is closed to further replies.

dconjar

BuddyPress Subpages 404

Recommended Posts

dconjar    0
dconjar

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
Rob    547
Rob

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.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Erwan    37
Erwan

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
Rob    547
Rob

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


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
iain    2
iain
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
Erwan    37
Erwan

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
iain    2
iain
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
Erwan    37
Erwan

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
iain    2
iain

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
dconjar    0
dconjar

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

Share this post


Link to post
Share on other sites
sidianmsjones    0
sidianmsjones

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
Erwan    37
Erwan

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
dconjar    0
dconjar

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
Rob    547
Rob

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


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
carletto0282+    4
carletto0282

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

  • Like 1

Share this post


Link to post
Share on other sites
iain    2
iain

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
carletto0282+    4
carletto0282

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
iain    2
iain

Hey Carlo!!

 

Awesome! Thank-you so much! :-)

 

Cheers,

Iain.

Share this post


Link to post
Share on other sites

  • Similar Content

    • JawDesigns
      By JawDesigns
      Hi everyone,
      Flywheel have reported errors on my clients site 'www.racewaredirect.co.uk' and it's not loading. Can someone please provide some information on how to fix this? The site has never experienced these issues before.
      Thanks,
      James Wilson
    • MissT
      By MissT+
      Hi there,
      I've got an issue with 3 websites built with DMS since I migrated them from http to https that I need help with please.
      When any changes are made - e.g. new posts added or existing posts amended - certain sections of the live site seem to break e.g. image headers hang and don't load (b/g on canvas section), sliders hang and don't load (Revslider), flipper section doesn't load.
      Logging in and then clicking 'Edit the site using DMS' seems to fix the problem. Often if I try to open up another browser window to edit the site / re publish I'm unable to as the page wont load / hangs while trying to load.
      Any ideas how to fix this? On a couple of the sites I've installed a caching plugin as I thought it might be a loading speed issue but it's still happening.
      Website URL's can be provided privately.
      Many thanks in advance.
    • jeomiland
      By jeomiland+
      Hi
      I found this topic
      which talks about a similar issue I am having, but a little different. Hope someone can help me out.
      Best way to see the problem is to view http://cassclayton.com/ on Safari (Mac) compared to Firefox or Chrome. You will see the banner just under the fixed menubar has a gap between the menubar and top of the banner. Looking at Inspector, I found:
      <div class="fixed-top-pusher" style="height: 62px;"></div>
      <script> jQuery('.fixed-top-pusher').height( jQuery('.pl-fixed-top').height() ) </script>
      and indeed it seems the jquery is not always working consistently. For instance, if you simply refresh the page in Safari, it will loose the gap and all looks fine, so is it a browser cache issue that is interacting with the jquery? I do have W3 Total Cache installed. There must be a way to tell the code to make sure jquery is up and running and available to do it's majic?
      And perhaps there is just a better way to do this banner? Originally I tried several DMS sections and used the banner image as background, etc... Kept running into problems with resizing and the left/right parts of the image were getting chopped off. It is important the whole image show, so currently I just use a NextBox section with this code:
      <img src="[pl_site_url]/wp-content/uploads/2015/12/CassClayton-blues-tribute-banner.jpg" width="100%" />
      and it looks the way it should. Is there a better way to place a banner graphic under a fixed navbar and make sure the whole banner graphic displays regardless of screensize?
       
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
    • kwaoru
      By kwaoru
      Hi,
      I desperately need to deactivate the responsive function on mobile for reasons. It looks so messy with the responsive look on mobile and not navigating or informative at all as it is. 
      I searched for solutions online and tries some of those that I found but nothing worked out. Also I found a previous post on this forum says that this theme pagelines DMS is not meant to be build to deactivate the responsive function... 
      Also tried with widget such as WPtouch to edit the mobile look a little more informative but as I am using "single page" theme on pagelines, the frontpage(main page) never appears on those app.
      Seems like not compatible?
      If there is no way to deactivate responsive function or I'll have to recreate another page just dedicated for a mobile page? or change the theme completely and build a page from scratch?
      I have been searching for this for two days already...
      Could anyone wise and kind out there, please help me?
       
      Thanks,
×