I recently grabbed the latest tar.gz file and integrated the 3.0.3 version of phpix into my setup. I was running 3.0.1 with no problems.
With the new stuff in place, I wasn't getting anything except the smiley faces on my site -- even for stuff that has long been in the cache. I looked at the logs and noticed an error being thrown from line 72 in the new showpic.php file. Looking more closely, I noticed that the directory was being cut off for some reason.
So, showpic is cutting off the "4)" in the middle of the path that gets passwed to getimagesize.
I switched out the new showpic.php for the old showpic.php (v3.0.1) and everything works fine... the only significant difference I see, running a diff, that could be the problem is the line:
Hi,
I recently grabbed the latest tar.gz file and integrated the 3.0.3 version of phpix into my setup. I was running 3.0.1 with no problems.
With the new stuff in place, I wasn't getting anything except the smiley faces on my site -- even for stuff that has long been in the cache. I looked at the logs and noticed an error being thrown from line 72 in the new showpic.php file. Looking more closely, I noticed that the directory was being cut off for some reason.
[client <ip_address>] PHP Warning: getimagesize(/var/www/html/pics/albums/<somewordhere>_(Born_March_13_2007 Months/IMG_1769.JPG): failed to open stream: No such file or directory in /var/www/html/pics/showpic.php on line 72, referer: http://<hostname>/html/pics/index.php?album=Tyler_Benson_%28Born_March_13_2004%29%2F7+Months&dispsize=&start=0
The actual path passed to getimagesize should be something like:
/var/www/html/pics/albums/<somewordhere>_(Born_March_13_2004)/7 Months/IMG_1769.JPG
So, showpic is cutting off the "4)" in the middle of the path that gets passwed to getimagesize.
I switched out the new showpic.php for the old showpic.php (v3.0.1) and everything works fine... the only significant difference I see, running a diff, that could be the problem is the line:
$album = preg_replace('/..\//','',stripslashes($_GET['album']
But I don't know enough about PHP or regular expressions to fix it, if it is indeed the problem.
Just wondering if anyone else ran into this and knows of a fix?
Thanks,
BB