Solved

phpbb2 simple mod rewrite problem with session

Posted on 2011-09-11
8
582 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
Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

724 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