This is what I get, the patch partionally works :P haha
Quote:
-bash-2.05b$ patch -p0 < gallery-1.4.3-pl1_to_pl2.patch
patching file gallery/ChangeLog
patching file gallery/Version.php
patching file gallery/docs/g1package/index.html
patching file gallery/init.php
can't find file to patch at input line 83
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u -r gallery-1.4.3-pl1/setup/check.inc gallery/setup/check.inc
|--- gallery-1.4.3-pl1/setup/check.inc Sun Apr 11 15:03:42 2004
|+++ gallery/setup/check.inc Thu May 6 03:05:29 2004
--------------------------
File to patch:
[2]+ Stopped patch -p0 <gallery-1.4.3-pl1_to_pl2.patch
I don't know what to do now? haha
Anyone have any clues?
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.uvpucko.com/gallery
Gallery version: Latest
Apache version: 1.3.31 (Unix)
PHP version (don't just say PHP 4, please): 4.3.7
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):
Posts: 8194
If your setup directory is chmodded 0, you might need to chmod it 755 or 777 temporarily before doing the patch (if you're non-root)
Posts: 54
AH! It worked. Thanks man
Posts: 59
Unfortunately, it didn't for me! I chmodded the setup directory and htaccess/config.php 777 and still got this result:
[travel@host3 travelsignposts-www]$ patch -p0 < gallery-1.4.3-pl1_to_pl2.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -u -r gallery-1.4.3-pl1/ChangeLog gallery/ChangeLog
|--- gallery-1.4.3-pl1/ChangeLog Wed May 5 15:56:38 2004
|+++ gallery/ChangeLog Tue Jun 1 08:40:42 2004
--------------------------
File to patch:
Anybody got any ideas? (yes, the patch file is outside the gallery directory)
Tony
Posts: 2322
Is your gallery directory named 'gallery'? Are you running the patch from the location the gallery directory is in (and not inside the gallery directory itself)?
Posts: 59
Thanks, Signe, I am running it outside the gallery directory as I commented in the post, but I am not using "gallery" as my directory but "Destinations". When I checked the patch code (I'm not very good at this, obviously) I thought this would not matter as I assumed the apparent use of the GALLLERY_BASEDIR would get over this.
What should I change to get around this, I am clearly out of my depth down here in Oz...
Tony
Posts: 2322
Run the patch from inside your directory, but use "patch -p1" instead of -p0