Solved

phpbb2 simple mod rewrite problem with session

Posted on 2011-09-11
8
572 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

932 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

15 Experts available now in Live!

Get 1:1 Help Now