Skip to:
Content
Pages
Categories
Search
Top
Bottom

404 when deleting post or comment


  • hcportos
    Participant

    @hcportos

    Hi.
    One more issue here (hopefully the last one)
    When I post a message to activity stream, everything is OK.
    But when I try to delete my own post (admin acc), I recieve 404 page and post or comment is not deleted.
    You can try here https://wikidiy.org

    I dont have any error in console…
    Tried to find something similar on this forum but…

    BuddyPress 4.2.0
    Wordpress 5.1.1

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

  • Venutius
    Moderator

    @venutius

    Which bp Theme are you using?


    hcportos
    Participant

    @hcportos

    BP legacy – but yes, i have some changes in child theme.
    When I disable child theme, it is working…
    I’m just wondering where can be the issue…where i should focus to find the trouble…
    somewhere in buddypress/activity/ ?


    Venutius
    Moderator

    @venutius

    Yes, you should check buddypress/activity/entry.php if should be loading bp_activity_delete_link()


    hcportos
    Participant

    @hcportos

    Found it.
    in child theme i used file from BP 2.x
    So i’ve just replaced

    				<?php if ( bp_activity_user_can_delete() ) {
    					echo '<a href="'.bp_get_activity_comment_delete_link().'" type="button" class="button button-xs item-button bp-secondary-action delete-activity confirm" rel="nofollow"><i class="fa fa-trash-o"></i></a>';
    					
    					} ?>

    with

    <?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link(); ?>

    Solved

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