We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Avatar Max Upload Size missing | Forum

Joel
Joel May 7 '15

Hello,


My users are unable to upload new avatar photos. Any help would be much appreciated.


The default max upload size is at 0 and when I attempt to change that setting, I get the following error:




OW Debug - ExceptionMessage:Can't find config `avatar_max_upload_size` in section `base`!File:/home/____/public_html/mirror3/ow_system_plugins/base/bol/config_service.phpLine:151Trace:#0 /home/____/public_html/mirror3/ow_core/config.php(169): BOL_ConfigService->saveConfig('base', 'avatar_max_uplo...', 3) #1 /home/____/public_html/mirror3/ow_system_plugins/admin/controllers/settings.php(945): OW_Config->saveConfig('base', 'avatar_max_uplo...', 3) #2 /home/____/public_html/mirror3/ow_system_plugins/admin/controllers/settings.php(308): UserSettingsForm->process() #3 [internal function]: ADMIN_CTRL_Settings->user(Array) #4 /home/____/public_html/mirror3/ow_core/request_handler.php(266): call_user_func_array(Array, Array) #5 /home/____/public_html/mirror3/ow_core/application.php(329): OW_RequestHandler->dispatch() #6 /home/____/public_html/mirror3/index.php(73): OW_Application->handleRequest() #7 {main}Type:InvalidArgumentException


(edited to take out user name)

The Forum post is edited by Joel May 7 '15
ross Team
ross May 7 '15
What is your software version?

What did you do before that issue started to occur?

Go to your database via php my admin ow_base_config table and check whether there's avatar_max_upload_size config 

Joel
Joel May 7 '15
Hi Ross,


Version is 1.7.3.


I don't believe I did anything to this install recently. 


There is no avatar_max_upload_size entry in the ow_base_config table.


Thanks,

Joel

ross Team
ross May 8 '15
Ok, go to the phpmyadmin again, to the ow_base_config table

in the top menu toolbar click on the insert button


and insert the following in the value column

id - 728

key- base

name - avatar_max_upload_size

value - 1

description - Enable file attachments


Then click go button


Refresh the website and check if the issue persists. 

The Forum post is edited by ross May 8 '15
Joel
Joel May 8 '15
That id seems to have the following data in it:
728basecron_is_configured1NULL



Joel
Joel May 8 '15
Ok, I've added it to id - 899 and it seemed to fix it. Can you foresee any problems with putting it at that location?
ross Team
ross May 8 '15
if the ID is not busy, everything should be ok.