set-up help set-up help
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

set-up help

Started by budweis, December 11, 2004, 06:58:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

budweis

hi, ive been lurking for a while but cant find an answer in search. heres my prob. i set up coppermine and it works as far as letting me upload a picture says successful but then when i click to add to an albulm i get
Critical error 
PHP running on your server does not support the GD image library, check with your webhost if ImageMagick is installed 
so i check with host and he sends me this

From:Host
"here are some of the directories it has installed in:"
>
> usr/share/ImageMagick/www/Magick++
> /usr/bin/install -c -m 644 ./www/Magick++/thumbnail-anatomy-framed.jpg
> /usr/share/ImageMagick/www/Magick++
> /usr/bin/install -c -m 644 ./www/Magick++/thumbnail-anatomy-plain.fig
> /usr/share/ImageMagick/www/Magick++
> /usr/bin/install -c -m 644 ./www/Magick++/thumbnail-anatomy-plain.jpg
> /usr/share/ImageMagick/www/Magick++
> /usr/bin/install -c -m 644 ./www/Magick++/thumbnail-sample-framed.jpg
> /usr/share/ImageMagick/www/Magick++
> /usr/bin/install -c -m 644 ./www/Magick++/thumbnail-sample-plain.jpg
> /usr/share/ImageMagick/www/Magick++
> /bin/sh ./mkinstalldirs /usr/share/ImageMagick
>  /usr/bin/install -c -m 644 Copyright.txt
> /usr/share/ImageMagick/Copyright.txt
>  /usr/bin/install -c -m 644 QuickStart.txt
> /usr/share/ImageMagick/QuickStart.txt
> make[2]: Leaving directory `/home/cpmagickbuild/magick/ImageMagick-5.5.1'
> make[1]: Leaving directory `/home/cpmagickbuild/magick/ImageMagick-5.5.1'

so my question is what do i do? before they upgraded i just set it on gd2 and it worked fine. does this mean i set it on image magik in config? and what do i put as path? please help! been trying to use coppermine for 2 months now and must have sent host 50 emails.



donnoman

I don't use ImageMagick, but my guess would be to try


/usr/share/ImageMagick/



in coppermine config for location of imagemagick and select imagemagick as the the "Method for Resizing Images"

budweis

ok i set it up like that and i dont get the error any more but when add to album it shows red x thumbnail like pic not found and says

"The previous file could not be placed.
You have successfully placed all the files"

and when go to albulm its empty still and says 0 files but when went to ftp browser shows it uploaded pic to folder.


Joachim Müller

turn on debug mode in coppermine config (ath the very bottom of the screen) to see some additional errors. There will be something like "error executing ImageMagick. Return value XXX". Search the board for the error you get, or post it here. Blind guess: your webhost hasn't set permissions accoridingly on the ImageMagick dir that enables you to execute it (nothing you can change, but probably will have to contact your webhost).

Joachim

budweis

#4
hi, thanks
it says this when have debug on

Notice: Undefined variable: file_failure_array in /home/myname/public_html/gallery/upload.php on line 1940

Notice: Undefined variable: URI_failure_array in /home/myname/public_html/gallery/upload.php on line 1941

Notice: Undefined variable: zip_failure_array in /home/myname/public_html/gallery/upload.php on line 1942


and when i look on those lines of upload.php it has this
$file_error_count = count($file_failure_array);
   $URI_error_count = count($URI_failure_array);
   $zip_error_count = count($zip_failure_array);


i tried this additional addresss in the config for image magik with same result
/usr/share/ImageMagick/www/Magick++/
usr/share/ImageMagick/www/Magick++/
/usr/share/ImageMagick/www/Magick++
usr/share/ImageMagick/www/Magick++
/usr/share/ImageMagick/www
usr/share/ImageMagick/www/
/usr/share/ImageMagick/
usr/share/ImageMagick/
/usr/share/ImageMagick
/bin/sh ./mkinstalldirs /usr/share/ImageMagick/
/home/cpmagickbuild/magick/ImageMagick-5.5.1
/home/cpmagickbuild/magick/ImageMagick-5.5.1/
home/cpmagickbuild/magick/ImageMagick-5.5.1/
/usr/bin/www/Magick++/
/usr/bin/Magick++/



/usr/bin/install -c -m 644 ./www/Magick++/    
Get this from this one.
Error  

You don't have permission to perform this operation.

just tried a avatar size pic in gif format and get this
Notice: Undefined index: user1 in /home/myname/public_html/gallery/upload.php on line 2146

Notice: Undefined index: user2 in /home/myname/public_html/gallery/upload.php on line 2147

Notice: Undefined index: user3 in /home/myname/public_html/gallery/upload.php on line 2148

Notice: Undefined index: user4 in /home/myname/public_html/gallery/upload.php on line 2149

Notice: Undefined index: OS in /home/myname/public_html/gallery/include/picmgmt.inc.php on line 157



heres the debug info at bottom which xxxxxxx means i xxxxxxx it out

USER:
------------------
Array
(
    [ID] => xxxxxxxxxxxxxxxxxx
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => xxxxxx
    [user_password] => ********
    [user_lastvisit] => 2004-12-11 04:17:36
    [user_regdate] => 2004-12-10 15:07:42
    [user_group_list] =>
    [user_email] =>
    [user_website] => xxxxxxxxxxxxx
    [user_location] => xxxxxxxxx.
    [user_interests] => xxxxxxxxxxxx
    [user_occupation] =>
    [user_actkey] =>
    [user_favpics] =>
    [disk_max] => 0
    [disk_min] => 0
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 1
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Administrators
    [upload_form_config] => 3
    [group_quota] => 0
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg_filetypes;
    [1] => SELECT * FROM cpg_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'xxxxxxxxxxxxxxxxxxxxxx'
    [2] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg_banned WHERE expiry < 1102758760
    [5] => SELECT * FROM cpg_banned WHERE ip_addr='xxxxxxxxxxx' OR ip_addr='xxxxxxxxxxxx' OR user_id=1
    [6] => SELECT category FROM cpg_albums WHERE aid='1'
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
    [album] => 1
    [title] =>
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => xxxxxxx
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.9 - OK
------------------
mySQL version: 4.0.22-standard
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
module doesn't exist
==========================
Module: mysql
------------------
Active Persistent Links 0
Active Links 1
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /var/tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.2.0.7
Linked Version 1.2.0.7
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | no value | no value
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | no value | no value
sql.safe_mode | Off | Off
disable_functions | no value | no value
file_uploads | On | On
include_path | .:/usr/lib/php:/usr/local/lib/php | .:/usr/lib/php:/usr/local/lib/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | no value | no value
sendmail_path | /usr/sbin/sendmail -t -i | /usr/sbin/sendmail -t -i
SMTP | localhost | localhost
smtp_port | 25 | 25
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | -1 | -1
upload_max_filesize | 2M | 2M
post_max_size | 55M | 55M
==========================
Page generated in 0.322 seconds - 7 queries in 0.006 seconds - Album set :

Joachim Müller

I wasn't talking about notices being displayed - they are not important, I was refering to "hard" errors and warnings. You should try first with known-good, small jpeg files for a start, just to make sure everything works as expected and test GIFs (which tend to cause problems) once jpegs work.
Post a link and test user account (non-admin) with upload privileges (turn on debug mode for everyone, turn off notices display, set upload method for the group the test user is in to "single file uploads only" in the groups panel).

Joachim

budweis

#6
ok heres the url
http://www.corvettemania.com/gallery/
and the user name is: test
and password is: test

i get this if logged in as user not admin
The file 'albums/userpics/10002/test.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127


Cmd line :
/usr/share/ImageMagick/convert -quality 80 -antialias -geometry 25x25 'albums/userpics/10002/test.jpg' 'albums/userpics/10002/thumb_test.jpg'



The convert program said:
sh: line 1: /usr/share/ImageMagick/convert: No such file or directory

funny it dont show that when logged in as admin. i emailed host again and he says

From Host:

"I don't know what to tell you, I've just reinstalled it again."


Casper

Do a search for imagemagick error 127.  There is a lot of help and posts on that.
I can't be specific, as I don't use imagemagick.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

budweis

yeah im not a genius but i think its obvious by the output that it shows as a user that i dont have right path to image magic or its not properly installed. just host wont help so i guess ill have to not use coppermine is only solution unless there is a way for me to set up image magik without host? if i knew exactly what file image magic is looking to find like convert.??? or whatever i maybe could get right path from him but he seems more confused than i am.

kegobeer

Unless you have root access the only person who can install ImageMagick is your host.

Your host didn't compile PHP with GD support, and doesn't give you the correct information about the ImageMagick install.  Time to look for a new host.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

budweis

ok thanks for replies. i just got this space setup and paid for and ns changed so i hate to think about moving again. i did a search for image magik installation instructions so i could send to host but dont even see a home site for image magik. does anone have a link they could shoot me too about how to install image magic properly? then maybe i can send him link and cross fingers that it gets fixed. thanks for all the help. its a shame as spent last week working on my coppermine theme.  :-[

kegobeer

You ought to try www.imagemagick.org, I'm sure you will find all the instructions you need.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

budweis

im there thanks again:)

stephunkin

I am running Coppermine 1.1 and ImageMagik was working fine last week (an the past two years or so I have been using coppermine).  However, I just uploaded some new pictures and when I try to batch-add them I get the 127 error - BTW doing a search on that returns but two topics.
Does anyone know what may have happened?
Thanks,
S

Tranz

Did you ask your webhost if anything has changed that could affect IM?