Ok, I've made some headway on this issue. The installation instructions are lacking some CLEAR understanding. When upgrading *DO NOT* upload the new config-inc.php. The script file upgrade482.php needs to see your old config-inc.php file so it can strip out the settings and put them into the database.
I ran the upgrade with the NEW config-inc.php format and it wasn't able to populate the databse with the necessary information!!
Anyway, here's what I did to get my admin login to work:
1) Restore my old database.
2) Copy my OLD config-inc.php file to the photopost directory.
3) Run the upgrade482.php (make sure it's in the root photopost dir).
4) Rename my old config-inc.php file to config-inc.php.XXX
5) Modify the NEW config-inc.php to match my system.
6) Copy the NEW config-inc.php file to my photopost directory.
Agreed, the install instructions do say that you should NOTupload the new config-inc.php. I must have seen the new format of the file and used the new one instead of keeping my old one. I simply modified it and uploaded as if it were a new installation.
However, I must say that it is a good idea to put the newly formatted config-inc.php file on a system AFTER it has been completely upgraded.
I had the same problem upgrading from 4.7h and found that the "Forum Cookie Prefix" didn't get set, I believe this may be because I didn't edit the config-int.php, but that's only a guess. It's a new file and easily overlooked. I fixed by editing the 'settings' table 'Forum Cookie Prefix' field and setting to 'bb' for vBulletin using phpmyadmin.
Last edited by wajones; December 19th, 2004 at 02:04 AM.
Reason: Clarifing why I messed up.
I think your confusing steps. There is no code modifications needed. you just need to take care of each issue one at a time.
If you upgrade your VB naturally you then UPDATE Photopost to use VB3 not VB2 and then when correctly able to login you then UPGRADE THE SOFTWARE TO THE NEW 4.8.5 VERSION
You were trying to do two things at once and confused yourself on what steps come where and then think there is a problem when there is not.
The cookie variables are no longer stored in the config file but in the database. and no matter what if you switch integration types of course you would need to switch the type in mysql if you cant login.
This exact thing happened to me each time I tried to upgrade....and in each case, running upgrade482.php gave 'cannot connect to the photopost database' ...the $link values were not getting pulled from anywhere.
After dropping every table and starting a fresh install, the old prefix appeared in the config display.
Other things also had to be re-entered/changed after installation.
Are you overwriting your old config before an upgrade? Because the upgrade instructions are explicite not to do this.
On a new installation you input your cookie settings etc and VB license number etc upon install.
I have done an upgrade and an install and in both cases everything is fine.
The only issues reported and solved is alot of users where overwriting there config files on upgrade which is a no-no.
Upon an upgrade you would do two things.
First go to admin options and input the proper cookie variables under cookie settings.
Second go to config options and save that to make the config save as a new one.
On an install all values are entered by what you place them to be when installing. If you set VB3 integration to yes then we bypass the photopost cookie settings and use your Vb cookie settings so there the automatic login is full proof IMO.
If you are deviating from the normal upgrade instructions that is where you could have had issues or on a new install not entering the proper cookie stuff then I can see you having an issue with cookies.
Even more so if you are using the VB3 enhancements and we are using your vb3 cookie settings I fail to see how there could be an error at all.
On an install all values are entered by what you place them to be when installing.
No they are not. The following is from the fresh install I did yesterday:
At no point during install did I tell the script that my admin address was email@example.com, I entered the correct one. After install, it said firstname.lastname@example.org in 2 places.
Also, at no point during install did I specify that it should use the old (deleted) database prefix. After install, in the bit that says (MUST NOT BE CHANGED AFTER INSTALL), it had pp23_, which was not entered during install and was in fact no longer in the database.
Now, my host has the TurckMM cache thing turned on. Could *this* be affecting things?
I cannot log into the admin area, either. I did a new install of 4.8.5 and have vb3 integration turned on. Each time I try and login to the admin area, I am challenged with the login screen and upon successful login taken back to the user index. The integration appears to be working as the auto login between forums and photopost is working, but admin area is unavailable.