Skip to:
Content
Pages
Categories
Search
Top
Bottom

BBPress not working with Optimizepress Theme


  • stressebookllc
    Participant

    @stressebookllc

    Dear Experts, need your help desperately. I have the latest of everything.

    I am using optimizepress theme and have successfully used BBPress before. But the last time I checked it was quite a while ago, and now when I try to access the forums, I am being taken to the Optimizepress blog setup page and then redirected to the wordpress dashboard.

    I received this response from Optimizepress tech support:
    ========
    My suggestion would be to check with bbpress to see if something is not setup correctly. I’m afraid our support for bbpress is quite limited so all we can really do is check on our end for issues with OptimizePress, and I don’t see any.

    Your blog works fine so there is probably something going on within bbpress that is conflicting.

    Usually when we see issues like this where the blog setup shows it is a permalink conflict of some kind.

    I would suggest deactivating plugins to see if perhaps something is going on between another plugin you have and bbpress. I don’t really think this is coming from OptimizePress specifically as we haven’t seen this exact issue on sites that just run bbpress and OptimizePress.
    ========

    So I created a staging site, and deactivated all my plugins except BBPress, and Optimizemember, the membership plugin. I still have the same issue.

    I have attached the image of the page below.
    CLICK TO SEE THE IMAGE

Viewing 25 replies - 1 through 25 (of 26 total)

  • Pascal Casier
    Moderator

    @casiepa

    Hi,

    That image has nothing to see with bbPress, right ?

    Pascal.


    stressebookllc
    Participant

    @stressebookllc

    Pascal, you are correct. it is a page that I see when I click on a forum link. So it seems like some kind of a permalink issue.


    Robkk
    Moderator

    @robkk

    See if this plugin fixes the issue you might be experiencing.

    https://github.com/OptimizePress/op-bbpress-fix

    The plugin seems to only contain a really small code snippet in it, so if you want to instead paste this code snippet instead you can also try that.

    Add this function to your child themes (if you have a child theme) functions.php file, or add the php code snippet into a plugin that can hold custom php code snippets like the functionality plugin.

    function op_allow_bbforum() {
        $forumPage = get_post(url_to_postid( "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] ));
        if ($forumPage->post_type == 'forum'){
            op_update_option('blog_enabled','Y');
            op_update_option('installed','Y');
        }
    }
    add_action('init', 'op_allow_bbforum');

    Make sure to test and see if this plugin/code snippet works for all of bbPress’ post types.


    stressebookllc
    Participant

    @stressebookllc

    Thank you Lord, I downloaded and installed the plugin on the staging site, and unfortunately the issue is still the same…


    Robkk
    Moderator

    @robkk

    Well I do not really have any other suggestions on this. It is really tough to test a premium product like what you are using.


    stressebookllc
    Participant

    @stressebookllc

    Wow, looks like I am screwed… neither my theme nor BBPress has an answer at this point, what do people do to have a good forum on their site then? Would there be a paid forum I could try? I asked OP for their recommendation for a forum and they had none.


    Robkk
    Moderator

    @robkk

    I mean bbPress is free to use and your theme authors could just set it up and see what is causing the issue. For us we would have to pay or at least in the past paid for the theme first to even test it to see what is causing the issue.

    You could hire a developer to fix this issue for you. After just googling if others had a similar issue I also found freelance sites/services that would do the job. Suggest you head to a freelance website for a dev to fix this up for you.


    stressebookllc
    Participant

    @stressebookllc

    Yeah, I need to go that route. But thanks for your help Robkk.


    Robin W
    Moderator

    @robin-w

    just a question, but is your staging site a wamp/lamp/mamp site ?


    stressebookllc
    Participant

    @stressebookllc

    Have no idea what that means, but it is essentially a copy of my live production site only for testing purposes.


    Robin W
    Moderator

    @robin-w

    so it is on a server/with a hosting company – not on your PC ?


    stressebookllc
    Participant

    @stressebookllc

    Right..


    Robin W
    Moderator

    @robin-w

    ok, just eliminating as sometimes local (pc) installations can have url issues.

    Can you tell us in

    Dashboard>settings>forums

    what the forums root is set to and also do yiu bave a wordpress page with [bbp-forum-index] on it? and if what is the url of that page?


    stressebookllc
    Participant

    @stressebookllc

    Understood.

    Root is members

    The url of the page is http://www.staging1.stressebook.com/members/forum/silver-forum/

    Hope I answered correctly.


    Robin W
    Moderator

    @robin-w

    sort of

    ok, so can you add a new page

    heading : members
    Content : [bbp-forum-index]
    and set the permalink of that page to` http://www.staging1.stressebook.com/members/
    `

    and then tell us what you get when you view that page


    stressebookllc
    Participant

    @stressebookllc

    OK….. so I did as you suggested..

    I see the same image I posted at the start when I goto..
    http://www.staging1.stressebook.com/members/


    Robkk
    Moderator

    @robkk

    @stressebookllc

    When you tried the fix I listed, did the setup screen have an additional check next to the

    Turn on your blog from the blog settings.

    If it does that means there is some progress for the fix, and that all that needs to be done is to update the last option. If not, still out of other suggestions.


    stressebookllc
    Participant

    @stressebookllc


    Robin W
    Moderator

    @robin-w

    ok, since we can’t see your forum – we just get a login page, what language is your site in?


    stressebookllc
    Participant

    @stressebookllc

    Also I already have a blog, http://www.stressebook.com/blog


    stressebookllc
    Participant

    @stressebookllc

    English Robin.


    Robin W
    Moderator

    @robin-w

    As far as I can see the solution is with that code snippet – it fits the problem description very well

    can you amend line

    if ($forumPage->post_type == 'forum'){
    
    

    to

    if ($forumPage->post_type == bbp_get_forum_post_type() ){
    

    and try it again


    Robin W
    Moderator

    @robin-w

    and once you had transferred the plugin to your site, you did go in plugins and activate it?? 🙂


    stressebookllc
    Participant

    @stressebookllc

    How to amend this line? 🙁

    Sorry I am not that technical.

    And yes it was activated. 🙂


    Robin W
    Moderator

    @robin-w

    ok, well I’m out of ideas.

    suggest you contact

    https://github.com/gbanina

    who wrote the fix, and seems to be a guru on optimise and see if he can help.

    If you get a solution PLEASE post it here, so that others can benefit

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