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

Anyone else have to replace missing images when someone deletes their avatar. | Forum

dave Leader
dave Aug 31 '13

When someone changes their avatar i always get this on my error log.

 

[error] [client xx.xx.xx.xx] File does not exist: /home/xxxxxxxxxxxx/public_html/ow_userfiles/plugins/base/avatars/avatar_6_137704784.jpg, referer:xxxxxxxxxxxxx

 

i know how to repair it i just have a default image that i have been renaming to whatever is missing and stick it in the folder.  Its usually some old post but still the dreaded x bothers me.

 

Is this an oxwall issue or a userside issue?   Is it the cache thats causing this?

Den Team
Den Sep 5 '13

Hello dave,


Perhaps newsfeed still contains entries with old avatar URLs. And when someone will browse it, you get 404 entry in your error log file. You know there is a problem with fast and safe removing old data from newsfeed. As this option will require a huge resources from hosting and decrease site performance. 
dave Leader
dave Sep 5 '13

Yeah i just wish we could at least put some kind of a bandaide on this and maybe just add an if statment that if the change their avatar it replaces that image file in userfiles with a default image. 

 

Or maybe just remove the call to delete that image all together, but then again that would mean tons of images in the userfiles that woud never be used.

 

So maybe the default image is the better way.