|
Fernando Gomez
Guest
|
 |
on: Apr 19, 08, 01:37 PM |
|
Attribute error when adding game (not uploading through FTP) with 2.5MB+ I have edited the php.ini file and have uploaded it to ROOT and CONTENT folder and i still get this error. How can i fix it? it has to do with the script not my server settings or anything.  I have 33 games i need to add and i cant!
|
|
|
|
« Last Edit: Apr 22, 08, 10:34 PM by Sergey »
|
Logged
|
|
|
|
Administrator
Sr. Member
Karma: 7
Posts: 486
|
 |
Reply #1 on: Apr 20, 08, 01:42 AM |
|
what changes have you mede in php.ini? And, by the way, it must be placed inside "swf" folder, where those large files are aploaded.
Did anyone else experienced the same problem?
|
|
|
|
|
Logged
|
|
|
|
|
Fernando Gomez
Guest
|
 |
Reply #2 on: Apr 20, 08, 05:08 AM |
|
I have it in my swf folder and I still cant upload games. This sucks..im behind!
|
|
|
|
|
Logged
|
|
|
|
Administrator
Sr. Member
Karma: 7
Posts: 486
|
 |
Reply #3 on: Apr 20, 08, 09:50 AM |
|
what changes have you made in php.ini?
|
|
|
|
|
Logged
|
|
|
|
|
Fernando Gomez
Guest
|
 |
Reply #4 on: Apr 20, 08, 12:42 PM |
|
just file_max size thing to 32MB go into my ftp and check it?
i need this problem fixed and the I CANT comment on anyones pas script games it jut refreshed when i submit
|
|
|
|
|
Logged
|
|
|
|
Administrator
Sr. Member
Karma: 7
Posts: 486
|
 |
Reply #5 on: Apr 20, 08, 01:35 PM |
|
you ought to change these 2 values: upload_max_filesize - keep 32 and post_max_size - make it = 32 as well
also I'd suggest you to increase these 2 values: max_input_time - set it to 300 and max_execution_time - set it to 180
|
|
|
|
|
Logged
|
|
|
|
|
fernando gomez
Guest
|
 |
Reply #6 on: Apr 20, 08, 01:55 PM |
|
i did that and uploaded it to swf folder
tried adding game 2.4 MB
Error! Can't upload a file. Please check the content folders' attributes. ../content/swf/magic-penNDgz.swf
|
|
|
|
|
Logged
|
|
|
|
Administrator
Sr. Member
Karma: 7
Posts: 486
|
 |
Reply #7 on: Apr 21, 08, 01:08 AM |
|
Fernando, please replace the 312th line in content.php $tpl->assign( "ERROR", $cLang["errAUpload"]."../content/swf/" . $filename ); by this one: $tpl->assign( "ERROR", $cLang["errAUpload"]."../content/swf/" . $filename . ". Error code: " . $_FILES['file']['error'] ); the updated code will show you the error code returned by the file uploader, So we'll know what kind of problem you've got.
|
|
|
|
|
Logged
|
|
|
|
|
fernando gomez
Guest
|
 |
Reply #8 on: Apr 21, 08, 05:53 AM |
|
Error! Can't upload a file. Please check the content folders' attributes. ../content/swf/magic-penNDgz.swf. Error code: 1
|
|
|
|
|
Logged
|
|
|
|
Administrator
Sr. Member
Karma: 7
Posts: 486
|
 |
Reply #9 on: Apr 21, 08, 06:45 AM |
|
thank you Fernando... unfortunately I can't do much to help you, because it's still the same upload_max_filesize error, see http://www.php.net/manual/en/features.file-upload.errors.php maybe you've changed that value to 32 and not to 32M (as it should be)? As a temporary workaround you can take any (small) swf file, rename it so it has the same filename as your large file has and add the game using that temp small file. Once the game is added, upload the real (large) swf to your content/swf folder, replacing the small temp file. In the next update I'll add an option which will let you add a game without swf, so you'll be able to upload swfs using FTP connection.
|
|
|
|
« Last Edit: Apr 21, 08, 06:47 AM by Sergey »
|
Logged
|
|
|
|
|
fernando gomez
Guest
|
 |
Reply #10 on: Apr 21, 08, 07:05 AM |
|
But then i cant get the auto resizing, some have 700+ and i dont know what it would be with the 655 max you have and if u put 0 after changing to the real one it will keep the last size u put..zz this sucks
also, i cant post comments on any PAS game comment and everyone else can..why?
and, r u sure u d9ont have a php file that has a 2000 set max size? i hope something for the swf problem comes out quick 2 months and i cant upload big files and harder if over 655 in size
|
|
|
|
|
Logged
|
|
|
|
|
fernando gomez
Guest
|
 |
Reply #11 on: Apr 21, 08, 07:10 AM |
|
someone said they added
php_value upload_max_filesize 50M and it helped them (thought they got another blank error)
how do i add that to my httaccess
i put it inder then #----------------- but i got error
|
|
|
|
|
Logged
|
|
|
|
Administrator
Sr. Member
Karma: 7
Posts: 486
|
 |
Reply #12 on: Apr 21, 08, 07:20 AM |
|
php_value upload_max_filesize 50M and it helped them (thought they got another blank error) not every hoster allows such directives inside htaccess, and if you are using PHP5 you can't use php_flag or php_value in htaccess. But that worth a try though... just place that code in the begining of the file. also, i cant post comments on any PAS game comment and everyone else can..why?
were you able to do that previously? and, r u sure u d9ont have a php file that has a 2000 set max size? i hope something for the swf problem comes out quick 2 months and i cant upload big files and harder if over 655 in size
yes, of course I'm sure, there is no limitations to file size in my code at all
|
|
|
|
« Last Edit: Apr 21, 08, 07:23 AM by Sergey »
|
Logged
|
|
|
|
|
fernando gomez
Guest
|
 |
Reply #13 on: Apr 21, 08, 09:31 AM |
|
yes i could before now i cant when i click submit it refreshes page
|
|
|
|
|
Logged
|
|
|
|
Administrator
Sr. Member
Karma: 7
Posts: 486
|
 |
Reply #14 on: Apr 21, 08, 10:12 AM |
|
maybe you've banned your own IP?  or (most likely) your browser have cached the page, try ctrl-F5 to refresh the page, and retry to post anything... You should also remember that the minimal interval between opening the page and form's submission must be 5 seconds or more (antispam protection, see "Min Delay" option in the Comments->Settings tab inside admin CP).
|
|
|
|
|
Logged
|
|
|
|
|