Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2009, 11:18 PM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Upload Problem

Ive been uploading attachments today without a problem (all under 1MB) however for the past hour ive been trying to upload 1 file that is just under 4MB but it wont upload

Why is that?
Reply With Quote
  #2  
Old 01-22-2009, 11:46 PM
srkrocks srkrocks is offline
 
Join Date: Jun 2008
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does it give you any error? and have you altered the upload size allowed by your script at admin panel?
Reply With Quote
  #3  
Old 01-23-2009, 12:02 AM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

obviously it needs to be altered in the admin panel - which ive already done.

when i goto post & click manage attachments, i can upload anything upto 2mb, anything above that.......... it just returns to the manage attachments page, doesnt give an error
Reply With Quote
  #4  
Old 01-23-2009, 12:06 AM
srkrocks srkrocks is offline
 
Join Date: Jun 2008
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok go to your forum root or your website root via cpanel and open a file called php.ini and insert the following in it

Quote:
memory_limit=16M
then save it and try uploading files now and let me know if its ok!

regards
Reply With Quote
  #5  
Old 01-23-2009, 12:15 AM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my php.ini has the following code:

Code:
php_flag suhosin.cookie.encrypt = Off
php_value suhosin.request.max_vars = 2048
php_value suhosin.post.max_vars = 2048
where about do i put that memory limit?
Reply With Quote
  #6  
Old 01-23-2009, 12:16 AM
srkrocks srkrocks is offline
 
Join Date: Jun 2008
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

add the code I gave underneath it!
Reply With Quote
  #7  
Old 01-23-2009, 12:30 AM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

done that, still the same
Reply With Quote
  #8  
Old 01-23-2009, 12:48 AM
srkrocks srkrocks is offline
 
Join Date: Jun 2008
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

change your post max value in php.ini to whatever size you need it represented in bytes.. change it 5000 or something like that of your choice and upload and get back once again!

Quote:
php_flag suhosin.cookie.encrypt = Off
php_value suhosin.request.max_vars = 5120
php_value suhosin.post.max_vars = 5120
this is for 5 MB

regards

This should do the trick or you will need to open

My.ini and

add this

set-variable = max_allowed_packet=xM

x represents the MB file size

regards
Reply With Quote
  #9  
Old 01-23-2009, 12:56 AM
dmknights dmknights is offline
 
Join Date: Jul 2007
Location: UK
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ive tried editing the php.ini with those numbers, still doesnt work.

my.ini? where would i find that?
Reply With Quote
  #10  
Old 01-23-2009, 01:23 AM
srkrocks srkrocks is offline
 
Join Date: Jun 2008
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dmknights View Post
ive tried editing the php.ini with those numbers, still doesnt work.

my.ini? where would i find that?
mm this thing seems to be tricky!

add this line to php.ini

Quote:
upload_max_filesize = 5M
if it still doesn't work.. let me know let me do some research on this issue!

regards

--------------- Added [DATE]1232681300[/DATE] at [TIME]1232681300[/TIME] ---------------

if it still does not work

add this line to your .htaccess
Quote:
php_value upload_max_filesize 5M
php_value post_max_size 5M
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07844 seconds
  • Memory Usage 2,252KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete