ImageMagick Path Inconsistency

sbw

Joined: 2009-03-28
Posts: 6
Posted: Sat, 2009-03-28 12:53

Installed Gallery3 Alpha 1 last night. Ran into a problem with the ImageMagick path.

- FreeBSD 6.2
- PHP 5.2.9
- ImageMagick 6.4.9-8 2009-03-08

Everything appeared to go smoothly, and Admin/Settings/Graphics sees ImageMagick in /usr/local/bin.

But the Flash uploader gave a 500 error on every photo. I poked around until I found the var table and found this row:

module_name: core
name: graphics_toolkit_path
value: /usr/bin

I changed the value to /usr/local/bin manually, and now uploads work fine.

Would it be helpful to you if I were to reproduce the problem by doing the installation from scratch again with an empty database?

Can you point me to the code that populates that row in the var table, so I can understand how it got the path wrong?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-03-28 17:06
Quote:
Installed Gallery3 Alpha 1 last night

I would start over with Alpha 3 or a nightly build. Lots have changed since Alpha 1

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
sbw

Joined: 2009-03-28
Posts: 6
Posted: Sat, 2009-03-28 17:16
Quote:
I would start over with Alpha 3 or a nightly build.

I'm sorry, I got that wrong: I installed Alpha 3 last night. The problem I noted occurred in a fresh Alpha 3 installation.

 
pgeppl

Joined: 2009-03-31
Posts: 1
Posted: Tue, 2009-03-31 18:15

hi
where can i find this table????
i am looking for one hour but i cannot find it, damned :(
thanks a lot
pgeppl

 
sbw

Joined: 2009-03-28
Posts: 6
Posted: Tue, 2009-03-31 18:42
pgeppl wrote:
where can i find this table????

It's one of the tables created by the Gallery3 installation. I found it in the MySQL database I set up for Gallery3.

The var table is actually called XY_var on my server, because I specified a table name prefix during installation. ("XY" isn't my actual prefix.)

Is that what you're asking?

 
kellym
kellym's picture

Joined: 2003-04-15
Posts: 29
Posted: Thu, 2009-04-02 05:02

The table is normally called vars, I believe. Log into MySQL, select your Gallery 3 database, and issue a SHOW TABLES; command. Assuming you have a vars table, simply issue UPDATE vars SET value = "/usr/local/bin" WHERE id = 8; or something similar, depending on where you GD/ImageMagick is located.

 
Okat
Okat's picture

Joined: 2009-04-05
Posts: 78
Posted: Sun, 2009-04-05 20:17

Changing the entry in the table did not fix it for me. Is there another way to get it working?
I'm getting invisible images with the GD library.

On a side note; I'm getting the following messages in the log:

2009-04-05 22:11:23 +02:00 --- debug: Disable magic_quotes_gpc! It is evil and deprecated: http://php.net/magic_quotes
2009-04-05 22:11:23 +02:00 --- debug: Disable register_globals! It is evil and deprecated: http://php.net/register_globals

.htaccess seems to configured as it should

<IfModule mod_php5.c>
php_value short_open_tag 1
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value session.auto_start 0
php_value upload_max_filesize 20M
php_value post_max_size 100M
</IfModule>
AddHandler php5-script .php5 .php .inc .php4 .php3 .phtml # phpvs v5

SecFilterEngine Off
SecFilterScanPOST Off

 
Okat
Okat's picture

Joined: 2009-04-05
Posts: 78
Posted: Tue, 2009-04-07 15:43

For an unknown reason I couldn't get any library to work. Tried the path in the prefix_vars table (although it seems to be gone with the latest trunk) but that didn't help at all. I checked my hosting company for a double check (didn't have any problems using GD or ImageMagick before this) and confirmed it should be /usr/local/bin. I did find, however, that when I entered 'GD' instead of 'gd' or 'ImageMagick' instead of 'imagemagick' the site gave me an error message.

All problems were gone when i installed the latest Trunk available from SVN. Apart from the upload error: 500, that is. Which I fixed on my site as shown in another thread.

The .htacces file in that particular trunk missed the following line:
AddHandler php5-script .php5 .php .inc .php4 .php3 .phtml # phpvs v5
and stopped the site from working at all.

 
leetaylor
leetaylor's picture

Joined: 2009-02-20
Posts: 5
Posted: Fri, 2009-05-01 22:22

@ Oldiesmann -
Hey, Lee here - I got a msg back from 'support' & they said it would live in usr/bin or usr/bin/convert so I checked the vars table in the db (after reading the previous posts) & tried to update it - don't know if that actually happened but it looks like it was ok anyway. I'm not sure about the particulars but I found out it's using ImageMagick & the path was where they said - but nothing changed on the site... ;-( Anyway, I'm attaching two pics & the link to the gallery, if you have the opportunity & want to look at it I'd appreciate it. Thanks in advance. Lee
P.S. HERE'S THE LINK - http://www.mideamedia.info/3g/index.php/TESTGAL.001