?
Solved

phpbb2 simple mod rewrite problem with session

Posted on 2011-09-11
8
Medium Priority
?
586 Views
Last Modified: 2013-11-11
Hi everybody,

I am not a big programmer and I tried now since days to figure some way out to solve my problem but I cant get it done alone and need some pro help. I searched also already but did not find the write answer. I hope somebody here can help me out.

I installed like two weeks ago the Simple mod rewrite (from http://www.phpbb-seo.com) on old phpbb2 forum. Everything seems to work fine and I was happy that everything worked. How ever after some time some users reported strange problems if the use the permanent login option. The problem happens if a user uses a login with the auto login feature. First everything works and he users is logged in normal but if he close the browser and come back later the site forwards the user to a 404 error page.

The system rewrites he url to: http://www.xxxxxxxxxx.com/phpbb/http://www.xxxxxxxxxxxxxx.com/phpbb/?sid=95488697fd06d6e96f8da536999a ???

I tested around (as I said I am not a pro) and found in the session.php the function append_sid(). If I commend the following lines out:

	
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
        // global $phpbb_seo;
	// $url = $phpbb_seo->url_rewrite($url, $non_html_amp);
	// www.phpBB-SEO.com SEO TOOLKIT END

Open in new window


it works normal but of course now the urls in the forum (topics and forum names etc.) are not "re-written" and changed to the seo version.
How ever if I do this the session seems fine again and logins work normal. I have to say that NORMAL logins without the autologin work as well.

Additional some users complain that they cant open their private messages anymore with the same problem. the url gets also rewritten to the version above.

I am really lost here and need some help. I run a fairly big forum with 6 million messages and 2000+ users online at the same time every day. the current problems make me crazy and i appreciate any help I can get.

What cant this be? Why this is not working for me and what can I do?

Thank you in advance for your time and help,

Oliver
0
Comment
Question by:Oliver2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
8 Comments
 

Author Comment

by:Oliver2000
ID: 36521625
I tried to place this post inside the / php / phpBB subgroup but somehow the option is not available. I hope somebody who is fit with phpBB can help me out here.
0
 
LVL 13

Expert Comment

by:compfixer101
ID: 36524440
I HIGHLY suggest that you upgrade to phpBB3, 2 hasn;t been supported for 2 years. and is a security risk to the overall server, plus many mods for 2 are now integrated in 3

0
 

Author Comment

by:Oliver2000
ID: 36525887
Hi compfixer101,

No chance, we talk about a forum with 6-7 million posts, and usually 3-4.000 users nonstop online. The original phpbb2 is not really existing anymore and uncountable self coded changes, updates and modifications.

phpbb3 has no advantage for me except additional work as far as I can see. upgrade makes only sense for users who don't make any personal modifications because they stuck with the old phpbb2 but in my case I would need to rewrite most of phpbb3 to make my own things working again. the old forum is in the meanwhile not only a forum but entire community with facebook type wall etc. etc. there are no ready mods for me to get things similar again.

I would prefer to just solve a considerable small problem (the autologin session problem) instead of weeks off coding.
0
Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

 
LVL 13

Expert Comment

by:compfixer101
ID: 36527123
Ok I understand that.

I never personally dealt with any of the 2.x.x line, only the 3.x.x line of it.

I assume something from the mod isn;t done right, can I get what version of phpbb2 your running and the link to the mod download.
0
 

Accepted Solution

by:
Oliver2000 earned 0 total points
ID: 36545472
I solved it my self! I went back to first original session.php and made all changes again. now works. I guess over the years I had some modification which wasn't compatible.

0
 

Author Closing Comment

by:Oliver2000
ID: 36565502
I solved the problem myself.
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question