Search Results for 'code'
-
Search Results
-
I’m no sysadmin, so understanding what is happening is a bit beyond me right now.
Here’s what I was doing to cause the 403 error:
1. I wanted to test to see what bbpress does with a really long forum post title, so I tried the following:
Let’s create a really crazy long title name to see if the table properly removes any extra text from the title or not
The body of the post says:
Well I hope that title above was long enough, I can’t imagine any forum titles being longer than this one.
When I click submit, I get a 403error below:
[Fri May 27 20:21:10 2011] [error] [client 76.121.8.129] mod_security: Access denied with code 403. Pattern match ":space:+(select|grant|delete|insert|drop|alter|replace|truncate|update|create|rename|describe):space:+[A-Z|a-z|0-9|\\*| |\\,]+:space:+(from|into|table|database|index|view):space:+[A-Z|a-z|0-9|\\*| |\\,]" at POST_PAYLOAD [severity "EMERGENCY"] [hostname "mysite.com"] [uri "/forum/prayer-requests/healing/"] [unique_id "TeA-9kUuJUQAABVAGuk"]I am unsure of how to interpret the error, and what steps I need to take in order to resolve the problem. Hope this error helps identify something.
Hi,
I dont know what happen, currently I found my bbpress (1.0.3) admin could not open the user admin page with error “You are not allowed to do this here”.
Currently my bbpress template was integrated with wordpress they installed separately.
You can look the page here: http://teknoinfo.web.id/forum
previously it works fine, after i do some changes regarding bug in the count bbpress from here http://bbpress.org/forums/topic/problems-on-recount-tools-after-upgrade-102-to-103, not sure its related or not.
From the error_log i found:
[28-Apr-2011 02:36:13] ERROR: bbPress database error – “Table ‘latqueir_teknoforum.bb_privatemessages’ doesn’t exist” for query “SELECT * FROM
bb_privatemessages” via caller “bb_activate_plugin, include, bbPM->bbPM, bbPM->update”[28-Apr-2011 10:33:17] ERROR: bbPress database error – “Table ‘lat_teknoforum.tekno_users’ doesn’t exist” for query “SELECT * FROM
wp_usersWHEREuser_loginin (‘raffaell’);” via caller “require_once, require_once, require_once, bb_current_user, bb_get_current_user, WP_Auth->get_current_user, WP_Auth->validate_auth_cookie, WP_Users->get_user”[03-May-2011 06:24:52] PHP Fatal error: Call to a member function get_terms() on a non-object in /home7/latqueir/public_html/teknoinfo/forum/bb-admin/includes/functions.bb-recount.php on line 167
Is there anyone experience this ?
I don’t want to hijack the thread where JJJ and I were talking about the template locations filling up my theme root, so here is a new post.
I was playing around with an idea, and before I go to far with it, I was curious what you think.
You had mentioned that this type of system was expressly forbidden by wp, due to having to search all folders for files before proceeding. That would be a nightmare, but here I am defining the folders up front, so it ‘should’ be just as fast, though I am unsure of how to bench test it.
If we could get a system in place like this, then it would clean up the theme area considerably.
I am using the same logic on a number of client sites and it works perfectly, though they are not using bbpress or buddypress. I simply use it for my own custom post-types.
example:
public function template_include( $template ) {
if ( get_query_var('post_type') == $this->post_type ) {
if ( is_single() ) {
if ( $single = locate_template( array( $this->post_type.'/single.php') ) )
return $single;
}
if ( is_paged() ) {
if ($paged = locate_template( array( $this->post_type.'/archive.php') ) )
return $paged;
}
else { // loop
return locate_template( array(
$this->post_type . '/index.php',
$this->post_type . '.php',
'index.php'
));
}
}
return $template;
}This would completely change the structure of bbpress template names, but could potentially allow me to store everything inside 3 folders ‘forums/topics/replies’.
I’m sure there would be much more to it than that….
What do you think of this type of approach?
*right now it is quite generic and would effect all custom post_types, which would not be good. Changing to be bbpress specific would prob just be a matter of defining types in the array vs. all
I’m really asking because even though I know I could get this to work, I am quite curious how this would end up effecting buddypress when combined with bbpress.
Would a system like this be a deal breaker?
Good idea or bad?
