1 (edited by JMelhuish 2007-02-25 16:08)

Topic: Upgrade from 1.2.6 to 1.2.14 still shows version 1.2.6 in Admin

PunBB Upgrade 1.2.6 to 1.2.14

I followed the instructions (correctly?) and got a message from the update script that the update was successful.  However when going back to the forum, under administration, the version still said 1.2.6.

So I removed all the updated files from the forum directory, replaced them with the backup 1.2.6 files, then copied over the new 1.2.14 files and the update script and tried running the script in the browser again. Now I got an error message:


File: /forum/12_to_1214_update.php
Line: 69

PunBB reported: Version mismatch. This script updates version 1.2, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 1.2.8, 1.2.9, 1.2.10, 1.2.11, 1.2.12, 1.2.13 to version 1.2.14. The database 'frpbb12' doesn't seem to be running a supported version.

I went into mysql and looked at the values for conf_value inside the table _config and I see the value 1.2.14 right before the forum name. So I go back to the forum and it is up and running but (still) says PunBB 1.2.6.

What's up here? I did backup the mysql punbb database successfully. Should I have put the forum into maintenance mode?  Should I have stopped mysql somehow?  Am I really running 1.2.14? 

Any ideas?  Thanks.

James

James Melhuish

Re: Upgrade from 1.2.6 to 1.2.14 still shows version 1.2.6 in Admin

Yes, I think you're running 1.2.14, but you're still using the 1.2.6 cache files. Try empty the cache/ folder.

Re: Upgrade from 1.2.6 to 1.2.14 still shows version 1.2.6 in Admin

So how do I empty the cache?  I did remove all files (after backing them up) but then PunBB could not "write to the configuration file. Make sure PHP has access to the directory" or something like that.

I then tried removing all PHP files and leaving the index.html file in /cache, but that didn't work: same message.

Ideas?  Thanks.

James

James Melhuish

Re: Upgrade from 1.2.6 to 1.2.14 still shows version 1.2.6 in Admin

chmod 0777 on the cache directory (in your ftp program).

After you visit the admin panel and hit "save options", you should be able to chmod to 0755 however I recommend 1777 if you ftp program/server supports it. The "1" or sticky bit basically lets punbb write and rewrite to it's own files, but only it's own files. Google it if your up for a read.

echo "deadram"; echo; fortune;

5 (edited by JMelhuish 2007-02-25 19:13)

Re: Upgrade from 1.2.6 to 1.2.14 still shows version 1.2.6 in Admin

OK, thanks all.  I had all files in the cache at the wrong permissions.  I have changed all the cache files (except .htaccess, should I change that?) to 1777, and the /cache directory also to 1777. That gives permissions for both /cache and all files of:

drwxrwxrwt

Is this correct?  The forum is saving the options now, and the Admin index shows the updated value of 1.2.14

Thanks!

James Melhuish

Re: Upgrade from 1.2.6 to 1.2.14 still shows version 1.2.6 in Admin

The directory to 1777, the files to 0755 with owner:group of the www user. .htaccess and index.html should be 0644 with owner:group of your account.

so directory drwxrwxrwt joe:joe, files -rwxr-xr-x www-user:www-user, and .htacess, index.html -rw-r--r-- joe:joe

This meens that only joe can delete move or rename, etc all files in cache dir. Only the file owner can delete, append, overwrite files in the cache dir that it owns.

echo "deadram"; echo; fortune;