Skip to:
Content
Pages
Categories
Search
Top
Bottom

[resolved] link parsing from “nice links” to mysql database produces 404 errors

Published on August 14th, 2015 by azteca1001

hi guys!
first of all, this is my very first installation, and i have really not very much experience with content managment systems in general, so be soft on me please.

second, everything actually seems to work, except for the fact, that apache2 returns an error 404 for each and every single page, that i would like to open from bbpress.

i created some forums, and posted a test post in there.

that content i found in the mysql database in the wp_posts table, so the communication to the mysql database basically works.

but from the looks of it, when you try to call that contnet, apache seems to be looking in the actual filestructure for those files/that content, rather than within the mysql database.

the very only hint that i could find on the net, was that something with my htaccess file could be wrong.
so as regular expressions make basically not much sense do decifer, when you haven’t the single first clue, what is supposed to go through them, i cannot tell, whether what i i found in these files is correct, here is, what /etc/pordpress/htaccess contains:


# For rewrite rules needed for making WordPress URL friendly
# See Options -> Permalinks for details and please use the defaults,
# especially in mind when hosting several blogs on one machine!

##
## Configuration for a single blog hosted on / (root of the website)
##
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteBase /
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule . /index.php [L]
#</IfModule>

##
## Configuration for a multi-site wordpress installation using subdomains
##
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteBase /
#RewriteRule ^index\.php$ - [L]
## uploaded files
#RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
## real files dealt directly
#RewriteCond %{REQUEST_FILENAME} -f [OR]
#RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^ - [L]
## other go through index.php
#RewriteRule . index.php [L]
#</IfModule>

/usr/share/wordpress/.htaccess
contains exactly the same,

/var/www/wordpress/.htaccess
contains:


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

/var/www/wordpress/wp-content/plugins/buddypress/bp-forums/bbpress/bb-admin/includes/defaults.bb-htaccess.php
contains this:


<?php

$_rules = <<<EOF
# BEGIN bbPress

Options -MultiViews

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase %PATH%

RewriteRule ^page/([0-9]+)/?$ %PATH%index.php?page=$1 [L,QSA]
RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ %PATH%forum.php?id=$1&page=$2 [L,QSA]
RewriteRule ^forum/([^/]+)/?$ %PATH%forum.php?id=$1 [L,QSA]
RewriteRule ^forum/?$ %PATH% [R=302,L,QSA]
RewriteRule ^topic/([^/]+)/page/([0-9]+)/?$ %PATH%topic.php?id=$1&page=$2 [L,QSA]
RewriteRule ^topic/([^/]+)/?$ %PATH%topic.php?id=$1 [L,QSA]
RewriteRule ^topic/?$ %PATH% [R=302,L,QSA]
RewriteRule ^tags/([^/]+)/page/([0-9]+)/?$ %PATH%tags.php?tag=$1&page=$2 [L,QSA]
RewriteRule ^tags/([^/]+)/?$ %PATH%tags.php?tag=$1 [L,QSA]
RewriteRule ^tags/?$ %PATH%tags.php [L,QSA]
RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ %PATH%profile.php?id=$1&page=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/?$ %PATH%profile.php?id=$1&tab=$2 [L,QSA]
RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ %PATH%profile.php?id=$1&tab=$2&page=$3 [L,QSA]
RewriteRule ^profile/([^/]+)/?$ %PATH%profile.php?id=$1 [L,QSA]
RewriteRule ^profile/?$ %PATH%profile.php [L,QSA]
RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ %PATH%view.php?view=$1&page=$2 [L,QSA]
RewriteRule ^view/([^/]+)/?$ %PATH%view.php?view=$1 [L,QSA]
RewriteRule ^rss/?$ %PATH%rss.php [L,QSA]
RewriteRule ^rss/topics/?$ %PATH%rss.php?topics=1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/?$ %PATH%rss.php?forum=$1 [L,QSA]
RewriteRule ^rss/forum/([^/]+)/topics/?$ %PATH%rss.php?forum=$1&topics=1 [L,QSA]
RewriteRule ^rss/topic/([^/]+)/?$ %PATH%rss.php?topic=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/?$ %PATH%rss.php?tag=$1 [L,QSA]
RewriteRule ^rss/tags/([^/]+)/topics/?$ %PATH%rss.php?tag=$1&topics=1 [L,QSA]
RewriteRule ^rss/profile/([^/]+)/?$ %PATH%rss.php?profile=$1 [L,QSA]
RewriteRule ^rss/view/([^/]+)/?$ %PATH%rss.php?view=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ %PATH%index.php [L]
</IfModule>

# END bbPress
EOF;

$_rules = str_replace( '%PATH%', bb_get_option( 'path' ), $_rules );

if i set the permalinks from “nice links” to php=dafb51fd1? , then i get

Oops! That page can’t be found.

any ideas, please?

thanks in advance and yours, azteca.

View all posts across multiple forums

Published on August 14th, 2015 by geog272

Hi there,

I have several nested forums and I’m wondering if it’s possible to give users an option to view all posts across all the forums.

So, for example, I have a forum for each county in my state. Is it also possible to give folks an option to view all posts from all counties?

http://www.plowandanchorconnect.com/forums/forum/plow-and-anchor-forums/maine/

Thanks in advance for your help!

Forum topics not aligned, topic title missing and generally ugly look and feel

Published on August 14th, 2015 by ptichka

Hi.

I am trying to improve the look and feel of my forum but without success 🙁
Here’s what my topics currently look like:
http://www.authentic-jerusalem-tours.com/forums/topic/good-places-eat-saturday-jerusaelm/

What i want to achieve is:

1. Have the title displayed within the topic frame (not just in the page title bar)
2. Align the topic text with the author box on the left so it appears next to it rather than bellow it.

I’m not great at CSS/PHP so precise instructions would be very appreciated.

Thanks

The subscribe has no spaces from breadcrums

Published on August 14th, 2015 by atfpodcast

In my theme im using Raindrops the subscribe link it running with the rest of the forums tree like this:

Home › Forums › Backstage – All AccessSubscribe how can i add a space or two to separate it?

Complete noob, need help!

Published on August 14th, 2015 by Kamorle

Hi all. I have a WordPress site with a fresh install of bbpress on it for my forums. That said, the default bbpress theme for my site looks absolutely awful, so I was wondering how to install another theme or even just change the colors just for my forums. This is what it’s looking like at the moment.

I recently discovered this theme here that looks alright. Is there some way I could import that onto my site for JUST the forums? Let me know, thank you!

features like vbull

Published on August 13th, 2015 by smfaizan200

I own a Small Website ( gizgoo.com ) – And I want to start a Forum at forum.gizgoo.com

I Tried Buddypress and it was working well but it do not have the features that my Previous Forum Script Used to Have (vbulliten).

I request you to make the layout like them as that is alot more decent!

No Admin Sections Available

Published on August 13th, 2015 by tash-paul

Hi there, I am having a slightly strange issue in that I have just installed:

WordPress 4.2.4
BuddyPress 2.3.2.1
bbPress 2.5.8

Everything appears to be fine except for the little fact that I have no bbPress admin sections in the dashboard.

Any help would be most appreciated.

bbPress Shortcode

Published on August 13th, 2015 by Acs-Yt

Hi,

I was not able to find a shortcode like [bbPress_forum] to add a forum on a page. Is there a code available?

Get next and previous page in wp_header

Published on August 12th, 2015 by Martin Babinec

I’d like to add <link rel="prev" href=".." /> and <link rel="next" href=".." /> tags into <head> of bbpress forum page. So I need to get links for the next and previous pages of my forum. It has to be outputed in wp_head action but in that time the bbPress class is not initialized yet, so I cannot get any information from that. Can you help me?

Add “Agree to Terms” in Reply & Topic Creation Forms

Published on August 12th, 2015 by rebecca-paisley

I’m trying to add an additional checkbox under the “notify of follow-up emails” that will simply say “I agree to the terms and conditions” and needs to be required. I already have bbpress templates folder copied into my child theme.

The document I think I should be adding this to is: bbp-reply-form.php

I guess I just can’t figure out if I should create a new function within bbpress or my theme and how exactly I would go about this for this type of request.

Any help is appreciated.

Thank you.

Skip to toolbar