PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds Installation & Upgrades (http://www.photopost.com/forum/classifieds-installation-upgrades/)
-   -   Problem with cookies after upgrade (http://www.photopost.com/forum/classifieds-installation-upgrades/128065-problem-cookies-after-upgrade.html)

h2ojunkie October 18th, 2006 02:58 PM

Problem with cookies after upgrade
 
I just upgraded to 2.5 and am having a problem with my cookies.

Running the integration with VB 3.6.2

when I view the classifieds, it keeps me logged into VB and classifieds just fine.

But when I go to view the admin section, it brings up a login form for the classified admin.

Then, I log into admin for the classifieds and in the process of logging me into the classified admin, it logs me out of vbulletin.

Any ideas what I might be missing or where to look?

Chuck S October 18th, 2006 03:33 PM

Yes your missing the vbulletin cookie prefix it would appear. You can view the settings table of classifieds in phpmyadmin and run this query or if your database is in the vb database use the vb sql manager

UPDATE cp_settings SET setting='bb' WHERE id=182

Make sure to replace with your proper classifieds prefix

h2ojunkie October 21st, 2006 09:00 PM

OK, I've manually checked cookies, cookie path and cookie domain.

All are set to match between VB and PPclassifieds and I'm at a loss

Here's the routine.

Go to VB, login with "remember me"

go to classifieds and it shows I'm logged in and shows me the admin link

click the admin link - it brings up the ppclassifieds login page

login to ppclassifieds and it redirects me back to the main index of the classifieds in VB where I'm not logged out of VB

log into VB for the 2nd time then click Admin link for classifieds

it takes me to admin no problem and works from then on


But, if i clear my cookies, i have to start the entire process all over again.

Chuck S October 22nd, 2006 08:59 AM

This can only be one of two things. Your cookie prefix is not correctly entered as I noted above and second check your config-inc.php file and make sure the $vblicense line is your correct vb license not customer number

h2ojunkie October 29th, 2006 06:25 PM

I've checked again, cookie prefix, cookie path, cookie domain all identical between vb 3.6.1 and PP 2.5 settings.

And license info is correct as well. I'm at a loss here.

it's almost like when I click the admin link for classifieds, it's wiping out the login info for VB from the cookie and replacing it with the classified info.

Chuck S October 29th, 2006 07:43 PM

You can post a url and regular test user account here so we can see how you set your cookies but it is as I stated cookies need to be exact and the license number must be correct otherwise your not gonna get into admin

h2ojunkie October 31st, 2006 10:54 PM

http://www.thumpertalk.com/classifieds/index.php

useraccount: test
password: test


And if after you review and see the cookies are correct. Let me know if you need it and I can PM you a test admin account to check as well.

Chuck S November 1st, 2006 09:25 AM

Are you sure your cookies in classifieds are set like this

UPDATE cp_settings SET setting='/' WHERE id=181
UPDATE cp_settings SET setting='bb' WHERE id=182
UPDATE cp_settings SET setting='.thumpertalk.com' WHERE id=183

Double check your license number is entered correctly in config-inc.php. You should if set like this you can get to admin

h2ojunkie November 1st, 2006 09:55 PM

Taken directly from phpmyadmin for classified settings table
ID 181 Setting /
ID 182 Setting bb
ID 183 Setting .thumpertalk.com

Taken from vb 3.6.1 config.php and phpmyadmin vb setting table
cookiepath /
cookiedomain .thumpertalk.com
$config['Misc']['cookieprefix'] = 'bb';

License # not listed for obvious reasons, but it is correct.


Like I said above, I can get into Admin. It just makes me log in using the PP classifieds login screen, and when I do log in to classified admin, I get logged out of VB in the process.

Chuck S November 2nd, 2006 10:02 AM

That tells me your license is not correct

The vbulletin password cookie which is the thing that changes when you log into classifieds is 3 things. It is the password cookie prefix and the vbulletin license number

h2ojunkie November 2nd, 2006 12:39 PM

Ok,

So I went digging again.

My license # on VB.com matches the one I have in config-inc.php.

It appears I found the problem. It looks like one of our developers uploaded "some" vb files with the wrong license number on them.

So now the quest to re-edit the files and re-upload vb to make sure all files are correct. Cause i have no clue where (or if) you can manually change the license number of a vb install.

Chuck S November 2nd, 2006 03:34 PM

That would indeed cause problems if you dont have your files on your server but someone elses ;)


All times are GMT -5. The time now is 01:59 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97