callerpatty Posted January 21, 2015 Share Posted January 21, 2015 Stumped! I have a client who has a form where they upload files to their server: title, two password fields, and the file They have been unable to upload anything over 10m Small (under 10mb) files work. Larger doesn’t I’ve tracked it down, I think, that the processing page appears to be dropping the form values when the file takes a bit to upload. I echo’ed the values that are grabbed from the form, and they return empty strings if it takes a while for the file to upload (a large file) - they pass fine if the file is smaller. I think I've got the php info set correctly, but cannot for the life of me figure out how to adjust the timing out issue, or even where to troubleshoot. Here's my phpinfo: Max Requests Per Child: 750 - Keep Alive: off - Max Per Connection: 100 Timeouts Connection: 120 - Keep-Alive: 5 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 Off Off 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 /etc/browscap.ini /etc/browscap.ini 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 leak,posix_getpwuid,posix_getpwnam,posix_getgrid,posix_getgrnam,posix_getgroups leak,posix_getpwuid,posix_getpwnam,posix_getgrid,posix_getgrnam,posix_getgroups display_errors Off 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 Off Off error_append_string no value no value error_log /mnt/Target01/337846/945285/www.dermerrealestate.com/logs/php_errors.log no value error_prepend_string no value no value error_reporting 30711 30711 exit_on_timeout Off Off expose_php Off Off extension_dir /usr/lib64/php/modules /usr/lib64/php/modules file_uploads On On highlight.bg #FFFFFF #FFFFFF highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .:/usr/share/pear:/usr/share/php .:/usr/share/pear:/usr/share/php log_errors On On log_errors_max_len 1024 1024 magic_quotes_gpc On On magic_quotes_runtime Off Off magic_quotes_sybase Off Off mail.add_x_header On On mail.force_extra_parameters no value no value mail.log no value no value max_execution_time 30 30 max_file_uploads 20 20 max_input_nesting_level 64 64 max_input_time 60 60 max_input_vars 1000 1000 memory_limit 128M 128M open_basedir no value no value output_buffering no value no value output_handler no value no value post_max_size 8M 8M precision 14 14 realpath_cache_size 4M 4M realpath_cache_ttl 120 120 register_argc_argv On On register_globals Off Off register_long_arrays On On report_memleaks On On report_zend_debug On On request_order no value no value safe_mode Off Off safe_mode_exec_dir no value no value safe_mode_gid Off Off 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 8M 8M upload_tmp_dir /tmp /tmp user_dir no value no value user_ini.cache_ttl 300 300 user_ini.filename .user.ini .user.ini variables_order EGPCS EGPCS xmlrpc_error_number 0 0 xmlrpc_errors Off Off y2k_compliance On On zend.enable_gc On On Quote Link to comment https://forums.phpfreaks.com/topic/294106-form-form-field-content-dropped-with-larger-file-uploads/ Share on other sites More sharing options...
callerpatty Posted January 21, 2015 Author Share Posted January 21, 2015 sorry about the wacked phpinfo line items. Quote Link to comment https://forums.phpfreaks.com/topic/294106-form-form-field-content-dropped-with-larger-file-uploads/#findComment-1503652 Share on other sites More sharing options...
callerpatty Posted January 21, 2015 Author Share Posted January 21, 2015 maybe this will be better: Directive Local Value Master Valueallow_call_time_pass_reference Off Offallow_url_fopen On Onallow_url_include Off Offalways_populate_raw_post_data Off Offarg_separator.input & &arg_separator.output & &asp_tags Off Offauto_append_file no value no valueauto_globals_jit On Onauto_prepend_file no value no valuebrowscap /etc/browscap.ini /etc/browscap.inidefault_charset no value no valuedefault_mimetype text/html text/htmldefine_syslog_variables Off Offdisable_classes no value no valuedisable_functions leak,posix_getpwuid,posix_getpwnam,posix_getgrid,posix_getgrnam,posix_getgroups leak,posix_getpwuid,posix_getpwnam,posix_getgrid,posix_getgrnam,posix_getgroupsdisplay_errors Off Offdisplay_startup_errors Off Offdoc_root no value no valuedocref_ext no value no valuedocref_root no value no valueenable_dl Off Offerror_append_string no value no valueerror_prepend_string no value no valueerror_reporting 30711 30711exit_on_timeout Off Offexpose_php Off Offextension_dir /usr/lib64/php/modules /usr/lib64/php/modulesfile_uploads On Onhighlight.bg #FFFFFF #FFFFFFhighlight.comment #FF8000 #FF8000highlight.default #0000BB #0000BBhighlight.html #000000 #000000highlight.keyword #007700 #007700highlight.string #DD0000 #DD0000html_errors On Onignore_repeated_errors Off Offignore_repeated_source Off Offignore_user_abort Off Offimplicit_flush Off Offinclude_path .:/usr/share/pear:/usr/share/php .:/usr/share/pear:/usr/share/phplog_errors On Onlog_errors_max_len 1024 1024magic_quotes_gpc On Onmagic_quotes_runtime Off Offmagic_quotes_sybase Off Offmail.add_x_header On Onmail.force_extra_parameters no value no valuemail.log no value no valuemax_execution_time 30 30max_file_uploads 20 20max_input_nesting_level 64 64max_input_time 60 60max_input_vars 1000 1000memory_limit 128M 128Mopen_basedir no value no valueoutput_buffering no value no valueoutput_handler no value no valuepost_max_size 8M 8Mprecision 14 14realpath_cache_size 4M 4Mrealpath_cache_ttl 120 120register_argc_argv On Onregister_globals Off Offregister_long_arrays On Onreport_memleaks On Onreport_zend_debug On Onrequest_order no value no valuesafe_mode Off Offsafe_mode_exec_dir no value no valuesafe_mode_gid Off Offsafe_mode_include_dir no value no valuesendmail_from no value no valuesendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -iserialize_precision 100 100short_open_tag On OnSMTP localhost localhostsmtp_port 25 25sql.safe_mode Off Offtrack_errors Off Offunserialize_callback_func no value no valueupload_max_filesize 8M 8Mupload_tmp_dir /tmp /tmpuser_dir no value no valueuser_ini.cache_ttl 300 300user_ini.filename .user.ini .user.inivariables_order EGPCS EGPCSxmlrpc_error_number 0 0xmlrpc_errors Off Offy2k_compliance On Onzend.enable_gc On On Quote Link to comment https://forums.phpfreaks.com/topic/294106-form-form-field-content-dropped-with-larger-file-uploads/#findComment-1503653 Share on other sites More sharing options...
CroNiX Posted January 21, 2015 Share Posted January 21, 2015 (edited) In php.ini, see where it says "max_upload_size = 8M"? There are other settings you might need to tweak as well, such as: max_input_time (might need to be larger as it takes longer to upload the file depending on users connection/upload speed)max_execution_time (same as above)upload_max_filesizepost_max_size Edited January 21, 2015 by CroNiX Quote Link to comment https://forums.phpfreaks.com/topic/294106-form-form-field-content-dropped-with-larger-file-uploads/#findComment-1503654 Share on other sites More sharing options...
CroNiX Posted January 21, 2015 Share Posted January 21, 2015 It also appears you have "8M" entered 2x for that setting. Should be just once. Quote Link to comment https://forums.phpfreaks.com/topic/294106-form-form-field-content-dropped-with-larger-file-uploads/#findComment-1503655 Share on other sites More sharing options...
callerpatty Posted January 21, 2015 Author Share Posted January 21, 2015 Doh! the settings don't seem to be being picked up. I had those all adjusted. I will go back to the drawing board. I have spent way too much time looking at this code. THANKS Quote Link to comment https://forums.phpfreaks.com/topic/294106-form-form-field-content-dropped-with-larger-file-uploads/#findComment-1503656 Share on other sites More sharing options...
CroNiX Posted January 21, 2015 Share Posted January 21, 2015 Be sure to reboot Apache after you make changes. Quote Link to comment https://forums.phpfreaks.com/topic/294106-form-form-field-content-dropped-with-larger-file-uploads/#findComment-1503657 Share on other sites More sharing options...
callerpatty Posted January 21, 2015 Author Share Posted January 21, 2015 Good old hosting company. My quirk is no longer there. Onto the next quirk! Thanks for being another eye for this tired old lady!!!!! Quote Link to comment https://forums.phpfreaks.com/topic/294106-form-form-field-content-dropped-with-larger-file-uploads/#findComment-1503658 Share on other sites More sharing options...
mac_gyver Posted January 22, 2015 Share Posted January 22, 2015 even if you change the settings, your code must ALWAYS test if the upload worked without any errors before trying to use the uploaded file information. Quote Link to comment https://forums.phpfreaks.com/topic/294106-form-form-field-content-dropped-with-larger-file-uploads/#findComment-1503785 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.