Hi all!
I run CopperMine 1.3 on my own computer, at localhost, under apache2triad. The program works just fine, until this morning. I uploaded a bunch of pictures yesterday, worked just fine. A friend of mine registered and uploaded a few pictures yesterday. That too went just fine.
But now this morning, neither he or I can upload any picture at all? CM simply says "Cannot move file" when you klick the "Submit" button (after selecting one or more pictures in the add file dialog box).
Do anyone of you have an idea what I should start looking for? I restarted the machine, but it did not help. I have about 35 GB left on the hard disk that runs the server and CM.
Turn the debug mode on from the config and look for helpful hints
This is my debug file - can't really see what could be wrong? ???
USER:
------------------
Array
(
[ID] => 2827377eddb68f754fbaa879daaf0515
[am] => 1
[liv] => Array
(
- => 172
[1] => 177
[2] => 176
[3] => 175
[4] => 174
)
[lang] => swedish
[theme] => classic
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => nicke
[user_password] => ********
[user_lastvisit] => 2004-07-29 14:38:55
[user_regdate] => 2004-07-05 10:21:22
[user_group_list] =>
[user_email] =>
[user_website] => http://wikman.minidns.net/galleri
[user_location] => Täby
[user_interests] => Datorer, böcker, motion
[user_occupation] => Egen företagare
[user_actkey] =>
[disk_max] => 0
[disk_min] => 0
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 1
[ufc_min] => 1
[custom_user_upload] => 0
[num_file_upload] => 10
[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] => 1
[group_quota] => 0
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg130_filetypes;
[1] => SELECT * FROM cpg130_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'a23964adb2cf4dc7dbcc392a019db4f8'
[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 cpg130_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg130_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg130_banned WHERE expiry < 1091104759
[5] => SELECT * FROM cpg130_banned WHERE ip_addr='127.0.0.1' OR ip_addr='127.0.0.1' OR user_id=1
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[control] => phase_1
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.6 - OK
------------------
mySQL version: 4.0.18-nt-log
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.22 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 0
Active Links 1
Client API version 3.23.49
==========================
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 | .;d:\apache2triad\php;d:\apache2triad\php\smarty;d:\apache2triad\php\pear;d:\apache2triad\php\pear\pear | .;d:\apache2triad\php;d:\apache2triad\php\smarty;d:\apache2triad\php\pear;d:\apache2triad\php\pear\pear
open_basedir | no value | no value
==========================
email
------------------
Directive | Local Value | Master Value
sendmail_from | admin@localhost | admin@localhost
sendmail_path | no value | no value
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.184 seconds - 6 queries in 0.007 seconds - Album set :
Just to make sure, I changed permissions on "albums" and "include" to both 755 and 777, but still the same error.
Hi,
first check that you have a folder called 'edit', inside the the albums folder. There have been instances of this folder disappearing. If not there, create it, and set the chmod to the same as the albums folder.
Note, now your install is up and running, you can set the include folder back to default, as coppermine no longer needs to write to it.
YES! Now everything's working again. Just to be sure, what are the default permissions on albums (and its subfolders)? Is 775 or 777 OK, or should I use any other?
depends on your server setup. On some servers, it's 755, on some it's 777. Whatever works for you if fine. In fact the coppermine script needs write access, it all depends under which user the sript runs under, and what CHMOD settings your webhost allows you to set. If it works for you right now, don't change it.
GauGau
Quote from: Casper on July 29, 2004, 07:54:40 PM
first check that you have a folder called 'edit', inside the the albums folder. There have been instances of this folder disappearing. If not there, create it, and set the chmod to the same as the albums folder.
Any idea as to why this folder disappears? I'm experiencing this problem.
Is this issue to be fixed in version 1.4 which I understand will be out soon?