SMF icon indicating copy to clipboard operation
SMF copied to clipboard

$modSettings['custom_avatar_dir'] undefined

Open jasonclemons opened this issue 12 years ago • 3 comments

Profile-Modify.php line 2954 $modSettings['custom_avatar_dir'] is not defined by default, and will thrown an undefined error when attempting to modify a forum profile. I didn't submit a fix because I don't know how you want this handled, whether it be by defining the variable on install/upgrade, or by defining a default in the code.

A simple empty() check will prevent the error, but will not allow the avatar to save.

jasonclemons avatar Jan 30 '14 20:01 jasonclemons

Eh? It really should be in the installer now... because saving to custom folder is very explicitly the default behaviour (hence /custom_avatar folder)

Arantor avatar Jan 31 '14 01:01 Arantor

I see it in the installer, and in the upgrader. However, it's still not being set for some reason. I couldn't reproduce it on a vanilla install, but I could on an upgrade from 2.0 using last nights build.

jasonclemons avatar Jan 31 '14 04:01 jasonclemons

Looks like a bug, as there's no call to updateSettings to fix it if it isn't already set.

Oldiesmann avatar Feb 01 '14 16:02 Oldiesmann