Re: No file was uploaded. Re: No file was uploaded.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Re: No file was uploaded.

Started by eureka345, March 15, 2005, 07:32:08 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

eureka345

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. 

Joachim Müller

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

eureka345

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 :

Joachim Müller

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

eureka345

#4
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. 

Joachim Müller

does your server allow file uploads then?

Joachim

eureka345

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.

Joachim Müller

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

eureka345

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.

eureka345

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....

Tranz


eureka345

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.

Joachim Müller

You're meant to re-chmod as suggested in the install section of the docs, we didn't suggest to re-install.

Joachim

eureka345

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.

eureka345

I take the lack of response to mean that there is no solution to this??? 

Joachim Müller

I'm out of this thread: if you don't do what I suggest, you probably won't need my advice.

Joachim

eureka345

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  ???

Joachim Müller

don't check CHMOD settings, as the CHMOD properties might be displayed wrong in your ftp app, but re-apply CHMOD.

Joachim

eureka345

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?

eureka345

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