![]() |
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? |
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 |
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. |
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 |
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. |
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 |
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. |
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 |
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. |
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 |
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. |
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