View Full Version : Unable to log in after switching integration and upgrading
January 28th, 2008, 10:11 AM
I am having a problem logging into my new upgraded pp6 installation. I upgraded from 5.22 and changed the integration from PHPBB 2.0.22 to IPB 2.3. Any attempts to login as an admin user fails. It will accept my login, but when I am redirected to the index page, it doesn't show any user info or admin links.
I have verified that the cookie settings are correct and are being received by the browser. As a matter of fact if log in from the gallery, my user info shows up on the message board. I also ensured that the correct data in the usergroups table.
When enable the debug code, I see the following:
(1 : : : ce41f1b03fbf510c49d1acc1********) 9999 - TempAdmin - email@example.com - - - (6) - -5 - - 0 - 3cce60a85c4f279860aac8bf******** - Wf%bb
And when I am redirected to the index page, the following is displayed:
(0 : : : ) - - - - - (2) - - - 7 - -
Thanks in advance for your assistance.
January 28th, 2008, 10:48 AM
Have you properly integrated with Invisionboard 2. I think this is your issue here. My suggestion is this. Clear the pp_usergroups table of any entries. Run the install file and properly install to integrate with invisionboard so you know it is properly integrated with invisionboard. You can then run the little tool script in the photopost imports forum I call userfix because if you switch integrations your userid's for users will be different if you imported them as most forum importers change the userid's. This will make sure your userid's are correct and you dont end up with photos belonging to other users.
That script will work with any forum all it does it query the user info from the forum based on the users username and grab the right new userid and update users photos and comments.
January 28th, 2008, 10:51 AM
If I run the installer, will it drop my existing PP data? I'm assuming that you are taking about install.php correct?
January 28th, 2008, 11:16 AM
No it will not drop tables that exist. It only creates a table if it does not exist. It will however update settings that might be incorrect. Thats why I had you empty out your usergroups table so the install script and insert the right usergroups for invisionboard in there on install. :)
January 28th, 2008, 12:06 PM
Unfortunately I'm still having the same problem. I think I may know the cause however. My message board and gallery are on two separate subdomains. My guess is that PP is not reading the cookie properly. It somehow thinks that the cookie is out of it's scope.
cookie: / .lifetimemoments.com
Any thoughts on how to proceed?
January 28th, 2008, 12:59 PM
I figured out what was wrong. :) The code in ib2.php is not complete. It doesn't concatenate the cookie prefix to the cookie name when extracting the data from the cookie array in authenticate(). So if you specify a cookie prefix, it will never be read.
So who do I send a bill to for my services? ;)
I think there may be some other issues but I need to do a little more testing before I post them.
January 28th, 2008, 01:42 PM
$session_id = $_COOKIE["session_id"];
$pass_hash = $_COOKIE["pass_hash"];
$member_id = $_COOKIE["member_id"];
change to this
$cookuser = $Globals['cookieprefix']."member_id";
$cookhash = $Globals['cookieprefix']."session_id";
$cookpass = $Globals['cookieprefix']."pass_hash";
$session_id = $_COOKIE["$cookhash"];
$pass_hash = $_COOKIE["$cookpass"];
$member_id = $_COOKIE["$cookuser"];
January 28th, 2008, 01:51 PM
I already added the code. :)
January 28th, 2008, 02:49 PM
Okay have a good one then.
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.