Skip to:
Content
Pages
Categories
Search
Top
Bottom

Page not found (404) when trying to access a member profile


  • tutorbe
    Participant

    @tutorbe

    Dear All,

    I hope someone can point me a clue regarding the following:

    I have just installed WP 4.5.3 along with only Buddypress 2.6.1.1 activated, when I tried to access members/admin/profile/, it just returned 404 page. I have tried with different themes, the same issue still existing.

    I tried to investigated the problem using the debug script from r-a-y, it just showed:

    Array
    (
        [component] => profile
    )

    Thanks and best regards,

    Jobi

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

  • danbp
    Participant

    @danbp

    Make sure you have pretty permalinks enabled on your WordPress install. (whatever except default) and save.

    And check your install again.
    Ray’s script is not a bug tracker, it gives only information about global variables which is usefull when you want to debug a custom script. If you seek for bugs – rarely the case on a new install -, activate wp_debug in wp-config.php

    https://codex.wordpress.org/Debugging_in_WordPress

    Configure BuddyPress


    tutorbe
    Participant

    @tutorbe

    Hello @danbp,

    Thanks for your help,

    Actually I have been using BP 2.5.3 for several months and already did the configurations you’ve mentioned above, it has been working properly. I just tried to upgrade to BP 2.6.1.1 then the problem has happened. I tried to eliminate causes of the problem by installing a fresh WP 4.5.3 with only PB 2.6.1.1 activated, the problem still existing.

    I also tried to compare BP 2.5.3 and BP 2.6.1.1 with the same configuration, the same request and with Ray’s script, I have noticed one difference is that:
    1. For BP 2.5.3, it can send requesting {action, component} for each menu navigation, but
    2. For 2.6.1.1, it only sends only {component}

    Just would like to mention that I have tried to use BP 2.6.1.1 with different themes, the same problem has happened for all. My server uses nginx, it works well with BP BP 2.5.3.

    Thanks for helps.

    Jobi


    tutorbe
    Participant

    @tutorbe

    Hello @danbp,,

    Just would like to give more details on my investigation with debug turned on:

    \nNotice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /var/www/html/Web/wp-includes/functions.php on line 3897

    But I dont know how to proceed the issue as I have just used WP 4.5.3 and BP 2.6.1.1 only and both are fresh.

    Thanks,

    Jobi


    r-a-y
    Keymaster

    @r-a-y

    I cannot duplicate this on my local nginx test site.

    Are you testing with no plugins? If not, disable all BuddyPress plugins and code snippets and try again.

    Also try looking at your nginx.conf file and see if it needs to be tweaked.


    tutorbe
    Participant

    @tutorbe

    Thanks Ray,

    After some investigations, It seems that there is somethings incompatible with one (or some) of my server’s PHP extensions with the new BP version whilst it is still work properly with BP 2.5.3.

    I can’t find any clue why it happens, I will try to find it out, but if any possibilities from new changes which may effect to incompatibilities with PHP’s extension, please kindly advise.

    I really appreciate your helps.

    Jobi


    tutorbe
    Participant

    @tutorbe

    Hello @r-a-y and @danbp,

    Have you all tested the new BP version with hhvm? i have noticed that you have made some changes to support class autoloading, I am not sure if it is the cause, but I have double-checked, the root cause is due to BP 2.6.1.1 have made something incompatible with hhvm.

    Thanks you all for your help.

    Jobi


    danbp
    Participant

    @danbp


    kostasbarkas30
    Participant

    @kostasbarkas30

    clean the cache and everything will be fine. i had the same problem. clean the cache from your caching plugin!


    r-a-y
    Keymaster

    @r-a-y

    @tutorbe – Thanks for mentioning that you are testing on HHVM.

    I personally haven’t tested HHVM with BP 2.6.1.1 yet.

    Can you turn WP_DEBUG on in wp-config.php and note down any debug notices that are showing up with BP 2.6.1.1?

    What happens if you disable class autoloading manually by commenting out these lines?
    https://buddypress.trac.wordpress.org/browser/tags/2.6.1.1/src/bp-loader.php?marks=469-470#L467

    Let me know if that works or not.


    mongmuon
    Participant

    @mongmuon

    I have the same problem, just install fresh WP 4.5.3 & PB 2.6.1.1 using hhvm. The system doesn’t leverage any cache. @r-a-y’s suggestion doesn’t work, the output log is as normal.


    @kostasbarkas30
    : can you confirm that you are working with the version of WP and BP as the same as the versions I am working on?


    Kinsta
    Participant

    @kinstahosting

    I can confirm that HHVM/3.14.3 + WP 4.5.3 + BP 2.6.1.1 don’t work together.
    The profile page (and other related ones) come up as soft 404 errors:
    http://buddypresstest1.kinsta.com/members/buddypresstest1/

    The error and debug logs are completely empty too, unfortunately. Let me know how can we help tracking this down!

    Thank you,
    Mark


    r-a-y
    Keymaster

    @r-a-y

    @tutorbe @mongmuon @kinstahosting – Thanks for testing on HHVM. I’ve confirmed the bug and have a patch ready:
    https://buddypress.trac.wordpress.org/attachment/ticket/7197/7197.01.patch

    Please test and let me know if it works for you.


    Kinsta
    Participant

    @kinstahosting

    @r-a-y Thank you for your prompt attention to this matter it’s really appreciated. We have applied the patch and can confirm that it’s working with HHVM 3.14.3!


    r-a-y
    Keymaster

    @r-a-y

    @kinstahosting – Thanks for confirming that the patch works! I will commit the fix early next week.


    taimoorghani1144
    Participant

    @taimoorghani1144

    Hi dear,

    Is anyone resolved this issue, I am using bbpress and budypress togather. When I click on member profile it gives 404 error.
    Ulr link becomes as:
    https://feelgoodhemp.org/members/taimoor/

    Please help.

    Thanks


    wackao
    Participant

    @wackao

    re-save permalinks at WP admin – settings – permalinks optionally, contact your server / webhost on this.


    albertmart
    Participant

    @albertmart

    i have the same problem. i cant view a member profile or create a group and the other pages have 404 error. i checked anything to find a problem but nothing


    Hollie Hewitt
    Participant

    @holliehewitt

    Same thing (cookies, if anything – cleared)


    AdaHebron
    Participant

    @adahebron

    How to solve the 404 page not found error ?


    Asiqur Rahman
    Participant

    @imasikur22

    Hope this helps. put these codes into your theme functions.php file.

    
    add_filter( 'bbp_get_reply_author_url', 'lp_member_profile_links' );
    add_filter( 'bbp_get_topic_author_url', 'lp_member_profile_links' );
    add_filter( 'bbp_get_author_url', 'lp_member_profile_links' );
    function lp_member_profile_links( $url ) {
    	if ( ! empty( $url ) ) {
    		return $url . 'profile';
    	}
    	
    	return $url;
    }
    

    albertmart
    Participant

    @albertmart

    Hi, unfortunately, it did not work. I have Astra theme. I have changed to another theme but still the problem exists

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