No file was uploaded ! File: /coppermine/db_input.php - Line: 222 No file was uploaded ! File: /coppermine/db_input.php - Line: 222
 

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

No file was uploaded ! File: /coppermine/db_input.php - Line: 222

Started by febwa1976, October 03, 2005, 03:01:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

febwa1976

Hope you can help installation was easy but I have one problem.

I am on Yahoo Webhosting. I cannot upload files however I have been able to add pics through the URL option. I also use ftp on a regular basis. Folder Albums and sub directories are CHMOD to 777. I also have a tmp and a temp directory. phpinfo refers to /tmp so I assume this is OK?

When I run phpinfo.php all parameters are correct according to the FAQ here except max_input_time is -1 (is this important?)

Here is the complete error message

"No file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: /coppermine/db_input.php - Line: 222 "

Here is the debug info for user "tester"

USER:
------------------
Array
(
    [ID] => ab67498870fff9ee6ae6a8eda1123bb8
    [am] => 1
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 6
    [user_group] => 2
    [user_active] => YES
    [user_name] => tester
    [user_password] => ********
    [user_lastvisit] => 2005-10-03 04:49:26
    [user_regdate] => 2005-10-03 04:19:45
    [user_group_list] =>
    [user_email] => tester@mysite.com
    [user_website] =>
    [user_location] =>
    [user_interests] =>
    [user_occupation] =>
    [user_actkey] =>
    [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] => 5
    [num_URI_upload] => 3
    [can_post_comments] => 1
    [can_upload_pictures] => 1
    [can_create_albums] => 1
    [has_admin_access] => 0
    [pub_upl_need_approval] => 1
    [priv_upl_need_approval] => 0
    [group_name] => Registered
    [upload_form_config] => 0
    [group_quota] => 1024
    [can_see_all_albums] => 0
    [group_id] => 2
    [groups] => Array
        (
            [1] => 2
        )

)

==========================
Queries:
------------------
Array
(
   
  • => SELECT extension, mime, content FROM cpg135_filetypes;
        [1] => SELECT * FROM cpg135_users WHERE user_id='6'AND user_active = 'YES' AND user_password != '' AND BINARY MD5(user_password) = 'f5d1278e8109edd94e1e4197e04873b9'
        [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 cpg135_usergroups WHERE group_id in (2)
        [3] => SELECT group_name FROM  cpg135_usergroups WHERE group_id= 2
        [4] => DELETE FROM cpg135_banned WHERE expiry < '2005-10-03 11:50:17'
        [5] => SELECT * FROM cpg135_banned WHERE ip_addr='85.168.238.87' OR ip_addr='85.168.238.87' OR user_id=6
        [6] => SELECT aid FROM cpg135_albums WHERE visibility != '0' AND visibility !='10006' AND visibility NOT IN (2)
        [7] => SELECT category FROM cpg135_albums WHERE aid='5' and (uploads = 'YES' OR category = '10006')
    )

    ==========================
    GET :
    ------------------
    Array
    (
    )

    ==========================
    POST :
    ------------------
    Array
    (
        [album] => 5
        [MAX_FILE_SIZE] => 1048576
        [title] => heatsink
        [caption] => heatsink
        [keywords] => heatsink
        [event] => picture
    )

    ==========================
    Page generated in 0.074 seconds - 8 queries in 0.007 seconds - Album set :


    Many thanks!


febwa1976

Thanks I have read that. I also read this http://forum.coppermine-gallery.net/index.php?topic=22299.0 which indicates that Yahoo Webhosting works OK?

my site is at sibaya . com/coppermine and I have set up a test user tester with password tester if anyone can help

kegobeer

max_input_time is normally set to 60 seconds.  I've seen one post on a different forum that suggests -1 means unlimited, but I can't find anything official.  It won't hurt to ask your host to change it from -1 to 60.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

artistsinhawaii

Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

febwa1976

It works!
Thanks "kegobeer" - I have asked yahoo but no response yet, and thanks "madeinhawaii" I followed the link you gave, deleted my installation, reinstalled according to the link instructions and it worked. I think one of the main issues was that I changed the /tmp directory to CHMOD 777 with filezilla and when I checked back it had changed back to 775. I deleted this directory and then created it again and now it stays at 777. Great forum!