Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

phpbb2 simple mod rewrite problem with session

Posted on 2011-09-11
8
Medium Priority
?
588 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article discusses how to implement server side field validation and display customized error messages to the client.
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 receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

610 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