4images Forum & Community
4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: widgit19812 on May 11, 2002, 03:21:26 PM
-
Hi Guys
I managed to fully install 4images on our new server and for my luck ImageMagick was pre-installed. But when i type in the path and I try to go into the autothumbnailer section i get:
ImageMagick error. Wrong path or ImageMagick not installed.
Check module settings.
I checked through these boards I saw a few comments about permissions of the ImageMagick files what do they have to be set @ ?
Also my files are stored @ usr/local/bin/
With all files in that folder do i enter "usr/local/bin/convert" into the ImageMagick field in 4images?
Thanks in advance
Steve
-
Please ask your host about the correct path where ImageMagick is installed.
Greets Jan
-
Hi
It is the correct path they told me it and I made sure by navigating through ftp.
Steve
-
Do you run a Linux or Windows server? If Windows, be sure that you enter "convert.exe" instead of "convert".
Be also sure that you entered "/usr/local/bin/convert". Starting with /.
Jan
-
I am running a linux server.
I am using the /usr/local/bin/convert address
Thanks
Steve
-
Try this
/opt/ImageMagick-5.4.5/bin/convert
this worked for us , you need the version number this is ours , but try your own :!:
Giffy :wink:
-
No that dosnt work either :(
Steve
-
Ok, if you are REALLY sure that this is the right path, remove this code from the top of "admin/thumbnailer.php" and "admin/resizer.php" and try if it works.
if ($config['convert_tool'] == "im" && !is_executable($config['im_convert_path'])) {
echo "<b class=\"marktext\">".$lang['im_error']."</b><br />\n";
echo $lang['check_module_settings'];
show_admin_footer();
exit;
}
Jan
-
Im gettibg the error now:
Warning: SAFE MODE Restriction in effect. The script whose uid is 553 is not allowed to access ./../data/media/36/blademasters01.jpg owned by uid 48 in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182
Warning: getimagesize: Unable to open './../data/media/36/blademasters01.jpg' for reading. in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182
Warning: SAFE MODE Restriction in effect. The script whose uid is 553 is not allowed to access ./../data/media/40/bruteforce02.jpg owned by uid 48 in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182
Warning: getimagesize: Unable to open './../data/media/40/bruteforce02.jpg' for reading. in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182
-
Warning: SAFE MODE Restriction in effect. The script whose uid is 553 is not allowed to access ./../data/media/36/blademasters01.jpg owned by uid 48 in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182
Id did that and got into the section but got:
Warning: getimagesize: Unable to open './../data/media/36/blademasters01.jpg' for reading. in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182
Warning: SAFE MODE Restriction in effect. The script whose uid is 553 is not allowed to access ./../data/media/40/bruteforce02.jpg owned by uid 48 in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182
Warning: getimagesize: Unable to open './../data/media/40/bruteforce02.jpg' for reading. in /home/virtual/site50/fst/var/www/html/4images/admin/thumbnailer.php on line 182
-
Ok, your PHP is running in Safe Mode. You can't use the Auto-Thumbnailer und the Auto-Resizer, sorry!
Jan
-
Ok How do i get it off safe mode
Do i need to ask my host ?
Thanks
STeve
-
Hi my host has diabled safe mode but now when i try to create thumbnails i get:
Create thumbnail for: a10-in-tunnel-bingomid (a10-in-tunnel-bingomid.jpg) ....
Error creating thumbnail!
Create thumbnail for: Blade (blademasters01.jpg) ....
Error creating thumbnail!
Create thumbnail for: Bruteforce (bruteforce02.jpg) ....
Error creating thumbnail!
Create thumbnail for: X-isle3 (x-isle04.jpg) ....
Error creating thumbnail!
Create thumbnail for: Dark3 (darksummit03.jpg) ....
Error creating thumbnail!
Create thumbnail for: Dommy (dom2.jpg) ....
Error creating thumbnail!
Create thumbnail for: Cello (celdamage04.jpg) ....
Error creating thumbnail!
Any ideas ?
-
read above
-
Ok, i think the path to ImageMagick is not correct. Please re-check this!!!
It's all i can say about it...
Greets Jan
-
Ive had a long chat with my host and they say its looks like a permissions problem.
What folder does it try to write the images to ( default )
Thanks
Steve
-
The folder "data" and all folders in it must have chmod 777.
Jan
-
hi,
or maybe your convert tool is elsewhere ....
try in telnet / ssh
whereis convert
or
which convert
or
locate convert
-
Hi All
I have racked my brains on this and spent a lot of time talking to my host he's reinstalled my ImageMagick 3 times. I have managed to get it sometimes to create thumbnails ( 1 in 100 ). Has anyone got any clue why this may be happening.
My host has assured me that all paths and installation is correct.
Thanks
Steve
-
hi,
maybe is it the incorect installation of ImageMagick
they should try following
http://www.4homepages.de/forum/viewtopic.php?p=795#795
-
Ok, if you are REALLY sure that this is the right path, remove this code from the top of "admin/thumbnailer.php" and "admin/resizer.php" and try if it works.
if ($config['convert_tool'] == "im" && !is_executable($config['im_convert_path'])) {
echo "<b class=\"marktext\">".$lang['im_error']."</b><br />\n";
echo $lang['check_module_settings'];
show_admin_footer();
exit;
}
I had the same problem and yes ImageMagick does exist at the path I kept entering. On my last dedicated server I did not have to do this at all so i'm not sure on the cause but it seems to be server related or maybe a better imagemagick verifying routine can be coded :) Anyway to fix this problem in 4images 1.7.1 you have to do similar to what is mentioned above except you will find the code you need to delete in /includes/image_utils.php at around line 40. The code to delete is a little different to what Jan posted -
if (!@is_executable($convert_options['convert_path'])) {
$convert_options['convert_error'] = "<b class=\"marktext\">".$lang['im_error']."</b><br />\n".$lang['check_module_settings'];
}
-
probably that's because your server is running on Windows system.
-
no it's a Fedora3 nix... my last dedicated server was redhat9.0 nix
I've got a feeling it's the fedora setup that caused my problems, imagemagick was a hassle to install, I had to compile source because the fedora imagemagick.rpm package failed to install properly.
-
ah, ok, then my explanation would be the is_executable() function was disabled on your server...but why???
windows systems dont have that function by default.
-
another alternative of removing something from the code is add this in includes/functions.php
if (!function_exists("is_executable"))
{
function is_executable ()
{
return true;
}
}
-
also coppermine does not have this trouble at all. It picked up ImageMagick by itself. Maybe you should check their code to see how the IM check is done properly.
-
Copermine is probably only "guessing" the location. The default location of imagemagic files is in /usr/bin/ directory, but any hosts could install it anywhere they want.