TinyPortal

Development => Support => Older SMF versions => Topic started by: metal13 on October 08, 2006, 02:27:45 AM

Title: [PAID] uploading attachments error
Post by: metal13 on October 08, 2006, 02:27:45 AM
im geting this error everytime i upload attachments, but sometime works... heres a screen shot or the error..
http://pinoytambay.net/error.png

i tried replacing all the smf and tp files but still desame error... what should i do?
help please..
:( :( :(







Title: Re: ERROR: uploading attachments
Post by: G6Cad on October 08, 2006, 09:47:09 AM
Have you checked so the permissions to the files are set correct ?
Title: Re: ERROR: uploading attachments
Post by: metal13 on October 08, 2006, 10:30:34 AM
which files should i check? and what permission should i put? my 'attachmet' folder is in 777 CHMOD...



Title: Re: ERROR: uploading attachments
Post by: G6Cad on October 08, 2006, 10:51:50 AM
That should be correct and correct folder.

Im not sure whats going on there, but as you get the error with server configuration, it might be a good idea to contact the host and ask them to see why you get that server missconfiguration error, im not so sure it is something wrong with your SMF files. If you cant get them to help you, try and seek help on SMF as the attachments are their support part and not TPs :)
Title: Re: ERROR: uploading attachments
Post by: metal13 on October 10, 2006, 03:20:15 AM
ask help on smf?..hmm.. its going to take years before i get a reply on smf...i tried asking for help before but  did not get any single reply from anyone...
hmm how bout if if i give away 40 to 60$ paypal to anyone who could fix this??  :)

i tried to contact my host but they said, they dont do smf....
hmm... Mrs G6??  :)  anyone?  please??





Title: Re: [PAID] uploading attachments error
Post by: G6Cad on October 10, 2006, 07:18:34 AM
Quotei tried to contact my host but they said, they dont do smf....

They dont do SMF ?? , how about asking them if they do server configuration so the software works then.
I dont think it's eather SMF OR Tp issues, i think it's your php server configuration that needs to be fixed, and if you dont have access to the php.ini file it will be mighty difficult for any one exept your host to fix it for you  :-\
Title: Re: [PAID] uploading attachments error
Post by: Lesmond on October 10, 2006, 11:29:13 AM
try this... open notepad in there type =

memory_limit = 16M

then save that as php.ini upload it to your forum root folder

You should replace the '16' with whatever value is appropriate.
Title: Re: [PAID] uploading attachments error
Post by: metal13 on October 10, 2006, 03:40:18 PM
hmm ok, ill ask them that....
thanks
Title: Re: [PAID] uploading attachments error
Post by: metal13 on October 10, 2006, 06:01:19 PM
i found the php.ini back up and these codes??? hmm..
whats the meaning of these codes?:-\
register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12




Now, every time i upload files more than 4 mb this error comes out...
Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information.



so which of those codes should i edit? and what to put? is it the "max_input_time = 60"
im going to set the attachment upload limit to 15mb, what should i edit?

thanks for the replies.. :)



Title: Re: [PAID] uploading attachments error
Post by: alan s on October 10, 2006, 06:14:14 PM
register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 60
variables_order = "EGPCS"
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12

Max input time is the amount of time that is allowed to be spent uploading a file i believe.


Just to check something go to Admin ->Attachment Manager
and paste the

Total Attachments:   *
Total Avatars:   *
Total Size of Attachment Directory:   *
Total Space Available in Attachment Directory:   *

Bit of it.
Title: Re: [PAID] uploading attachments error
Post by: IchBin on October 10, 2006, 09:04:14 PM
max_input_time I believe is the time a script is allowed for script execution. If the script can't be executed it will time out. But if it is executed it will fall to the memory setting in PHP. You either need to add the max_upload line to your file or ask your host to add it for you to allow for bigger uploads.
Title: Re: [PAID] uploading attachments error
Post by: Names all Gone on October 10, 2006, 10:22:41 PM
you could also just try adding

php_value memory_limit 15M

to your htaccess
Title: Re: [PAID] uploading attachments error
Post by: metal13 on October 11, 2006, 12:19:20 PM
Quote from: Alan S on October 10, 2006, 06:14:14 PM
Just to check something go to Admin ->Attachment Manager
and paste the

Total Attachments:   *
Total Avatars:   *
Total Size of Attachment Directory:   *
Total Space Available in Attachment Directory:   *

Bit of it.

Here::
File Attachment Statistics
Total Attachments:   24853
Total Avatars:   333
Total Size of Attachment Directory:   16145603.41 KB
Total Space Available in Attachment Directory:   2131338043.59 KB

Title: Re: [PAID] uploading attachments error
Post by: alan s on October 11, 2006, 02:36:11 PM
Well your fine on space anyway ( though according to my calculations you have 1.5gb of files and a total of 2.5 gb available )



Quote from: Nag on October 10, 2006, 10:22:41 PM
you could also just try adding

php_value memory_limit 15M

to your htaccess

Try doing what nag says , who knows maybe it will work.