[Plugin: Add Local Avatar] Possible fix for broken avatar upload
Hi I use this plugin, but started to get the error;
Upload Error: Upload directory doesn’t exist.
I can see there is a problem with the path, thus I took a look at the code for the plugin.
In, avatars.php, line 153, there is a function, avatar_root().
I dont get why it strips the end of the ABSPATH, so I changed (line 159):
return substr(ABSPATH, 0, -strlen(strrchr(substr(ABSPATH, 0, -1), ‘/’)) – 1);
And it seems to WORK!
Can anyone else verify this fix?
- The topic ‘[Plugin: Add Local Avatar] Possible fix for broken avatar upload’ is closed to new replies.