Login button link bad Login button link bad
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Login button link bad

Started by ZeRoRaVeN, September 12, 2005, 01:51:01 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ZeRoRaVeN

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...

Nibbler

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

ZeRoRaVeN

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...

kegobeer

Test user and password, please.
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

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.
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

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

kegobeer

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.
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

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

kegobeer

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

$target = 'index.php?&act=Login&CODE=00';

and change to

$target = 'index.php?act=Login&CODE=00';

I don't know if that will fix the referer problem, but it needs to be corrected.
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

While you're in there, change

$target = 'index.php?&act=Login&CODE=03';

to

$target = 'index.php?act=Login&CODE=03';

and

$target = 'index.php?&act=Reg&CODE=00';

to

$target = 'index.php?act=Reg&CODE=00';

Basically, change ?&act to ?act wherever you find it.
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

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...

kegobeer

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

You should have this:

// 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);
}
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

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?

kegobeer

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.
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

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...

ZeRoRaVeN

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...

kegobeer

Without seeing exactly how your bbs handles the redirect, I can't give you any more help.  Maybe Nibbler can offer some advice.
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

*bump* is there no solution?

thanks

Joachim Müller