Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: Login button link bad  (Read 11995 times)

0 Members and 1 Guest are viewing this topic.

ZeRoRaVeN

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Login button link bad
« on: September 12, 2005, 01:51:01 am »

Alright I've done my homework, I've searched the forums, chances are with all the topics I'm sure I missed someting however, but I'm going to ask for help.

First I'm getting the fatal error thing, no this is not about that, I found the fix in some topic, followed the instructions, found that the problem is that I'm running IPB 2, and so after I replace the line of code everything works fine except one thing.

When I click login, it says getanimed.comhttp cannot be found. Now I know for a fact it is the bridge that is causing the trouble because when I turn ipb's line into comments in init.inc.php it works fine. And no that is not a mispelling, it comes out as getanimed.comhttp

My installation is located at http://www.getanimed.com/coppermine/
Debug doesn't seem to reveal much, as it seem it's the page the login page is linked too...yes my sql tables and user names are correct.

EDIT:mm I just noticed this is in the wrong forum...please move it...
« Last Edit: September 12, 2005, 02:19:15 am by ZeRoRaVeN »
Logged

Nibbler

  • Guest
Re: Login button link bad
« Reply #1 on: September 12, 2005, 10:51:37 am »

In the bridge file you are asked for the path to your forum. Please put in the path to your forum, not the url.
Logged

ZeRoRaVeN

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Login button link bad
« Reply #2 on: September 13, 2005, 03:07:29 am »

hmm I read an article on that earlier...and I tried it and it didn't work..it works now...strange..kind of

first it does work, but after you login it stays on the ipb board page, and you have to revisit the copermine page, and second on firefox it doesn't work at all(I used IE in the other one)you can login onto the forums via the coppermine thing, and then it seems normal, but when you go back to coppermine it hasn't logged yourself in....its not my cookies...I've checked...
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Login button link bad
« Reply #3 on: September 13, 2005, 03:21:47 am »

Test user and password, please.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ZeRoRaVeN

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Login button link bad
« Reply #4 on: September 13, 2005, 04:02:30 am »

Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Login button link bad
« Reply #5 on: September 13, 2005, 04:06:07 am »

The referer doesn't work, but I"m logged in perfectly in your forum and your gallery.  You should delete your cookies and try again.  Also, remember that http://www.yoursite.com is not the same as http://yoursite.com when dealing with cookies.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ZeRoRaVeN

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Login button link bad
« Reply #6 on: September 13, 2005, 04:08:47 am »

So what should I edit? I didn't touch ipb's cookies so I left the cookie settings in the file alone...
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Login button link bad
« Reply #7 on: September 13, 2005, 04:12:40 am »

Delete the cookies from your browser cache, log into your forum, then go to your gallery and see if you are logged in.  Once that works, then worry about the referer.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ZeRoRaVeN

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Login button link bad
« Reply #8 on: September 13, 2005, 04:48:35 am »

Turns out you were right...thanks! I had to clear the cookies...now how do I fix the referer?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Login button link bad
« Reply #9 on: September 13, 2005, 04:57:08 am »

Looks like the redirect url isn't correct.  Open up the invisionboard.inc.php, look for

Code: [Select]
$target = 'index.php?&act=Login&CODE=00';
and change to

Code: [Select]
$target = 'index.php?act=Login&CODE=00';
I don't know if that will fix the referer problem, but it needs to be corrected.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Login button link bad
« Reply #10 on: September 13, 2005, 04:58:52 am »

While you're in there, change

Code: [Select]
$target = 'index.php?&act=Login&CODE=03';
to

Code: [Select]
$target = 'index.php?act=Login&CODE=03';
and

Code: [Select]
$target = 'index.php?&act=Reg&CODE=00';
to

Code: [Select]
$target = 'index.php?act=Reg&CODE=00';
Basically, change ?&act to ?act wherever you find it.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ZeRoRaVeN

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Login button link bad
« Reply #11 on: September 13, 2005, 05:00:32 am »

The first one made the page turn give an error..

Parse error: parse error, unexpected T_STRING in /home/zerorave/public_html/getanimed-com/coppermine/bridge/invisionboard.inc.php on line 28

EDIT: so did the other edits...
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Login button link bad
« Reply #12 on: September 13, 2005, 05:03:05 am »

What exactly did you change?  Removing & should not cause an error almost 200 lines above it.

You should have this:

Code: [Select]
// Register
function udb_register_page()
{
    $target = 'index.php?act=Reg&CODE=00';
    udb_redirect($target);
}
// Login
function udb_login_page()
{
    $target = 'index.php?act=Login&CODE=00';
    udb_redirect($target);
}
// Logout
function udb_logout_page()
{
    $target = 'index.php?act=Login&CODE=03';
    udb_redirect($target);
}
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ZeRoRaVeN

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Login button link bad
« Reply #13 on: September 13, 2005, 11:14:19 pm »

Hmm I think I had some bad php code...so what I did was I reuploaded the file to start all over..the problem was that the saved file was before I made the fatal error fix...I know it involves replacing a piece of php code..the forum url is a path..but now I need to refix the fatal error thing...how do I fix it?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Login button link bad
« Reply #14 on: September 13, 2005, 11:24:22 pm »

Download a new copy of Coppermine from our site, extract the invision bridge file, apply my changes and any bridge specific changes you already applied, and upload it.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ZeRoRaVeN

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Login button link bad
« Reply #15 on: September 13, 2005, 11:26:33 pm »

The thing is that I can't find the fatal error fix anymore...just alot of topics that don't seem to answer what I'm looking for...
Logged

ZeRoRaVeN

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Login button link bad
« Reply #16 on: September 14, 2005, 03:42:34 am »

The fixes you posted (those two posts) were already in the file, I didn't need to change anything...I found the fix again..fixed it...so all that's left is the referrer...I don't know what the code you asked me to replace was but I guess that wasn't it...
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Login button link bad
« Reply #17 on: September 14, 2005, 12:20:34 pm »

Without seeing exactly how your bbs handles the redirect, I can't give you any more help.  Maybe Nibbler can offer some advice.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

ZeRoRaVeN

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Login button link bad
« Reply #18 on: September 20, 2005, 11:52:57 pm »

*bump* is there no solution?

thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Login button link bad
« Reply #19 on: September 20, 2005, 11:56:07 pm »

post the needed details!
Logged
Pages: [1] 2   Go Up
 

Page created in 0.022 seconds with 15 queries.