Previous Thread
Next Thread
Print Thread
Hop To
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Hey all,

New reinstall/install of 7.4.2 when I change the forum>permission>Max file size and then do a save changes it does not stick. When I reopen the max file size it's back to zero.

Any ideas?

Last edited by Cuervo; 11/09/2009 4:22 PM.

-Tim
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Is your includes/config.inc.php file chmodded 666?


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
First question is look at the note below the permission header:
Maximum size of file attachments [-]
If file attachments are enabled in the forum, this dictates how large each file attachment can be. Max size set in php.ini is ?? so you may not exceed this size.
what is the value of ??

Second question is what are you entering in the field?


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Hey Ruben,

The info below the Maximum size of file attachments shows,

If file attachments are enabled in the forum, this dictates how large each file attachment can be. Max size set in php.ini is 250000000 so you may not exceed this size.


I assume this is bytes not megs so I just entered 2560000 to limit it at 25megs.

This line is in the php info link

upload_max_filesize 250000000 250000000

What are you refering to as "the note below the permission header"?

Am I doing this wrong.

Last edited by Cuervo; 11/09/2009 6:18 PM.

-Tim
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Originally Posted by Gizmo
Is your includes/config.inc.php file chmodded 666?

Yes, Gizmo, the file is 666 and the includes directory is 777.

Last edited by Cuervo; 11/09/2009 6:21 PM.

-Tim
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
There is a bug in that version when php.ini's upload_max_filesize is specified in bytes. Do you have access to the php.ini file? If so then if you change upload_max_filesize to 25M then that will actually fix it.

Otherwise will see if we can dredge up the bug report since I *think* it has the fix in it as well.

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Well yes.
it is not in MB it is in bytes.
So 1mb =1024 KB
or 1048576 bytes.
Your limit is way above that.
So if you entered 25600 that would be 25.6 kb.
Which is very very small.
or did you enter 25MB?

When you stated the permission was at zero when you went back was it really zero or did you just get a error when uploading?

For a 1 mb file try entering 1048576 with no mb of gb or kb just enter 1048576.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Originally Posted by Rick
There is a bug in that version when php.ini's upload_max_filesize is specified in bytes. Do you have access to the php.ini file? If so then if you change upload_max_filesize to 25M then that will actually fix it.

Otherwise will see if we can dredge up the bug report since I *think* it has the fix in it as well.

Rick,

I can do an advanced edit of the php.ini if you can give me the line that needs to be added to it.

Or, I was going to wait until version 8 hit before I reupped my memebers area. But, I could do it now and DL the latest version. I'd really rather wait until 8 goes live.

Last edited by Cuervo; 11/09/2009 6:24 PM.

-Tim
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Forgot about that Rick.
He is at 7.4.2 so that would apply.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Originally Posted by Ruben
Well yes.
it is not in MB it is in bytes.
So 1mb =1024 KB
or 1048576 bytes.
Your limit is way above that.
So if you entered 25600 that would be 25.6 kb.
Which is very very small.
or did you enter 25MB?

When you stated the permission was at zero when you went back was it really zero or did you just get a error when uploading?

For a 1 mb file try entering 1048576 with no mb of gb or kb just enter 1048576.

I set the file attachment size to 2560000 and after you click update it just goes back to 0. Then when you try to do an attachment the popup window says max file size 0 bytes allow so it just fails.


To claify no matter what number I enter and do save changes when I reopen the max file size it is set back to 0.

Last edited by Cuervo; 11/09/2009 6:31 PM.

-Tim
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Then you probably have the problem Rick mentioned.
Which has been addressed since your version.
HERE is a post on the fix.
You will need to edit the file or upgrade or try Ricks suggestion editing the php.ini file. They all will work. Or should.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
I tried the fix on the filemanager php and it didn't change anything for me. It still resets to 0 once I click the save/update button.


-Tim
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
The same change needs to be applied on admin/doforumperms.php

Joined: Feb 2007
Posts: 209
Enthusiast
Enthusiast
Joined: Feb 2007
Posts: 209
Originally Posted by Rick
The same change needs to be applied on admin/doforumperms.php

Thanks Rick, that did the trick!!


-Tim

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 1,069 guests, and 175 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)