forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: gsworld on December 11, 2005, 05:22:33 am

Title: Problems Uploading pictures via FTP and upload
Post by: gsworld on December 11, 2005, 05:22:33 am
I'm frustrated because I've un-installed coppermine 5 times now and the 6th time my webhost installed coppermine for me.  When I try uploading pictures without my FTP I go to the album and click on upload photos.  I then select the picture that I want and click on upload.  I get a message stating that everything was successfull.  Then I get to a screen that says you need to put it into an album and I don't see the picture at all.  So I then click on continue and I get this message :

The previous file could not be placed.

You have successfully placed all the files.

So I decide to try it with my FTP and set it to all the correct permissions that they need to be and I still get this error.  Am I doing something wrong?  Or did I just forget to put something somewhere else?  I've already debugged it and have everything below.




USER:
------------------
Array
(
    [ID] => a13fff39cfd42919395e114d6c76f370
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => gsworld
    [groups] => Array
        (
           
        )

    [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
)

==========================
Queries:
------------------
Array
(
    [album] => 1
    [title] =>
    [caption] =>
    [keywords] =>
    [control] => phase_2
    [unique_ID] => 988d7a34
    [debugtext] => USER:
------------------
Array
(
    [ID] => a13fff39cfd42919395e114d6c76f370
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => gsworld
    [groups] => Array
        (
           
        )

    [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
)

==========================
Queries:
------------------
Array
(
    [unique_ID] => 988d7a34
    [control] => phase_2
    [debugtext] => USER:
------------------
Array
(
    [ID] => a13fff39cfd42919395e114d6c76f370
    [am] => 1
    [lang] => english
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 1
    [user_name] => gsworld
    [groups] => Array
        (
           
        )

    [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
)

==========================
Queries:
------------------
Array
(
    [URI_array] => Array
        (
            [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.24-standard
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -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 | On | 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 | .:/php/includes:/usr/share/php | .:/php/includes:/usr/share/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
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 | 60 | 60
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.104 seconds - 19 queries in 0 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.24-standard
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -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 | On | 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 | .:/php/includes:/usr/share/php | .:/php/includes:/usr/share/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
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 | 60 | 60
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.273 seconds - 20 queries in 0.001 seconds - Album set : ; Meta set: ;
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.1 - OK
------------------
mySQL version: 4.0.24-standard
------------------
Coppermine version: 1.4.2(stable)
==========================
Module: GD
------------------
GD Version: bundled (2.0.28 compatible)
FreeType Support: 1
FreeType Linkage: with freetype
T1Lib Support:
GIF Read Support: 1
GIF Create Support: 1
JPG Support: 1
PNG Support: 1
WBMP Support: 1
XBM Support: 1
JIS-mapped Japanese Font Support:

==========================
Module: mysql
------------------
MySQL Supportenabled
Active Persistent Links 0
Active Links 1
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /var/lib/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -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 | On | 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 | .:/php/includes:/usr/share/php | .:/php/includes:/usr/share/php
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | me@localhost.com | me@localhost.com
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 | 60 | 60
max_input_time | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.189 seconds - 21 queries in 0 seconds - Album set : ; Meta set: ;
Title: Re: Problems Uploading pictures via FTP and upload
Post by: artistsinhawaii on December 11, 2005, 09:12:08 am
gsworld,

I'm confused, too.  As per instructions, whether you are using FTP or HTTP, you must first create an album. For FTP you would create an album that resides outside of "my gallery".  This could be a standalone album or one in a category that you created.  For HTTP, you need to create an album inside of the "My Gallery" category and group permissions must be set to allow users to upload files and create albums.

FTP files are uploaded into subdirectories you create directly under the "albums" folder in your coppermine setup. THESE folders must  be outside of and NOT inside of the  EDIT and USER subdirectories.  HTTP files are created by the coppermine script when you create an album in my gallery and http upload a file into it.

FTP files are added to albums using the batch add process.
HTTP files are added to your album during the upload process.

By and large, Admins will upload their files via FTP not HTTP.

Dennis
Title: Re: Problems Uploading pictures via FTP and upload - ME TOO
Post by: artshocx on December 11, 2005, 03:15:57 pm
i am having the same / similar problems with BOTH the FTP and HTTP upload methods as the poster above.

sys/browser config:
macos 10.3.9
safari 1.3.1
server:
Linux os
Apache 1.3.33 (Unix)

i recently upgraded from cpg134 to cpg142. since that time my life has gone from bad to impossible. i have been using cpg 1.3.4 and before that 1.2.2, so i am not completely new to this. i remember something similar when 134 came out, but i can't remember what solved it.

i have already created a category and album for the files and i use the 2 following methods without success:

FTP method:
Batch add files > [select directory] > OK
all files are checked by default, but thumbs are black
i select the album
i hit "Insert Selected Files"
the "Result" column to the far right shows all question marks
i assume this means it cannot find the pics, although i can see them in the proper directory in my ftp program. AND it does not show ?s before i hit "Insert."

HTTP method:
"upload file" > "Choose file" > i do this to select 2 files > "CONTINUE"
2 uploads were successful
the following page
it shows a question mark for the thumbnail
i select an album, name the file, and give a description
i then hit "CONTINUE"
i receive the following message:
"The previous file could not be placed," and the 2nd file looks exactly as the first with a question mark where the thumbnail should be.
the final page after hitting "CONTINUE" on the second file gives the following message:
"The previous file could not be placed
You have successfully placed all the files."

i have already tried several trouble shooting steps mentioned in the online docs: checking and changing all necessary permissions [i tried them in both 755 and 777, and yes i did change the setting in the config depending on the one i was testing at the time]. the default appears to be 755, so of course i tried that first. i tried croping pics before hand, changing the file names, changing max file sizes in the config section, changing the file locations within the albums directory, etc. all to no avail. the weirdest thing is that some pictures upload fine and some dont. AND i can find no discernable pattern or commonality to suggest the fault.

i did run versioncheck and found predictable results - no surprises and DOES NOT SEEM to be the problem, but i can post the results if you wish.

unfortunately i screwed up my dump before the upgrade so there is no going back for me. please help us, thanks.
Title: Re: Problems Uploading pictures via FTP and upload
Post by: kegobeer on December 11, 2005, 03:46:36 pm
@All:  Read the documentation.  The batch add process is explained in detail.  In the /albums directory, make a new directory (for example: uploads).  Make sure permissions are 777 (for *nix systems, read/write for Windows).  Use your FTP client to upload into that directory.

@All: You must follow the troubleshooting guide:  http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
Title: Re: Problems Uploading pictures via FTP and upload
Post by: gsworld on December 12, 2005, 03:38:54 am
Sorry I should have given more detail.  When I load my pictures via FTP I'm following all directions.  Changing everything to 777 that needs to be, creating albums that need to be created and yet I still can not load any pictures via FTP.  I also tried the same thing if I uploaded them from the gallery. 
Title: Re: Problems Uploading pictures via FTP and upload
Post by: Joachim Müller on December 12, 2005, 07:07:20 am
do as suggested before - follow the troubleshooting guide. If you don't, we won't be able to help you.