bp-album plugin
-
I installed the plugin and the uploading of images worked fine. But am unable to see the uploaded images.There is image title and there is nothing else. Any particular reasons for that?
-
noone?
It’s because you’re on a cheap shared web host with strange server settings. Your *web host* is passing the wrong image file location to BP Media, and BP Media is attempting to display a nonexistent image.
Version 0.1.9 of the plugin has an override setting that you can use to get around this problem, but honestly, if you’re planning on having more than 30 members on your site you should *really* upgrade to a better web host …otherwise you’re going to start running into all sorts of problems, ranging from incredibly slow (10 second) page load times, to running out of inodes, to your site getting shut down for using up too much bandwidth.
^F^
i have the same problem with uchiha.
@foxly I have the same problem here, and I am on my own dedicated VPS – definitely not a cheap host. The img src path appears to be wrong, it’s displaying it as:
It’s mixing the server path in with the image URL. Ideas?
In your case, the problem is the [Virtual] Private Server (VPS).
The root of the problem is this: the image file has two different locations, depending on which piece of software you ask.
If you ask PHP, it’s in:
And if you request the file from Apache, it’s in:
http://mywebsite.com/wp-content/uploads/album/1/imageupload-600×450-150×150.jpg
To fix this problem, you can either set up PHP so it doesn’t add the /home/accountname/public_html/ prefix to the directory path when PHP files request their location. This setting is somewhere in your php.ini file.
Or you can set up Apache so it doesn’t add /home/accountname/public_html/ before it goes looking for a file. You can do this by modifying your .htaccess file.
Either way, you need to get your server set up so that PHP and Apache agree on where files are located.
If this is beyond your level of technical skill, the best advice I can give you is to either learn how to do this stuff, or to wait until we get a stable version of 0.1.9 out for beta testing.
Thanks!
^F^
Thanks for the reply. I’m not sure that is the problem though? Apologies if I’m incorrect. The absolute path is being stored in the database and that URL is being referenced by the plugin. This is where it’s coming from, in bp-album-core.php:
function bp_album_upload_path(){
if ( bp_core_is_multisite() )
$path = ABSPATH . get_blog_option( BP_ROOT_BLOG, ‘upload_path’ );ABSPATH is being included in the URL. This works for the actual file upload but is it supposed to be stripped somewhere later before being inserted into the db table and it’s just not happening?
Thanks.
BP ALBUM: “Hey server, what is the location of the image file the user just uploaded?”
SERVER: “The file location is: http://mywebsite.com/home/accountname/public_html/wp-content/uploads/album/1/imageupload-600×450-150×150.jpg“
BP ALBUM: “Thanks, I will store that to the database”
WEB BROWSER: “Hey BP Album, what’s the location of the image file”
BP ALBUM: “The server told me the file location is here: http://mywebsite.com/home/accountname/public_html/wp-content/uploads/album/1/imageupload-600×450-150×150.jpg“
WEB BROSWER: “Hey Apache, get me the file at: http://mywebsite.com/home/accountname/public_html/wp-content/uploads/album/1/imageupload-600×450-150×150.jpg“
APACHE: “There is no file located at: http://mywebsite.com/home/accountname/public_html/wp-content/uploads/album/1/imageupload-600×450-150×150.jpg“
(…even though the file is there)
The plugin is working as designed. The point of BP Album 0.1.7 was to give people an image gallery for BuddyPress as quickly as possible, not handle every possible server configuration.
Either modify your server so it correctly maps URL’s to stored files, or wait until we have a stable 0.1.9 beta out. Version 0.1.9 has configuration options that let you override the server file paths.
Thanks!
^F^
Also, there is a workaround for this posted on the issue tracker, see here:
http://code.google.com/p/buddypress-media/issues/detail?id=2
^F^
installed 0.1.9 for 2nd time and now when i try to upload a pic i get :`An internal error prevented the file to be uploaded/processed. If you wish to contact the site support report this error code: bp_album:upload:wp_handle_upload_error.` what is this?
That means your server had some kind of internal error and the upload failed. BP-Media is saying “hey, where’s the file you were supposed to pass over to me?”.
Who is your web host?
^F^
problem solved, sorry permissions problem.
I have added a work unit to 0.1.9 to test for this.
https://www.pivotaltracker.com/story/show/7697855
^F^
Sorry if I missed something above. I am loading the images fine, but they are only showing on the album page, the images are broken everywhere else.
regards
Martin
You must be logged in to reply to this topic.