Primehalo Trash Bin

Support for the phpBB3 SEO mods released in the phpBB3 SEO Toolikt forum.

Moderator: Moderators

Primehalo Trash Bin

Postby Asira » Tue Sep 15, 2009 2:26 pm

I am facing problems with primehalo trash bin mod :( anyone has this mod running together with seo?

When deleting a topic all is fine and it is put in a specified forum (trashbin). But when i try to recover from trashbin or delete forever it says you don't have permission and it gives me 403 error.
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Advertisement

Re: Primehalo Trash Bin

Postby iwanttobelieve » Tue Sep 15, 2009 5:23 pm

Are you using the latest version of Prime Trash Bin? Are you using Zero Duplicate mod? I have both running just fine :)
iwanttobelieve
PR1
PR1
 
Posts: 123
Joined: Sun Jun 14, 2009 5:37 am
Location: Somewhere I don't belong lol

Re: Primehalo Trash Bin

Postby Asira » Tue Sep 15, 2009 9:51 pm

Yes. Try deleting a message, which will be put in a trash bin forum and than try putting the message back? Does this work? :?
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: Primehalo Trash Bin

Postby Asira » Tue Sep 15, 2009 11:38 pm

What settings do you use for zero dupe or seo mod?
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: Primehalo Trash Bin

Postby iwanttobelieve » Wed Sep 16, 2009 4:16 am

Yes it works perfectly.

Here's my ZERO settings:

Strict mode: no
Post Redirection: Guest

Here's my SEO settings:

URL rewriting type: Advanced
Virtual Folder: Yes
Virtual Root: Yes
Forum URL caching: Yes

I have to admin that dcz had given me a hard time understanding the option :lol:
iwanttobelieve
PR1
PR1
 
Posts: 123
Joined: Sun Jun 14, 2009 5:37 am
Location: Somewhere I don't belong lol

Re: Primehalo Trash Bin

Postby Asira » Wed Sep 16, 2009 10:15 am

On localhost it works fine indeed.

But on live it adds forum_uri= at the end. How can i remove that?
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: Primehalo Trash Bin

Postby Asira » Wed Sep 16, 2009 10:37 am

Ok now it works :D but only one last thing i need to fix

I still get a 403 when posting.php is in the url like /posting.php?mode=delete&f=53&t=118&p=545&

It says no permission.
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: Primehalo Trash Bin

Postby Asira » Wed Sep 16, 2009 11:15 am

Nope sorry i see the problem again. It's like this:

If i click directly on a post title (last topic title) in forumlist it works partly (without adding forum=uri at the end).

If i first click on forum title and then in the list i click on topic name it adds forum=uri at the end and it gives 403 error.

I'm going crazy over here :(

Weird thing is ALL works fine on localhost.
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: Primehalo Trash Bin

Postby iwanttobelieve » Wed Sep 16, 2009 1:31 pm

Normally, posting.php won't get rewritten (according to my knowledge). So the fact that you include a forum=uri in a delete URL will cause a 403 is true. It should be posting.php?mode=delete&f={Forum_Id}&{Other var}.

If i click directly on a post title (last topic title) in forumlist it works partly (without adding forum=uri at the end).

If i first click on forum title and then in the list i click on topic name it adds forum=uri at the end and it gives 403 error.

Actually I can't understand this part of your post. You mean:

For example, I have a topic :http://domain/club-events-f17/discuss-everything-about-ec-recruitment-2009-2010-t587-10.htmldiscuss-everything-about-ec-recruitment-2009-2010-t587-10.html

1. The last post is -http://domain/club-events-f17/discuss-everything-about-ec-recruitment-2009-2010-t587-10.html#p6172 => this works if you press delete a post?

2. You navigate to -http://domain/club-events-f17/

and then -http://domain/club-events-f17/discuss-everything-about-ec-recruitment-2009-2010-t587-10.html => press delete and 403?

A link to your forum with an account with deleting permission might help though :wink:

Btw, do you let users delete posts? Or only admins and mods?
iwanttobelieve
PR1
PR1
 
Posts: 123
Joined: Sun Jun 14, 2009 5:37 am
Location: Somewhere I don't belong lol

Re: Primehalo Trash Bin

Postby Asira » Wed Sep 16, 2009 2:19 pm

Only admins and mods. I don't have a lot users right now. Just a new forum.

I made a test account and test forum at the top. You can play with it and hopefully see the same errors i get.

Username: tester
pass: test123
my board: http://www.asira.nl
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: Primehalo Trash Bin

Postby iwanttobelieve » Wed Sep 16, 2009 5:04 pm

I will see if I can do anything about this :wink: Please try turning off Zero Duplicate mod and see if that works or not.

Btw, do you define any command in the .htaccess? (your commands rather than the ones provided by phpbb-seo)
iwanttobelieve
PR1
PR1
 
Posts: 123
Joined: Sun Jun 14, 2009 5:37 am
Location: Somewhere I don't belong lol

Re: Primehalo Trash Bin

Postby Asira » Wed Sep 16, 2009 6:31 pm

Zero Dupe off still the same i think. I just turn it off in acp right? Same problem.

Here's my htaccess:

Code: Select all
# Lines That should already be in your .htacess
<Files "config.php">
   Order Allow,Deny
   Deny from All
</Files>
<Files "common.php">
   Order Allow,Deny
   Deny from All
</Files>

# You may need to un-comment the following lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# REWRITE BASE
RewriteBase /
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^localhost$ [NC]
# RewriteRule ^(.*)$ http://localhost/$1 [QSA,L,R=301]

# DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
#####################################################
# PHPBB SEO REWRITE RULES ALL MODES
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
#################################
# FORUMS PAGES
###############
# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. "forum" REQUIRES TO BE SET AS FORUM INDEX
# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
# FORUM ALL MODES
RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$2&start=$4 [QSA,L,NC]
# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
# GLOBAL ANNOUNCES WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^announces/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$2&start=$4 [QSA,L,NC]
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
# PHPBB FILES ALL MODES
RewriteRule ^resources/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /download/file.php?id=$2&t=$1 [QSA,L,NC]
# PROFILES THROUGH USERNAME
RewriteRule ^member/([^/]+)/?$ /memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
# USER MESSAGES THROUGH USERNAME
RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
# GROUPS ALL MODES
RewriteRule ^(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
# POST
RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
# ACTIVE TOPICS
RewriteRule ^active-topics(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
# UNANSWERED TOPICS
RewriteRule ^unanswered(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
# NEW POSTS
RewriteRule ^newposts(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
# THE TEAM
RewriteRule ^the-team\.html$ /memberlist.php?mode=leaders [QSA,L,NC]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES

# FORUM WITHOUT ID & DELIM ALL MODES (SAME DELIM)
# THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
# END PHPBB PAGES
#####################################################



Thanks for the help i really appreciate it.
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: Primehalo Trash Bin

Postby iwanttobelieve » Thu Sep 17, 2009 4:21 am

That's your localhost's htaccess? And you said that in local it works? The problem only shows up if you have a http:// in the &redirect GET variable. &redirect=www.domain.com works though. And it only fails with posting.php as we had discussed. How about uncommenting the following lines:

# Options +FollowSymlinks
# Options -MultiViews

You can check the error log on your local and live server and compare them to see what the "permanently delete" URL request, my wild guess is it somehow requests for a folder that dose not have a read permission on your server. Anyway, this problem is really strange, I would go crazy if I were you :lol:
iwanttobelieve
PR1
PR1
 
Posts: 123
Joined: Sun Jun 14, 2009 5:37 am
Location: Somewhere I don't belong lol

Re: Primehalo Trash Bin

Postby Asira » Thu Sep 17, 2009 2:46 pm

I AM going crazy :D

That htaccess is from live server and uncommenting options makes no difference.

This is my error log message from live server:
Code: Select all
[Thu Sep 17 16:43:20 2009] [error] [client 85.144.25.68] mod_security: Access denied with code 403. Pattern match "/posting\\\\.php\\\\?.*(<[[:space:]]*script|(http|https|ftp)\\\\:/)" at REQUEST_URI [severity "EMERGENCY"] [hostname "www.asira.nl"] [uri "/posting.php?mode=delete&f=58&t=206&p=556&redirect=http%3A%2F%2Fwww.asira.nl%2Fpost557.html"]


I don't understand what i am doing wrong. Good God i'm gonna crash my notebook :D
User avatar
Asira
 
Posts: 39
Joined: Sat Aug 15, 2009 2:04 pm

Re: Primehalo Trash Bin

Postby iwanttobelieve » Thu Sep 17, 2009 4:11 pm

There, the problem shows its face :D

You got mod_security on, and if it matches "posting.php" with "http" you go 403.

Since I don't have much knowledge on mod_security, I can only suggest that you read this post:

http://www.phpbb.com/community/viewtopi ... 5&start=15

Good luck!
iwanttobelieve
PR1
PR1
 
Posts: 123
Joined: Sun Jun 14, 2009 5:37 am
Location: Somewhere I don't belong lol

Next

Return to phpBB SEO MODS

Who is online

Users browsing this forum: Google Adsense [Bot] and 3 guests