Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2   Go Down

Author Topic: Re: No file was uploaded.  (Read 21288 times)

0 Members and 1 Guest are viewing this topic.

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« on: March 15, 2005, 07:32:08 am »

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. 
« Last Edit: March 15, 2005, 07:49:02 am by eureka345 »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No file was uploaded.
« Reply #1 on: March 15, 2005, 08:24:38 am »

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
Logged

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #2 on: March 15, 2005, 05:38:11 pm »

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 :
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No file was uploaded.
« Reply #3 on: March 15, 2005, 10:52:01 pm »

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
Logged

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #4 on: March 15, 2005, 11:20:54 pm »

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. 
« Last Edit: March 15, 2005, 11:29:44 pm by eureka345 »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No file was uploaded.
« Reply #5 on: March 15, 2005, 11:33:20 pm »

does your server allow file uploads then?

Joachim
Logged

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #6 on: March 15, 2005, 11:49:07 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No file was uploaded.
« Reply #7 on: March 15, 2005, 11:53:28 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
Logged

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #8 on: March 15, 2005, 11:57:39 pm »

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

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #9 on: March 16, 2005, 12:04:02 am »

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

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Re: No file was uploaded.
« Reply #10 on: March 16, 2005, 12:04:37 am »

Logged

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #11 on: March 16, 2005, 12:06:46 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No file was uploaded.
« Reply #12 on: March 16, 2005, 12:09:33 am »

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

Joachim
Logged

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #13 on: March 16, 2005, 12:14:08 am »

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

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #14 on: March 18, 2005, 05:52:58 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No file was uploaded.
« Reply #15 on: March 18, 2005, 10:40:46 am »

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

Joachim
Logged

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #16 on: March 18, 2005, 10:41:18 pm »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: No file was uploaded.
« Reply #17 on: March 19, 2005, 07:59:27 am »

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

Joachim
Logged

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #18 on: March 19, 2005, 11:35:11 pm »

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

eureka345

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: No file was uploaded.
« Reply #19 on: March 20, 2005, 02:01:01 am »

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
Logged
Pages: [1] 2   Go Up
 

Page created in 0.026 seconds with 19 queries.