Broken image links for avatars and plugins
-
Hi everybody!
I have a problem I hope you might be able to help me figure out. I am using BuddyPress (1.9.2) on my multisite network (WP 3.8.2) and get broken image links when I upload avatars and other images through plugins.
I have a subdomain for my media uploads (media.lusitanoportal.com) and I think the problem might come from that. For example a link for an image uploaded through my album plugin looks like this: http://lusitanoportal.com/media.lusitanoportal.com/public_html/sites/4/gallery/user/1/1/IMG_7218-150×115.jpg
The right path would be: http://media.lusitanoportal.com/sites/4/gallery/user/1/1/IMG_7218-150×115.jpgI have “solved” the problem for the avatars by defining avatar URL in my wp-config.php:
define( 'BP_AVATAR_URL', 'http://media.lusitanoportal.com/sites/4' );
But as I have the same issue with my album plugin I have to find the source of the problem.
It seems like BP doesn’t understand where to look for images as it adds the absolute path (including public_html) after the site URL.
Is there a way to tell BP where to look? Or will I have to continue using the avatar fix and find other solutions for the plugins I choose to work with?
All help is greatly appreciated!
My site is: http://lusitanoportal.com/forum (password hejhej to enter)
Cheers,
Andréa
- The topic ‘Broken image links for avatars and plugins’ is closed to new replies.