Help with upload error Help with upload error
 

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

Help with upload error

Started by kkindopp, May 21, 2008, 03:22:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kkindopp

Hello,

I have looked through the upoad error posts and am still having no luck.

Can someone login to my site and see if they can tell me what the problem might be.

http://ubecrew.com/photos/index.php

Username  test user
pass   test28*

Thank you in advance.

Joachim Müller


kkindopp

Thanks for the reply, but it doesn't work under my users, I get a Blank white screen with the following URL

http://ubecrew.com/photos/db_input.php

and there is no picture uploaded.

kkindopp

It looks like you put a hyperlink up, I logged in under test user and got the same blank screen trying to upload a file.

Joachim Müller

Quote from: kkindopp on May 21, 2008, 09:00:22 AM
Thanks for the reply, but it doesn't work under my users, I get a Blank white screen with the following URL
Make sure that the file you test with has a reasonable file size - sounds like you're running into time-outs.

Quote from: kkindopp on May 21, 2008, 09:02:29 AM
It looks like you put a hyperlink up
Huh? I did what?

kkindopp

OK, I tried a very small file and it worked.  Strange because it worked fine for larger files before, anyway...

I tired a larger file and it said max upload size was 60000K, so I changed it to 300000.

Now I can't even upload a small file, I get this error.

No file was uploaded !

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

File: /home/hsphere/local/home/kskmaste/ubecrew.com/photos/db_input.php - Line: 311



Joachim Müller

It's not a bright idea to increase the max filesize setting in coppermine if your server is not able to handle large files in the first place; that's just whishfull thinking. 60 MB has already been a silly setting, 300 MB is utter nonsense. Please read up the corresponding sections of the docs and the sticky thread on this board to find out more about server-sided restrictions.

kkindopp

I read it wrong, since it uploaded a 200K file but woon't upload a 700K file I thought I was increasing it to 3mgs.

I have read everything in the posts, I have changed my php.ini file setting to allow for huge files and it doesn't work.

:(

Joachim Müller

What does your phpinfo output say? Do your php.ini changes stick?

kkindopp

Hello,

Yes my changes seem to stick.

Here is the PHP Config.

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off Off
allow_url_fopen On On
allow_url_include Off Off
always_populate_raw_post_data On On
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_globals_jit On On
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On Off
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log /hsphere/local/var/httpd/logs/php_error.log /hsphere/local/var/httpd/logs/php_error.log
error_prepend_string no value no value
error_reporting 6143 6135
expose_php On On
extension_dir /hsphere/shared/apache/libexec/php5ext/ /hsphere/shared/apache/libexec/php5ext/
file_uploads On On
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF9900 #FF9900
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors Off Off
ignore_repeated_errors Off Off
ignore_repeated_source Off Off
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/hsphere/shared/apache/libexec/php5ext/php/ .:/hsphere/shared/apache/libexec/php5ext/php/
log_errors Off On
log_errors_max_len 1024 1024
magic_quotes_gpc On On
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 480 480
max_input_nesting_level 64 64
max_input_time 480 480
memory_limit 24M 24M
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
realpath_cache_size 16K 16K
realpath_cache_ttl 120 120
register_argc_argv On On
register_globals On On
register_long_arrays On On
report_memleaks On On
report_zend_debug On On
safe_mode Off Off
safe_mode_exec_dir no value no value
safe_mode_gid On On
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 4M 4M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off

Joachim Müller

What's the file you're trying to upload that you're having issues with? If possible, attach it to your posting here. If not, upload it by FTP to your server and post a deep link to that file.

kkindopp

I am trying to upload a simple 62K jpg, I can't upload any files at all now.

Joachim Müller

Then do as I suggested:
Quote from: Joachim Müller on May 22, 2008, 10:13:12 AM
attach it to your posting here
Click "additional options" when composing your reply, click "browse", locate that file and upload it here.

kkindopp

Ok here is the jpg.

Joachim Müller

The test user account from your initial posting doesn't work any longer. Re-activate! Stop playing hide-and-seek and wasting our time.

kkindopp

I just logged in under test user  pass  test28*, and ya, I am really trying to waste your time and mine!

Joachim Müller

The error message I got with the image you posted is
QuoteNo file was uploaded !

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

File: /home/hsphere/local/home/kskmaste/ubecrew.com/photos/db_input.php - Line: 311
Uploading that file to my testbed works as expected, so the file itself should be OK.

There is an issue with your webserver's upload mechansim. Possible reasons:
There may be several reasons for this error message. The file you tried to upload did not "reach" the folder on the webserver where it is suppossed to go. If the server isn't yours to administer, you may have to ask your webhost for support. Here is what you should check:

  • test file "too large"
    If you encounter this error message in the first place, make sure that the file you test uploading with is not to large in terms of file size and dimensions. Test with a known-good, small file first. You are welcome to download one from the coppermine demo gallery and use that for testing purposes.
    This possible reasons seems not to apply to you
  • "file_uploads" enabled
    Go to your phpinfo page (available as admin menu item), search it for file_uploads and make sure that it is set to "on". If you are on shared webhosting, only your webhost can enable this for you.
  • "upload_tmp_dir" needs to be set
    On the phpinfo page, make sure that upload_tmp_dir needs to be set. If you are on shared webhosting, only your webhost can set this up for you. The script (i.e. the user the webserver runs under) needs to be allowed to write to that file.

kkindopp

Thank you, the first two are not an issue, I think your 3rd point may be the problem...

From phpinfo above...

upload_tmp_dir no value no value
user_dir no value no value

I won the server and can do whatever I need to in order to get this running, but I am not exactly sure what should be done, is there any specific info on what these should be set at?

Joachim Müller


kkindopp

I set the upload_dir to /tmp

Still no go.

I give!