Solved

phpbb2 simple mod rewrite problem with session

Posted on 2011-09-11
8
571 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
  • 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
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Read about why website design really matters in today's demanding market.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now