========================
MAKE A BACK UP OF YOUR GALLERYTRY TO PATCH FIRST TIME IN A TEMPORARY FOLDER========================
Step 0.All steps were made under FreeBSD.
You can read about patch here:
http://www.phpbb.com/support/documents.php?mode=install#upgradeSTABLE_patch========================
Step 1.How I make patch file?
I unpack
cpg1.4.14.zip and
cpg1.4.15.zip archives
to
cpg1414 and
cpg1415 folders.
Then before patching I remove dirs
- /cpg1414/lang/
- /cpg1415/lang/
- /cpg1414/docs/
- /cpg1415/docs/
and some other document files from root folder
- /cpg1415/CHANGELOG
- /cpg1415/COPYING
- /cpg1415/README.txt
as those files can be replaced wit a new one with out any harm and I don't recommend them to be patched.
========================
Step 2.Second I run in directory where cpg1414 and cpg1415 folders are:
diff -crbBN cpg1414 cpg1415 >cpg-1.4.14_to_1.4.15.patchand get file:
cpg-1.4.14_to_1.4.15.patch========================
IMPORTANT!Open file
cpg-1.4.14_to_1.4.15.patchAnd delete all lines:
\ No newline at end of file========================
Step 3.Then I made a copy of gallery folder which I was going to patch
cp -R coppermine coppermine-old-cpg1414P.S. If you keep "albums" folder inside "coppermine" folder, for example "/coppermine/albums/",
you can move "albums" folder to some SAVE place before making a copy of "coppermine" folder.
Or just make a copy of "/coppermine/" folder with out "/coppermine/albums/" folder as I do.
========================
Step 4.Also you must have these files in your coppermine directory.
- /coppermine/install.php
- /coppermine/update.php
- /coppermine/upgrade-1.0-to-1.2.php
I make so to avoid a lot of patch errors.
You can take them from cpg1.4.14.zip, as you need old one:
http://prdownloads.sourceforge.net/coppermine/cpg1.4.14.zip?download========================
Step 5.Put your patch file into:
/coppermine/cpg-1.4.14_to_1.4.15.patch========================
Step 6.Run in /coppermine/ folder
patch -cl -d ./ -p1 < ./cpg-1.4.14_to_1.4.15.patchYou will see all results on your screen.
So make your Scroll Buffer big enough.
It will be a lot of lines, better make it about 5000.
From 1.4.14 to 1.4.15 I have around 1526 lines.
========================
Step 7.Update your dirs
- /coppermine/lang/
- /coppermine/docs/
with necessary files.
For example I use only "english.php", "german.php", "russian.php" files/languages.
You can get them in cpg1.4.15.zip:
http://prdownloads.sourceforge.net/coppermine/cpg1.4.15.zip?download###########################
###!!! READ THIS ONE !!!###
###!!! IMPORTANT !!!###
###########################
During patch process you will (can) see two main information strings:
--> Hunk #3 succeeded at 216.
and
--> Hunk #1 failed at 1.
Example below.
Word "succeeded" means that there was no problems with patching of that part of code.
Word "failed" means there was some problem(s).
If you see "failed" for some file, you have to open file with name "FILENAME_WITH_ERROR.rej"
(below for example it is "zipdownload.php.rej")
and look what the patch was not able to change and fix that manually.
Word "done" means that patch go throw all changes in "cpg-1.4.14_to_1.4.15.patch" file.
After all such fixes you will have to delete all *.rej and *.orig files from coppermine directory and subdirs!###########################
###### EXAMPLE START ######
###########################
--------------------------
|diff -crbBN cpg132/xp_publish.php cpg133/xp_publish.php
|*** cpg132/xp_publish.php Sat Jul 24 17:03:00 2004
|--- cpg133/xp_publish.php Tue Apr 19 05:17:00 2005
--------------------------
Patching file xp_publish.php using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 205.
Hunk #3 succeeded at 216.
Hunk #4 succeeded at 333.
Hunk #5 succeeded at 571.
Hmm... The next patch looks like a new-style context diff to me...
The text leading up to this was:
--------------------------
|diff -crbBN cpg132/zipdownload.php cpg133/zipdownload.php
|*** cpg132/zipdownload.php Sat Jul 24 17:03:00 2004
|--- cpg133/zipdownload.php Tue Apr 19 05:17:00 2005
--------------------------
Patching file zipdownload.php using Plan A...
Hunk #1 failed at 1.
Hunk #2 succeeded at 57.
1 out of 2 hunks failed--saving rejects to zipdownload.php.rej
done
###########################
###### EXAMPLE END ########
###########################
========================
Step 8.If the file install.php exists in the root directory, delete it. When performing an upgrade, it is not needed.
Run the file "update.php" in the coppermine directory once in your browser (e.g.
http://yourdomain.tld/coppermine/update.php).
This will update your coppermine install by making all necessary changes in the database.
Taken from:3.5 Upgrading from cpg1.4.0 or better to version cpg1.4.15
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#14========================
That it!
(c) Makc666
