Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 15:39

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 6. Mar 2008, 17:17 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
I have 2 problems with TWG 1.7 :
1) TWG PHPinfo says that I have PHP 4.4.4 while my version is 5.2.1
2) Image Magick is installed on my server but TWG says that Image Magick support is not available. The path to my Image Magick is correct in config.php.
Thanks for helping


Top
 Profile  
 
 Post subject:
PostPosted: 6. Mar 2008, 17:32 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I only use the value from the php info - you can click on the phpinfo button and check there.

Are you maybe on a server where multiple php'S are installed and you can define the version on a directory level (strato does this for example).

image magick - I thest image magick by converting an image. if this fails I assume that image magic is not working properly.

What server are you using?

I tested this on windows and redhat fedora.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 6. Mar 2008, 20:02 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
Michael,

My host server (ftp://ftp4.nuxit.net) is at nuxit.com

The server (Server: Apache X-Powered-By: PHP/5.2.1) does have multiple PHP (4 and 5). I use php5 (look at http://gogan.org/phpinfo.php) but TWG phpinfo give php 4.4.4

Image Magick "convert" IS installed at /usr/bin/convert and produce no error when called (convert -version => Version: ImageMagick 6.0.6 11/15/06).

Paul


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 00:21 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
call info.php of TWG and there in the right upper corner you can call the phpinfo. There you see what in your twg folder is used.

about image magick. is convert not in the path?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 00:59 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
Michael,

For PHPinfo, strange behaviour : when I call TWG17 directly (eg #removed_broken_link), I obtain with the phpinfo of TWGXplorer the right value (PHP-5.2.1), and the same by calling #removed_broken_link.

If I call the gallery using "http://galerie-photos.gogan.org" , ie using the sub-domain defined on nuxit.com as :
"galerie-photos.gogan.org" ==> associated to the directory "/www/twg17" (with the domain "gogan.org" ==> associated to the directory "/www" on the server)
I obtain PHP 4.4.4 using TWG info.php !

Concerning "convert", it is on the paths defined by PHP 5. I have defined the full path in "config.php" (ie /usr/bin/convert).

Paul


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 01:10 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
php: your server seems not to be configured then properly ;).

convert: the php exec command does not seem to find it. have you tried without the path?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 01:26 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
Michael,
I will investigate further with my provider as concern the behavior of PHPinfo with sub domains on their server.

For "convert" : I have tested using "PHPinteractive" (http://www.hping.org/phpinteractive/)
the PHP command :
shell_exec('convert');
and it works OK.


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 10:00 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
i only use exec - you can try shell_exec in info.php and see if there is a difference. maybe exec is not allowed on your server.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 10:32 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
Yes, "exec" is not allowed on my server for security reasons.

In your info.php,
function check_image_magic()

I made the following change :


//exec($command . " > /dev/null");

shell_exec($command . " > /dev/null");

No effect : I still obtain ImageMagick not available.


Paul


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 11:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
delete the file

_image_magick_test.jpg

in the cache folder - the check is only done once because on some servers the execute fails with a fatal error and then the page will never be displayed.

if shell_exec works i'll make a switch in the config.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 12:04 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
No, it does not work after deleting the file.

I have stiil the message that ImageMagick is not available


Paul


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 12:16 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
sorry - i meant

_image_magick_test.tmp.php

but the other file did exist? which size had the image?
if the size is 0 then image magick was found but the output was not o.k.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 12:27 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
There is no _image_magick_test.tmp.php in the cache directory.
The file _image_magick_test.jpg does exist with size 0.
Paul


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 12:46 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
what you can do:

remove the

ob_start();

and ob_end_clean();

then add an echo $command;

before
exec($command . " > /dev/null");

then you get the command that is executed.

on your server you can then execute this command in the shell.

if you don't have access then change the > /dec/null to a filesname where you can write to. And check what the error is.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 7. Mar 2008, 15:24 
Offline

Joined: 30. Jul 2007, 18:23
Posts: 26
Michael,

After making the changes you suggested in info.php, we have :

echo $command;
//exec($command . " > /dev/null");
// exec($command . " > /home4/p/pgogan/www/twg17/cache/TWGerror.txt");
shell_exec($command . " > /home4/p/pgogan/www/twg17/cache/TWGerror.txt");
//shell_exec($command . " > /dev/null");

caliing twg17/info.php, I obtained :
===> _image_magick_test.jpg of size 0
===> no TWGerror.txt

echo $command returned :
convert "/home4/p/pgogan/www/twg17/buttons/info_test.jpg" -quality 80 -resize 120x81 "/home4/p/pgogan/www/twg17/cache/_image_magick_test.jpg"

and TWGinfo said : Image Magick Support Not available

*********************
In the phpinteractive shell I used :
$command = "convert /home4/p/pgogan/www/twg17/buttons/info_test.jpg -quality 80 -resize 120x81 /home4/p/pgogan/www/twg17/cache/_image_magick_test.jpg";

shell_exec($command . " > /home4/p/pgogan/www/twg17/cache/TWGerror.txt");

I obtained :
===> _image_magick_test.jpg of size 0
===> no TWGerror.txt

********************
In the phpinteractive shell I then used :

$command = "convert /home4/p/pgogan/www/twg17/buttons/info_test.jpg -quality 80 -resize 120x81 /home4/p/pgogan/www/twg17/cache/_image_magick_test.jpg";

shell_exec($command); // The redirection to a file is removed

I obtained :
===> _image_magick_test.jpg of size 3526 (OK)

****************
Then, I removed the redirection in info.php :

echo $command;
shell_exec($command);

Running twg17/info.php I obtained :
===> _image_magick_test.jpg of size 3526 (OK)
===> Image Magick Support Available

**************
Thus it appears that the redirection is the problem.
*****************

BUT, if instead of calling twg17/info.php, I call twg17 then run TWGXplorer=>Installation Check, I obtain :
===> _image_magick_test.jpg of size 0
===> Image Magick Support Not Available

THUS there is also a problem when info.php is called from within twg17

Paul


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 79 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy