Skip to:
Content
Pages
Categories
Search
Top
Bottom

how can edit topic from fronend ?

  • @gkldh

    Participant

    Hi, I am using bbpress first time. WordPress Ver : 6.6.1 , BBpress Ver : 2.6.11 , theme : buddyx 4.5.8

    I couldn’t find a solution to this issue.
    the issue is : when i post new topic and edit again and URL generate : http://buddypress.local/index.php/questions/topic-3/edit/ [404 error]
    any other way how to edit topic from frontend not wordpress backend ?
    i have test in my localhost system.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • @robin-w

    Moderator
    add_filter( 'bbp_verify_nonce_request_url', 'my_bbp_verify_nonce_request_url', 999, 1 );
    function my_bbp_verify_nonce_request_url( $requested_url )
    {
    return 'http://localhost:8888' . $_SERVER['REQUEST_URI'];
    }

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

    where %your-theme-name% is the name of your theme

    or use

    Code Snippets

    @gkldh

    Participant

    @robin-w thanks for reply, i have use child theme. but your code not working.

    i tried your code with both type :
    return 'http://localhost:8888' . $_SERVER['REQUEST_URI'];
    return 'http://buddypress.local/' . $_SERVER['REQUEST_URI'];

    screenshot : https://prnt.sc/CSTMlQ1ChCaG

    @robin-w

    Moderator

    ok, since I cannot see the site, troubleshooting is near impossible.

    it could be a theme or plugin issue

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    @gkldh

    Participant

    yes, @robin-w its working on server side by default buddyx-theme/twentytwenty and no need any additional code add. May i know the reason why didn’t work on localhost ??

    And Next time I will test it on the server first. If I face any problem then I will post it.

    thank you so much your great help @robin-w

    @robin-w

    Moderator

    sorry, I just help out here, there are many things on localhost that are different including htaccess and maybe many others

    I have never developed on localhost, nothing against those that do, but developing on the same server using exactly the same code as live enables you to have confidence that the performance and configuration is exactly the same, just my view 🙂

    Anyway glad you are fixed !

    @gkldh

    Participant

    yes, you are right. thanks 😇👍

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