Another Image Issue
Another Image Issue
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?
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?
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
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
all dirs and file permissions have been modified per the insturction link provided. Thanks for the link!
I still get this error:
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:
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
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
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???
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???
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.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
Your problem may relate to ownership rights or overwrite privileges or some other permissions, at least regarding that folder.