My upload.php is not working. i have searched the forums and tried several suggestions including
http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
But still the upload.php file gives and error Resource cannot be displayed.
Here is the debug info
USER:
------------------
Array
(
[ID] => b68178990016cb7025c93e0bf5f71375
[am] => 0
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => mymediam
[user_password] => ********
[user_lastvisit] => 2005-09-14 04:14:07
[user_regdate] => 2005-09-14 03:38:17
[user_group_list] =>
[user_email] =>
[user_website] => http://www.mymediamemories.com
[user_location] =>
[user_interests] =>
[user_occupation] =>
[user_actkey] =>
[disk_max] => 99999
[disk_min] => 99999
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 0
[ufc_min] => 0
[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] => 0
[group_quota] => 99999
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => SELECT extension, mime, content FROM cpg134_filetypes;
[1] => SELECT * FROM cpg134_users WHERE user_id='1'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = '19682d7e4c53b0219cb8cb33dd673c23'
[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 cpg134_usergroups WHERE group_id in (1)
[3] => SELECT group_name FROM cpg134_usergroups WHERE group_id= 1
[4] => DELETE FROM cpg134_banned WHERE expiry < '2005-09-14 18:48:59'
[5] => SELECT * FROM cpg134_banned WHERE ip_addr='67.177.198.23' OR ip_addr='67.177.198.23' OR user_id=1
[6] => SELECT cid, name, description, thumb FROM cpg134_categories WHERE parent = '' ORDER BY pos
[7] => SELECT aid FROM cpg134_albums as a WHERE category>=10000
[8] => SELECT count(*) FROM cpg134_pictures as p, cpg134_albums as a WHERE p.aid = a.aid AND category >= 10000
[9] => SELECT cid, name, description, thumb FROM cpg134_categories WHERE parent = '1' ORDER BY pos
[10] => SELECT aid FROM cpg134_albums as a WHERE category = '0'
[11] => SELECT count(*) FROM cpg134_albums as a WHERE 1
[12] => SELECT count(*) FROM cpg134_pictures as p LEFT JOIN cpg134_albums as a ON a.aid=p.aid WHERE 1
[13] => SELECT count(*) FROM cpg134_comments as c LEFT JOIN cpg134_pictures as p ON c.pid=p.pid LEFT JOIN cpg134_albums as a ON a.aid=p.aid WHERE 1
[14] => SELECT count(*) FROM cpg134_categories WHERE 1
[15] => SELECT sum(hits) FROM cpg134_pictures as p LEFT JOIN cpg134_albums as a ON p.aid=a.aid WHERE 1
[16] => SELECT count(*) FROM cpg134_albums as a WHERE category = '0'
[17] => SELECT COUNT(*) from cpg134_pictures WHERE approved = 'YES'
[18] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid, aid FROM cpg134_pictures WHERE approved = 'YES' ORDER BY RAND() LIMIT 8
[19] => SELECT COUNT(*) from cpg134_pictures WHERE approved = 'YES'
[20] => SELECT pid, filepath, filename, url_prefix, filesize, pwidth, pheight, ctime, aid,title, caption, owner_id, owner_name, aid FROM cpg134_pictures WHERE approved = 'YES' ORDER BY pid DESC LIMIT 0 ,8
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
)
==========================
Page generated in 0.079 seconds - 21 queries in 0.005 seconds - Album set :
** END CODE **
I'm not sure what else to try,
Gallery URL (http://mymediamemories.com/galleries)
username: test
password testuser
Thanks!
Please seek support from your host, this is a server related issue.
thanks they were able to fix that issue.
Now the upload page works but I cannot upload a file I get the error
unable to create directory,
Any thoughts would be appreciated
meanwhile I'll keep trying
Set 755 or 777 permissions on the userpics folder. If still no luck, try silly_safe_mode.
I tried that and still no luck. This time I noticed in the error string that it
has the URL to the directory twice? Is that usual? I'm not sure where to
fix that if it's the problem.
thanx again
What do you have set in config for albums and userpics directories ? Those should be simple folder names.
I'm using the defaults
/galleries/albums
/galleries/albums/userpics
I'm not sure what else to change? The error I get is
File: /home/mymediam/mymediam-www/galleries/db_input.php - Line: 229
thanks
what's the actual error message?
This is copy & pasted after trying to upload a file
Failed to create directory http://www.mymediamemories.com/galleries/albums/http://www.mymediamemories.com/galleries/albums/userpics/10001 !
File: /home/mymediam/mymediam-www/galleries/db_input.php - Line: 229
thanks
in coppermine's config, you mustn't set absolute paths for the albums and userpics folder. Set them back to default unless you really, really know what you're doing. Leading slash means absolute path!
QuoteThe album directory: "albums/"
The directory for user files: "userpics/"
You rock, that worked!
Thanks for all the help here