forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: angelic_angel88 on September 18, 2006, 05:49:32 am

Title: Error: Cannot create write file
Post by: angelic_angel88 on September 18, 2006, 05:49:32 am
Problem: I usually upload my files via HTTP and never had a problem. But lately I've been getting an error message. I occasionally get a similar message when uploading the other way as well, but not all the time. 

Test User Account:
Username: Testie
Password: testuserpass

I can't seem to set the account to allow the test user to upload files though. So I hope you can help with that as well. When logged in as Testie I keep getting this error message: Sorry there is no album where you are allowed to upload files

File: /home/fans/public_html/kellyclarkson/gallery/upload.php - Line: 874


Here's the debug info for that too:

USER:
------------------
Array
(
    [ID] => 456ae8fa272a18b940930841e4e08d40
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [user_id] => 4
    [user_name] => Testie
    [groups] => Array
        (
           
        )

    [disk_max] => 1024
    [disk_min] => 1024
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 0
    [ufc_min] => 0
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 0
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 0
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [group_name] => Members
    [upload_form_config] => 0
    [group_quota] => 1024
    [can_see_all_albums] => 0
    [group_id] => 5
)

==========================
Queries:
------------------
Array
(
    Gallery Link: http://kellyclarkson.fanstogether.com/gallery/

Error Message (when uploading via HTTP): File Name/URL   Error Message
1. http://www.kellysource.org/gallery/albums/uploads/appearances/navy/04.jpg   Cannot create write file.

Debug Info: USER:
------------------
Array
(
    [ID] => 456ae8fa272a18b940930841e4e08d40
    [am] => 1
    [lang] => english
    [liv] => Array
        (
            [user_id] => 1
    [user_name] => angelic
    [groups] => Array
        (
           
        )

    [disk_max] => 1024
    [disk_min] => 1024
    [can_rate_pictures] => 1
    [can_send_ecards] => 1
    [ufc_max] => 3
    [ufc_min] => 3
    [custom_user_upload] => 0
    [num_file_upload] => 1
    [num_URI_upload] => 1
    [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] => 1024
    [can_see_all_albums] => 1
    [group_id] => 1
)

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

    [control] => phase_1
)

==========================
VERSION INFO :
------------------
PHP version: 4.4.2 - OK
------------------
mySQL version: 4.1.21-standard
------------------
Coppermine version: 1.4.8(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 4.1.21
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.2.2.2
Linked Version 1.2.2.2
==========================
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 | /home/fans/:/usr/lib/php:/usr/local/lib/php:/tmp | 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 | 60 | 60
upload_max_filesize | 2M | 2M
post_max_size | 8M | 8M
==========================
Page generated in 0.204 seconds - 17 queries in 0.013 seconds - Album set : ; Meta set: ;

Thanks in advance guys! I really appreciate any help you can give me!
Title: Re: Error: Cannot create write file
Post by: Joachim Müller on September 18, 2006, 08:40:01 am
In the future, please don't post debug_output unless requested.

The error message I get is
Quote
Failed to create directory albums/userpics/10004 !

File: /home/fans/public_html/kellyclarkson/gallery/db_input.php - Line: 318
Solution: set permissions on the albums folder and everything within it as suggested in the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#permissions).
Title: Re: Error: Cannot create write file
Post by: angelic_angel88 on September 19, 2006, 04:38:14 am
Oh I'm so sorry. I had no idea.

That seemed to do the trick. Thank you very much for your help!