Skip to:
Content
Pages
Categories
Search
Top
Bottom

buddypress frontend links


  • robert198222
    Participant

    @robert198222

    Hi,
    I use a custom theme. wordpress 4.3.1, and now I installed buddypress 2.3.4.
    The buddypress pages weren’t created for some reason (“Membership – Anyone can register” was turned on when installing buddypress). I created the pages manually and assocciated them in buddypress settings (registrate, activate, activity stream, members).

    First of, when activating Buddypress plugin then this error (same kind of error occour everytime I visit any page in admin when buddypress is activated, so it doesn’t appear just on activiating the buddyress plugin, the error doesn’t occour when buddypress is deactivated):

    2015/10/12 13:24:37 [error] 23074#0: *3 FastCGI sent in stderr: “PHP message: PHP 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 /my/path/to/html/wp-includes/functions.php on line 3622″ while reading response header from upstream, client: my.computers.ip.number, server: mywebpage.com, request: “GET /wp-admin/plugins.php?activate=true&plugin_status=all&paged=1&s= HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “my.host.ip.address”, referrer: “http://myserver.com/wp-admin/plugins.php?plugin_status=all&paged=1&s”

    Second issue is the frontend links, none of them work correctly, all links direct me to my users recent blog posts. The links in the URL look like this:
    mywebpage.com/members/myusername/
    mywebpage.com/members/myusername/friends/
    mywebpage.com/members/myusername/messages/
    mywebpage.com/members/myusername/notifications/
    mywebpage.com/members/myusername/profile/
    mywebpage.com/members/myusername/settings/

    “Log out” link works! when pressing the log out link I am logged out and redirected to /wp-admin/, on that page I have a message where it says: “You must log in to access the page you requested.”. It’s pretty logical that you need to be loged in to be able to access log out page, isn’t it?

    For the links to work properly I guess I have to copy some of the buddypress files to my custom theme in wp-content/themes/mycustomtheme, but what do I need to copy?

    /Robert

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

  • shanebp
    Moderator

    @shanebp

    1st issue: a plugin is calling bp_setup_current_user too soon – using a hook that fires before BP is ready. This can be tricky to track down.

    2nd issue: All the links look correct. It’s probably an issue in your custom theme. To confirm, try switching to a WP theme like 2015.


    robert198222
    Participant

    @robert198222

    1st issue: How come no one else gets this issue? I have a plain installation (manually installed) of wordpress and a theme installed (no core files are edited).

    2nd issue. I tried switching to WP theme 2015 and it’s working. Not sure what needs to be done to make it work with my theme?

    /Robert


    shanebp
    Moderator

    @shanebp

    1. Other people do have this issue. It’s due to the use of some hook in their theme or a plugin.

    2. Something in your theme is rewriting or redirecting urls.


    robert198222
    Participant

    @robert198222

    1. ok. Thanks for explaining!

    2. I use nginx 1.6.3, could it have to do with those rewrites?


    shanebp
    Moderator

    @shanebp

    If it was nginx, why do the links work in theme 2015 ?


    robert198222
    Participant

    @robert198222

    you’re correct regarding the nginx rewrites, didn’t think of that…

    hmm.. how strange, not sure what to do actually. The theme developers say that it should work.
    http://listify.astoundify.com/article/683-is-the-listify-theme-a-buddypress-compatible-theme

    Now the “Change Avatar” link isn’t shown anymore for some reason, only thing I did was to deactivate and then reactivate the buddypress plugin. everything in the configuration seems correct (in setting the “Allow registered members to upload avatars” is checked). and only error I have in the logs is this related to buddypress.

    Perhaps better to uninstall buddypress for now and wait for a more stable version.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘buddypress frontend links’ is closed to new replies.
Skip to toolbar