I'm using Yahoo Business hosting and running into this problem. I tried to create the temp directory, as suggested - but it's not making any difference. Where exactly should I be creating this directory?
I'm pretty adept at computers, but don't know much about php and this has me stumped.
Edited to add a few more details.
My exact error is 0 uploads were successful. However, I receive no other error messages. This is a brand new installation. I'm also having problems getting my CHMODS to 'stick'.. I'll edit them to 777, but soon after they're back to 775.
split this thread from http://forum.coppermine-gallery.net/index.php?topic=5848.0
Enable debug_mode in coppermine config (with notices turned off), then set "method for uploading files" to "Single file uploads only" for all relevant groups ins the groups panel. This should give you a more detailed error message for troubleshooting. Posting a link and non-admin test user account might help as well.
Joachim
I have no clue if any of this is helpful - but here's what in debug mode when I try to upload. I have created a test account username: test pw: test and the site is www.meno-sand.net/albums
USER:
------------------
Array
(
[ID] => 2047e3ae03cfc75ef5b7b13f43956bb1
[am] => 1
)
==========================
USER DATA:
------------------
Array
(
[user_id] => 1
[user_group] => 1
[user_active] => YES
[user_name] => Erica
[user_password] => ********
[user_lastvisit] => 2005-03-14 21:48:24
[user_regdate] => 2005-03-14 21:47:50
[user_group_list] =>
[user_email] =>
[user_website] =>
[user_location] =>
[user_interests] =>
[user_occupation] =>
[user_actkey] =>
[disk_max] => 2147483647
[disk_min] => 2147483647
[can_rate_pictures] => 1
[can_send_ecards] => 1
[ufc_max] => 3
[ufc_min] => 3
[custom_user_upload] => 1
[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] => 3
[group_quota] => 2147483647
[can_see_all_albums] => 1
[group_id] => 1
[groups] => Array
(
[1] => 1
)
)
==========================
Queries:
------------------
Array
(
- => 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) = '96313e0bc3db1d42760bba95c62ffffb'
[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 < 1110904480
[5] => SELECT * FROM cpg132_banned WHERE ip_addr='66.203.188.141' OR ip_addr='66.203.188.141' OR user_id=1
)
==========================
GET :
------------------
Array
(
)
==========================
POST :
------------------
Array
(
[control] => phase_1
)
==========================
VERSION INFO :
------------------
PHP version: 4.3.6 - OK
------------------
mySQL version: 3.23.49
------------------
Coppermine version: 1.3.2
==========================
Module: gd
------------------
GD Support enabled
GD Version bundled (2.0.22 compatible)
FreeType Support enabled
FreeType Linkage with freetype
T1Lib Support enabled
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
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value
==========================
Module: zlib
------------------
ZLib Support enabled
Compiled Version 1.1.3
Linked Version 1.1.3
==========================
Server restrictions (safe mode)?
------------------
Directive | Local Value | Master Value
safe_mode | Off | Off
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
safe_mode_gid | Off | Off
safe_mode_include_dir | no value | no value
safe_mode_exec_dir | /usr/local/php/bin | /usr/local/php/bin
sql.safe_mode | Off | Off
disable_functions | leak, symlink | leak, symlink
file_uploads | On | On
include_path | .:/include:/usr/lib/php | .:/include:/usr/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 | 90 | 90
max_input_time | -1 | -1
upload_max_filesize | 10M | 10M
post_max_size | 10M | 10M
==========================
Page generated in 0.648 seconds - 6 queries in 0.011 seconds - Album set :
I was asking for error messages, not the debug_ouput. The test user account won't help unless you do what I suggested and turn debug_mode on for everyone and set the upload method to "Single file uploads only" in "groups" ::)!
Joachim
I told you I don't know a thing about PHP and I misunderstood your original message - I thought I gave you want you wanted, no need to roll your eyes at me.. not everyone is an expert! In any case, I do appreciate the help - things should be as you want them to be now.
This is the error msg it's giving me now: No file was uploaded !
If you have really selected a file to upload, check that the server allows file uploads...
File: /albums/db_input.php - Line: 221
I've searched the forum and read similar topics but I still don't know what I should do. Most of them suggest that it's a webhost problem - but I use web-based upload to my file manager all the time, so I am not so sure.
does your server allow file uploads then?
Joachim
I don't know. I told you that I upload files using a web based file manager all the time - but does that mean my server allows uploads? I don't know... that's why I am here. I am using Yahoo Business Hosting, as I already stated. How would I go about finding out whether or not it allows uploads? And if it doesn't, am I just screwed?
http://search1.cc.dcn.yahoo.com/cct_search.php?ui_mode=answer&prior_transaction_id=149627145&action_code=5&highlight_info=16784162,8,15&turl=http%3A%2F%2Fhelp.yahoo.com%2Fhelp%2Fus%2Fwebhosting%2Fphp%2Fphp-33.html&answer_id=19188595#__highlight is a list of supported PHP functions... but reading them still doesn't mean a thing to me.
Quote from: eureka345 on March 15, 2005, 11:49:07 PM
I told you that I upload files using a web based file manager all the time - but does that mean my server allows uploads?
yes
Try re-applying CHMOD as suggested in the install section of the docs.
Joachim
I see no install section in docs??? Not sure what you mean there.
Apparently I needed to name my temp directory tmp and not temp.. so I changed that, and now what is happening when I try to upload is that I press submit and then http://www.meno-sand.net/albums/db_input.php loads as a page.. and it's blank. Nothing else happens.
OK.. I got one tiny file to upload, but when I try to upload anything bigger I am getting the blank screen I mentioned above.
I guess it's progress....
Quote from: eureka345 on March 15, 2005, 11:57:39 PM
I see no install section in docs??? Not sure what you mean there.
http://coppermine.sourceforge.net/manual.php#installation
OK.. I thought you were saying to CHMOD the install section... now I see that you mean to CHMOD the sections album and include... done done and done.. a long time ago.
You're meant to re-chmod as suggested in the install section of the docs, we didn't suggest to re-install.
Joachim
I didn't say I was going to reinstall? Anyways.. enough about CHMODing.. it's not my problem.
I am able to upload files now, but I still get the same error message with some files, and other times I get the blank screen. Anything bigger than the smallest files I try to upload is doing this.
FYI - it's not a problem with max upload sizes in config.
I take the lack of response to mean that there is no solution to this???
I'm out of this thread: if you don't do what I suggest, you probably won't need my advice.
Joachim
I've done everything you've suggested!!!! The last thing you suggested to me was CHMODing... I did that a long time ago, and double and triple checked it... and since I've been able to upload small files, obviously it is not a CHMOD problem. So ???
don't check CHMOD settings, as the CHMOD properties might be displayed wrong in your ftp app, but re-apply CHMOD.
Joachim
Ok, maybe I should have been more specific.... I have RE APPLIED CHMOD multiple times. Still having the problem. Can you suggest something different, because obviously that's not it?
FYI, the gallery is now at http://www.meno-sand.net/gallery/ - I tried deleting all files from my server and my database, and re uploading, re installing (including all the CHMODing!), etc... still the exact same problem. Small files are uploading, but nothing bigger (approximately 1-2MB). I have increased maximum file size in config and done everything else I can think of to explain the problem. A friend who was trying to help me out got the following error:
Critical error Script called without the required parameter(s). File: /albums/db_input.php - Line: 41
If you can only upload small files, but not larger ones, your webhost has made some server-sided settings (that you can not override when webhosted and not having full admin privileges on the webserver). The settings that apply differ (there are several which have to be taken into account). Please read the sticky threads (yes, all of them) on this sub-board to find out more about server settings and what to do about it. In the end, you will have to contact your webhost for support or look for another webhost; this isn't something you could address simply by modifying coppermine settings. Imo it's unnecessary to upload such large files in the first place, all the files I have on my personal page have less then 100 kB. Pics with 1 MB or similar are just a waste of space, time and resources imo. I suggest you resize the pics on your client before uploading them.
Joachim
Alrighty.. thanks for your response. Yes, I've read the stickies (all of them!). According to my webhost, there is an upload limit of 8MB... of which my photos are definitely under. As for suggesting I resize all my images before uploading - that defeats the purpose of me using coppermine, which was to share full size images amoung friends so we can each print each other's images. I have 75GB of disk space on my host... so I wasn't worried about wasting resources. In any case, it looks like I give up. Something that I thought would save a lot of my time has turned out to be a waste of time... ah well... gotta love technology. Thanks for your help.
There are other settings that have to be taken into account: when uploading a larger image, coppermine has to resize the image (using the image library you specified, usually GD). This process temporarily eats up a lot of memory, which could be to much for your webserver's config. There's little we can do, as the resizing simply needs some overhead memory. You could ask your webhost politely to change those settings for you, or look for a webhost who grants you more memory (mind you, this is not webspace, but RAM).
Joachim
Im having the same problem as this guy was. I cant get anything to upload though. php.ini is good (its on and the max limit is high). I have chmoded and i know its good because i host it and i did it right into the console but JUST SO YOU KNOW:
drwxrwxrwx 4 andy www 512 Mar 26 14:38 albums
drwxrwxrwx 4 andy www 512 Mar 26 14:42 include
I got nothin'. HELP ME PLEASE :-P
Edit:
oh yeah in case you missed it when the other guy said it or something:
File: /htdocs/gallery2/db_input.php - Line: 221
I followed the steps in that thread that outlines all of the possible configuration things that could be wrong, too. I changed the LimitRequestBody thing like suggested and it still doesnt work.
Ive tried everything. This is sickening :(
Is nobody seeing this? Should i post a new thread? do you ust not kn ow what to do? lol so many questions...
If nobody replys to this im going to make a new thread please answer!
It's only been 4 hours since your post.
http://coppermine.sourceforge.net/faq.php#lamesupport
It's also a Saturday.
I was just making sure it was seen. I didnt want to wait forever if nobody was going to see it so i figured id ask.
There's a link you could check that shows new posts: http://forum.coppermine-gallery.net/index.php?action=unread
That's how new posts show up. That's how supporters know about them. We don't comb through the forums. A little inefficient.
Disregard the below. I missed page 2 of this post. Gau Gau gave the answer I am looking for in that I will need to contact Yahoo. I typically would not need to load a 1meg file, but I do wish to find out the max Yahoo allows.
I also have Yahoo. When I created a tmp folder I was able to load small files. But with larger files I get the following message: "2 uploads were successful.Please click 'Continue' to add the files to albums." However, when I click on Continue I get a blank screen. My upload size config is 5,000 (as an admin) and both pictures were under this size.
When I try 1 picture at 1 meg I get the blank screen as described above. If I shrink it to 58 kb it loads fine. On my web hosting file upload manager as long as the total upload does not exceed 5 mb they have no issues.
Any thoughts.
:-[