Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Can't add uploaded pics  (Read 8576 times)

0 Members and 1 Guest are viewing this topic.

JustinofOz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Can't add uploaded pics
« on: September 04, 2004, 07:49:45 am »

http://williamsuniversal.com/Copermine/cpg132/index.php username = cas p/w = test

When uploading pics I get the following when I try to add to gallery:

"The previous file could not be placed.

You have successfully placed all the files."

I have tried all sorts of configurations and permissions and can't seem to stumble on the right combination.

I need this for a group of members to be able to store their images and am tearing my hair out with trying to set it up. Any help would be appreciated. It is a very sophisticated program and I'm sure it's what I want, but I really need to thoroughly test it before I can trust it to any members. (Excellent bit of programming! Well done.)
« Last Edit: September 04, 2004, 12:11:42 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can't add uploaded pics
« Reply #1 on: September 04, 2004, 10:51:21 am »

appears to be a permissions issue. Make sure there's a folder called "edit" within your albums folder, and make sure that both the albums folder and everything within it (all sub-folder) have write permissions for the webserver (usually, CHMOD to 755 or 777, depending on your webserver config).
Go to coppermine config and enable debug_mode (only debug mode, leave notices switched off) to see more detailed error reports. Then try uploading once more and paste the error message you get into your next posting.

Joachim
Logged

JustinofOz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Can't add uploaded pics
« Reply #2 on: September 04, 2004, 11:22:14 am »

The Permissions are set correctly at 777.
The edit folder is CHMOD 777

I am still getting the same nessage.
The following is the output from debug:
Code: [Select]
USER:
------------------
Array
(
    [ID] => 432ee5aa6aa8f3cde4848b56d60b2373
    [am] => 1
    [theme] => fruity
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_group] => 1
    [user_active] => YES
    [user_name] => JustinofOz
    [user_password] => ********
    [user_lastvisit] => 2004-09-04 05:01:37
    [user_regdate] => 2004-09-02 21:51:16
    [user_group_list] =>
    [user_email] =>
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [disk_max] => 1024
    [disk_min] => 1024
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 1
    [ufc_min] => 1
    [custom_user_upload] => 0
    [num_file_upload] => 5
    [num_URI_upload] => 5
    [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] => 1
    [group_quota] => 1024
    [can_see_all_albums] => 1
    [group_id] => 1
    [groups] => Array
        (
            [1] => 1
        )

)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content FROM cpg132_filetypes;
    [1] => SELECT * FROM cpg132_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '1fc8b96d43c895d7aeeb895db7838b09'
    [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 cpg132_usergroups WHERE group_id in (1)
    [3] => SELECT group_name FROM  cpg132_usergroups WHERE group_id= 1
    [4] => DELETE FROM cpg132_banned WHERE expiry < 1094289255
    [5] => SELECT * FROM cpg132_banned WHERE ip_addr='144.134.177.67' OR ip_addr='144.134.177.67' OR user_id=1
    [6] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = ''  ORDER BY pos
    [7] => SELECT aid FROM cpg132_albums as a WHERE category>=10000
    [8] => SELECT count(*) FROM cpg132_pictures as p, cpg132_albums as a WHERE p.aid = a.aid AND category >= 10000
    [9] => SELECT cid, name, description, thumb FROM cpg132_categories WHERE parent = '1'  ORDER BY pos
    [10] => SELECT aid FROM cpg132_albums as a WHERE category = '0'
    [11] => SELECT count(*) FROM cpg132_albums as a WHERE 1
    [12] => SELECT count(*) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1
    [13] => SELECT count(*) FROM cpg132_comments as c LEFT JOIN cpg132_pictures as p ON c.pid=p.pid LEFT JOIN cpg132_albums as a ON a.aid=p.aid WHERE 1
    [14] => SELECT count(*) FROM cpg132_categories WHERE 1
    [15] => SELECT sum(hits) FROM cpg132_pictures as p LEFT JOIN cpg132_albums as a ON p.aid=a.aid WHERE 1
    [16] => SELECT count(*) FROM cpg132_albums as a WHERE category = '0'
)

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

==========================
POST :
------------------
Array
(
)

==========================
VERSION INFO :
------------------
PHP version: 4.3.8 - OK
------------------
mySQL version: 4.0.20-standard
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.23 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
==========================
Module: mysql
------------------
Active Persistent Links 8
Active Links 9
Client API version 4.0.20
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib -lmysqlclient  
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
==========================
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 | 20M | 20M
post_max_size | 55M | 55M
==========================
Page generated in 0.049 seconds - 17 queries in 0.002 seconds - Album set :
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can't add uploaded pics
« Reply #3 on: September 04, 2004, 11:26:19 am »

debug mode is still not available for me, set it to "yes:everyone" instead of "yes: admin only". I didn't ask for the debug_output, but additional error messages.
How can you tell CHMOD 777 is the corect setting for you? Did you check with your webhost, or did you try 755 as well?

Joachim
Logged

JustinofOz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Can't add uploaded pics
« Reply #4 on: September 04, 2004, 11:36:56 am »

I'm sorry GauGau. I was unaware that I should try 755. I have information overload from reading through all the posts here in search of a cause and solution for this. I am relatively new to setting up php etc...

I have tried 755 yes.

I appologise if I gave you the wrong report, I did not get any other report. I will give you my username and password in a PM if I may and you can then maybe see what is going on....I seem to be unable to see the right report as when I upload a photo, it says to continue , it then asked me to add the pic to the album and all I got was the same error message:

"The previous file could not be placed.

You have successfully placed all the files."
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can't add uploaded pics
« Reply #5 on: September 04, 2004, 12:04:18 pm »

Please try CHMODing as suggested.

Joachim
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can't add uploaded pics
« Reply #6 on: September 04, 2004, 12:11:28 pm »

With the admin logon you sent me I switched to single file uploads, to get more error messages. This error appeared:
Code: [Select]
The file 'albums/userpics/10001/fruit 5~0.jpg' can't be inserted in the album

Error executing ImageMagick - Return value: 127

Cmd line :
/usr/bin/convertconvert -quality 80 -antialias -geometry 50x38 'albums/userpics/10001/fruit 5~0.jpg' 'albums/userpics/10001/thumb_fruit 5~0.jpg'


The convert program said:
sh: line 1: /usr/bin/convertconvert: No such file or directory


File: /home/williams/public_html/Copermine/cpg132/db_input.php - Line: 304
Apparently you have configured coppermine to use ImageMgick, although you don't have it (or at least you don't have it in the location you specified). I switched to GD2 in your coppermine config, and upload works smoothly now. See for yourself: http://www.williamsuniversal.com/Copermine/cpg132/displayimage.php?pos=-4 has been uploaded (feel free to remove it). I disabled debug_mode again and set your groups settings back to multiple http uploads, as everything now works as expected. Case closed. Make sure to change your admin password now.

Joachim
Logged

JustinofOz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Can't add uploaded pics
« Reply #7 on: September 04, 2004, 12:17:37 pm »

Thank you Joachim. I consulted the server and they told me that was the correct path to Imagemagick. They must have been wrong. I am hosted with OnSmart.net, they seem to be very good.

Thank you again for the trouble.

Cheers

JustinofOz
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can't add uploaded pics
« Reply #8 on: September 04, 2004, 12:21:56 pm »

If you want to use ImageMagick instead of GD2, make sure the script has execute permissions on ImageMagick's convert executable (ask your webhost on this again). I'd say use GD2, as there are only tiny differences between GD2 and IM in performance, and GD2 has a big plus when using ftp-upload and batch-add: it doesn't create simultaneous processes for each pic that is processed, but handles one by the other. This will put less load on your server. The quality of the resulting pics are nearly the same.

Joachim
Logged

JustinofOz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Can't add uploaded pics
« Reply #9 on: September 04, 2004, 12:31:42 pm »

It doesn't seem to handle gif files, and as this is intended as a facility for rorum owners to stere their banners and buttons, and most of them are in the gif format, I tried the IM. I am not certain that this sophisticated is suitasble for that purpose.
I will however get a great deal of use out of it for my professional photographer friends.
Thanks again,

JustinofOz
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Can't add uploaded pics
« Reply #10 on: September 04, 2004, 12:38:29 pm »

gif support has returned to GD with most recent versions (as the legal issue with the Unisys LZW patent expired) - you might want to ask your webhost if they could upgrade the GD version on the server to the most recent one. You will have to make some fixes to the coppermine core code then as well - please search the board, there's a post from kegobeer that explains what steps you need to get gif support. Keep in mind that there is only limited support for animated GIFs, I suggest recommending your users to use PNGs anyway - they have transparency as well, and they are fully supported.

Joachim
Logged

JustinofOz

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Can't add uploaded pics
« Reply #11 on: September 04, 2004, 12:44:32 pm »

Thank you Joachim, you have been more than helpful. I have coppied the answer you just gave and will relay it to the server administration.

Cheers!

JustinofOz
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.