Page 1 of 1
Another Image Issue
Posted: Fri 12. Nov 2004, 18:37
by u195819
Well, I now have another issue that really baffles me. I think it is an Image Magic issue. When I want an image to be enlargable, image magic places the image inside /content/images but puts a .0 .1 and .2 after the image name so the script breakes giving me the following error:
Warning: getimagesize(/home/crown/public_html/cms3/content/images/1_16_1HZsncsW2K-600x150.jpg): failed to open stream: No such file or directory in /home/crown/public_html/cms3/include/inc_front/content/cnt2.article.inc.php on line 32
The image is inside the correct folder, but it is not named 1_16_1HZsncsW2K-600x150.jpg
but is named 1_16_1HZsncsW2K-600x150.jpg.0
Anybody have any ideas on a fix?
Is this an Image Magic issue or is the script actually writing the .0 after the image name?
Posted: Fri 12. Nov 2004, 19:04
by Pappnase
Posted: Fri 12. Nov 2004, 19:09
by u195819
All permissions are correct, in fact, the setup.php indicated all files and folders were fine during installation. I then went back and double checked via command just to make sure.
Any other thoughts? If this truly is a permissions error, would you have any idea on what folder I should check. Clearly the /content/images folder is chmod 777 as the files are being written there, it is just the names are altered to break the script.
thanks so much!
jm
Posted: Fri 12. Nov 2004, 19:21
by u195819
all dirs and file permissions have been modified per the insturction link provided. Thanks for the link!
I still get this error:
Code: Select all
Warning: getimagesize(/home/crown/public_html/cms3/content/images/1_17_yYC4CEF4wN-600x300.jpg): failed to open stream: No such file or directory in /home/crown/public_html/cms3/include/inc_front/content/cnt2.article.inc.php on line 32
As you can see by the command lines below, images are being written, but they are in a funny name (.0 .1 .2 added at the end) so the script does not know to find them.
See the dir listing below:
Code: Select all
-jailshell-2.05b$ cd content/images
-jailshell-2.05b$ ls
1_17_yYC4CEF4wN-600x300.jpg.0 1_17_yYC4CEF4wN-600x300.jpg.2
1_17_yYC4CEF4wN-600x300.jpg.1
Posted: Fri 12. Nov 2004, 21:13
by Pappnase
hello
is the image folder there!?
Posted: Fri 12. Nov 2004, 21:43
by u195819
yes, per my paste of my shell session, you can clearly see the images are in content/images directory. Also these are being written there by either the scripts themselves or Image Magic. I am not placing them there, the application is doing so....
But again... the files are being renamed somehow and i cant figure out why every image is has a .0 .1 .2 after them
here are the images and their names in the content/images folder
1_17_yYC4CEF4wN-600x300.jpg.0
1_17_yYC4CEF4wN-600x300.jpg.1
1_17_yYC4CEF4wN-600x300.jpg.2
why is there the extra number after jpg???
Posted: Fri 12. Nov 2004, 23:01
by Pappnase
hello
sorry but this i have never seen before.
Posted: Sun 14. Nov 2004, 06:12
by u195819
Anyone else have any clue?
Thanks!
jm
Posted: Sun 14. Nov 2004, 07:11
by Karla
u195819 wrote:See the dir listing below:
Code: Select all
-jailshell-2.05b$ cd content/images
-jailshell-2.05b$ ls
1_17_yYC4CEF4wN-600x300.jpg.0 1_17_yYC4CEF4wN-600x300.jpg.2
1_17_yYC4CEF4wN-600x300.jpg.1
This is the same filename with incrementing numerical extensions. ImageMagick's "convert" command will do this when repetitive requests to create same thumbnail. If it believes there is already a file named "1_17_yYC4CEF4wN-600x300.jpg" and permissions do not allow overwriting... then it saves subsequent attempts with appended incrementing numbers.
Your problem may relate to ownership rights or overwrite privileges or some other permissions, at least regarding that folder.