Coppermine and phpBB3 Bridging redirect Issue

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Get Involved
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
girlboheme
Registered User
Posts: 7
Joined: Tue Sep 14, 2010 11:24 am

Coppermine and phpBB3 Bridging redirect Issue

Post by girlboheme »

Support Request Template
What version of phpBB are you using? phpBB 3.0.8
What is your board's URL? http://www.littleblueumbrella.com/forum/
Who do you host your board with? hostgator
How did you install your board? I used a tool provided by my host
Is your board a fresh install or a conversion? Fresh Install
Do you have any MODs installed? No
Is registration required to reproduce this issue? Yes
What styles do you currently have installed? only what came with board
What language(s) is your board currently using? english
Which database type/version are you using? I Don't Know
What is your level of experience? New to PHP and phpBB
What username can be used to view this issue? test
What password can be used to view this issue? testing
When did your problem begin? immediately after bridging new installs of both coppermine and phpbb3.
Please describe your problem. When bridged, I click on logout (in the coppermine gallery) and the redirect to the forum gets a 404 error. I went to coppermine to ask for help and they told me that it was an issue with the ucp.php file in the forum software and I had to ask for help here.

So. Login to forum here:
http://www.littleblueumbrella.com/forum/

using test as login and testing as pass.

Then go here:
http://www.littleblueumbrella.com/gallery/

click on logout.

You will see this page:
http://www.littleblueumbrella.com/forum ... 9baaae5c51

The "A" in this part: mode=logout&redirect=http%3A%2F%2Flittleblueumbrella.com%2Fgallery%2F&sid=1377c89b9c9bc14249dee79baaae5c51

is causing an issue. And apparently it is part of the code from the ucp.php file. How can I fix this? I am not a coder.

I hope this makes sense!
Generated by SRT Generator ($Rev: 4778 $)

Thank you and I hope someone can help me!
Aimee
Last edited by girlboheme on Tue Apr 19, 2011 11:30 am, edited 1 time in total.
Pit$Bull
Former Team Member
Posts: 23099
Joined: Sat Dec 02, 2006 4:08 pm
Name: Can't Remember

Re: Coppermine and phpBB3 Bridging redirect Issue

Post by Pit$Bull »

Since you have used a host install for your board we won't be able to help as there are differences in the files.
If you would like to try using our files it may solve the issue (or may not).

*NOTE: Before proceeding backup all files and the database.*
  • Upload all new files from a download of the full version, EXCEPT for config.php, the /images and /files folders.
  • Go to yoursite.com/forumfolder/install/database_update.php
  • Let that run and then delete the install folder.
  • You now have a new up to date board containing all your users and posts but without any MODs that you might have had installed.
girlboheme
Registered User
Posts: 7
Joined: Tue Sep 14, 2010 11:24 am

Re: Coppermine and phpBB3 Bridging redirect Issue

Post by girlboheme »

Sorry, did not use a host install. My server host is host gator and I was confused. I installed my own board on my own domain using my own sql database.

ETA: Ignore that up there. Good Lord, I'm a dork. Okay, I know what you mean now. Will do as you say and get back to you.
User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: Coppermine and phpBB3 Bridging redirect Issue

Post by D¡cky »

You are not the only one that is having a problem with Hostgator and bridging, http://forum.coppermine-gallery.net/ind ... 122.0.html and the problem is not with
girlboheme wrote:The "A" in this part: mode=logout&redirect=http%3A%2F%2Flittleblueumbrella.com%2Fgallery%2F&sid=1377c89b9c9bc14249dee79baaae5c51 is causing an issue
That url is correct and should work. If you remove the part starting with little

Code: Select all

mode=logout&redirect=http%3A%2F%2F
it works.

I can only guess at this point, but it seems that the problem is with Hostgator, possibly with an .htaccess file blocking access to ucp.php from a different directory.

Do you have a .htaccess file in the webroot directory? If you do, would you post the contents here?
Have you hugged someone today?
girlboheme
Registered User
Posts: 7
Joined: Tue Sep 14, 2010 11:24 am

Re: Coppermine and phpBB3 Bridging redirect Issue

Post by girlboheme »

I saw his post over there and thought it could be a host gator issue. I looked everywhere and can't find an .htaccess file in the root. Could it be one in a different place?

Could it have something to do with the .htaccess file in the forum folder? Here is the code for that:

Code: Select all

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
And I've downloaded the latest version and updated all forum files and it still does the same thing.
User avatar
D¡cky
Former Team Member
Posts: 11812
Joined: Tue Jan 25, 2005 8:38 pm
Location: New Hampshire, USA
Name: Richard Foote
Contact:

Re: Coppermine and phpBB3 Bridging redirect Issue

Post by D¡cky »

There is no problem with the .htaccess file. The problem is that your host has mod_security in place and is blocking the url because there is a url being passed as a parameter. If you edit the url that is being passed as a parameter so that it is an invalid url, the page is able to be accessed. That is why removing the "A" makes the link work, because now an invalid url is being passed as a parameter. You could remove almost any other part of the redirect url and the link would work.

You should contact your host and verify that they do have mod_security in place and that it blocks a valid url being passed as a parameter. Show them the url that is giving a problem. If they do have mod_security in place, ask them to change it so that a valid url can be passed as a parameter. Most likely, they will be reluctant to change their mod_security so you will have a long uphill battle trying to get them to change their mod_security.

Some alternatives are
  1. Move to a different host. Most hosts do not have this type of blocking in place.
  2. Modify the bridge and remove the redirect url. This means that when anyone logs in or out from the Gallery, they will land on the Index page of the forum. This may be the best solution for you for right now. Logging out from the Gallery never brought you back to the Gallery anyway, so it wouldn't be much different from the standard install of the bridge.
  3. Modify the bridge and use a relative url as the redirect instead of the full url. This means hacking the bridge and modifying according to each particular board/gallery setup since there is no way to determine the relative url from the board to the gallery, but this wouldn't be much different from what the Coppermine bridge is doing now with the admin groups.
  4. Use a different bridge. There is a different bridge available which handles the redirect better, but I haven't looked at in a long time to see if the full url is passed.
Have you hugged someone today?
girlboheme
Registered User
Posts: 7
Joined: Tue Sep 14, 2010 11:24 am

Re: Coppermine and phpBB3 Bridging redirect Issue

Post by girlboheme »

Thank you! Very helpful. I can't move hosts because I just paid for six months with this one. Figures. But I'll work on modifying the bridge.
Locked

Return to “[3.0.x] Support Forum”