Our ever helpful Data Modeler/Architect Chris Katrichis has provided the below workaround. This worked for us, but please run in your test environment first if you plan to use it.
– This is for an Oracle database
– Confluence 3.5.9 workaround to enable profile pictures
– Add an entry for each row with entity key of 'confluence.user.profile.picture' with entity_id = 0
– Replace “confluence” with the name of the schema you use for the confluence software
–
insert into confluence.os_propertyentry(entity_name, entity_id, entity_key, key_type, boolean_val, double_val, string_val, text_val, long_val, int_val, date_val)
select entity_name, 0, entity_key, key_type, boolean_val, double_val, string_val, text_val, long_val, int_val, date_val
from confluence.os_propertyentry osp1
where entity_key = 'confluence.user.profile.picture'
and string_val is not null
and not exists( select 1 from confluence.os_propertyentry osp2
where osp2.entity_name = osp1.entity_name
and entity_id = 0
and entity_key = 'confluence.user.profile.picture');
commit;
https://confluence.atlassian.com/pages/viewpage.action?pageId=329974322
Broken avatars/icons in Confluence after an upgrade due to corrupted cache
Also check Base URL in database table BANDANA, bandanakey='atlassian.confluence.settings'