Topic: Question applyng punbb-1.2.15 patch

Attempting to patch my punbb-1.2.14 installation with the 1.2.15 patch I got some issue

localhost:/var/www# patch -ul -d /var/www/ -p2 < /home/jack/punbb-1.2.14_to_1.2.15.patch 
patching file admin_categories.php
patching file admin_forums.php
patching file admin_loader.php
patching file admin_maintenance.php
patching file admin_options.php
patching file admin_prune.php
patching file admin_ranks.php
patching file admin_users.php
patching file extern.php
patching file footer.php
patching file header.php
patching file include/common.php
patching file include/dblayer/mysql.php
patching file include/dblayer/mysqli.php
patching file include/dblayer/pgsql.php
patching file include/dblayer/sqlite.php
patching file include/email.php
patching file include/functions.php
Hunk #5 succeeded at 784 (offset 2 lines).
Hunk #6 succeeded at 837 (offset 2 lines).
Hunk #7 succeeded at 863 (offset 2 lines).
Hunk #8 succeeded at 930 (offset 2 lines).
Hunk #9 succeeded at 957 (offset 2 lines).
Hunk #10 succeeded at 1068 (offset 2 lines).
patching file include/template/admin.tpl
patching file include/template/help.tpl
patching file include/template/main.tpl
patching file include/template/maintenance.tpl
patching file include/template/redirect.tpl
can't find file to patch at input line 509
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -urN punbb-1.2.14/upload/install.php punbb-1.2.15/upload/install.php
|--- punbb-1.2.14/upload/install.php    Sun Oct 15 18:40:20 2006
|+++ punbb-1.2.15/upload/install.php    Wed Apr 11 13:39:52 2007
--------------------------
File to patch: 
Skip this patch? [y] y
Skipping patch.
2 out of 2 hunks ignored
patching file misc.php
patching file moderate.php
patching file post.php
patching file profile.php
Hunk #2 succeeded at 753 (offset 1 line).
Hunk #3 succeeded at 764 (offset 1 line).
patching file register.php
patching file search.php
patching file style/imports/base.css
Hunk #1 FAILED at 175.
1 out of 1 hunk FAILED -- saving rejects to file style/imports/base.css.rej
patching file userlist.php
localhost:/var/www#

There's no upload directory under /var/www/ 
Can anyone help?

Copyright it's a  died culture. Be alive with the copyleft attitude

Re: Question applyng punbb-1.2.15 patch

You're talking about install.php? Don't worry about it if you deleted it (which you should have). The path you're seeing there is not the path it was trying to patch smile

Re: Question applyng punbb-1.2.15 patch

That's ok, thanks. Infact I removed install.php

However punbb admin section always display 1.2.14 v. If I check for upgrades it reports the new vers. available.
Can I be sure I'm using the 1.2.15 ?

Copyright it's a  died culture. Be alive with the copyleft attitude

Re: Question applyng punbb-1.2.15 patch

I'll quote the patch instructions

Please note that after patching the scripts, you will still need to run the
appropriate update scripts that are located in the scripts folder of every
release.

The patchfile can't update the database. You can use the Version Changer (which will allow you to edit the version number but won't apply any database updates) or use the update script (which will do everything for you). smile

Re: Question applyng punbb-1.2.15 patch

Thanks a lot, I skipped that reading the instructions..  sad

Copyright it's a  died culture. Be alive with the copyleft attitude

Re: Question applyng punbb-1.2.15 patch

I started running the punbb-1.2.14_to_1.2.15.patch  as I described in the first post of this topic.
Then I successful run 12_to_1215update.php (taken from 1.2.15 tar installation)  to update the database. Done ok.
I now used the Version Changer Admin PLugin to change the version to 1.2.15

Should be all right ? Other to do ? Many thanks.

Copyright it's a  died culture. Be alive with the copyleft attitude

Re: Question applyng punbb-1.2.15 patch

Well, you shouldn't have needed to use the admin plugin, but otherwise yeah smile