bp-album.0.1.8 redirect box breaks url
-
I have installed BP-Album 0.1.8 under WordPress 3.0.1 and BuddyPress 1.2.5.2.
I have an networked subdomain site, so all members get http://yourblog.domainname.com.When I upload a photo to an album, it is not created at:
http://domainname.com/members/yourname/album/Instead a parallel path is created starting at /public_html and relisted the physical server path:
/public_html/home/users/web/x1234/ipw.ownername/public_html/wp-content/uploads/album/1Please advise.
-
It displays the wrong path in the status bar at the bottom of the screen.
The pictures are being uploaded and can be viewed in the CPanel File Manager.Do I need to uninstall before changing that option?
No, options will work correctly across a 0.1.7->0.1.8 upgrade, as well as changing them in the admin back end.
I think you may have just come up with a use-case we didn’t think of when we were updating the release: a virtual server with custom subdomains for each user.
Is this a new install, or have you got tons of uploaded content?
^F^
Fairly new, the server has been repurposed from a “vanity” account.
In the last 60 days I have installed wordpress, buddypress, and tested some plugins.
I have about 6 admin accounts for portal sites, and 4 or 5 live accounts.
Not much content, just headers and about a two dozen photos.The scenario is a standard option for BuddyPress, subdirectories or subdomains.
Uses the standard htaccess redirection and BP option select.I can provide references if you like.
Okay, that’s good to hear. I was worried that you might have had a 0.1.7 install with a bunch of content and then 0.1.8 broke it.
Fortunately you only have a test install ….and a *special* one at that… because you’re the only person to ever contact us that’s using custom subdomains *and* has the virtual server bug. This is a combination we have not been able to replicate on our test servers.
So we are very interested in talking to you.
At present, you will not be able to use 0.1.7 or 0.1.8 on your server. This is because the virtual server bug breaks 0.1.7 on your server, and your use of custom subdomains on your site breaks the virtual server bug fix we just released in 0.1.8. So uninstall bp-album, drop all its DB tables, delete all its uploaded content, and all the plugin files.
Then go get the 0.1.9 from our Google Code site: http://code.google.com/p/buddypress-media/downloads/list
Install it on your server, do some test uploads, and report back your findings.
Try changing the options:
Core Settings->Media Storage->Operating mode
Media Cache->File System->Level 1 Cache->Cache Mode
Media Cache->File System->Level 2 Cache->Cache Mode
Media Cache->File System->Level 3 Cache->Cache ModeHow do these options affect your system? Please post the directories the plugin creates/saves to, and the paths it generates for images shown in site pages.
Thanks!
^F^
Hmmm, so I dont have to bribe my DB Admin, could you give me the sql commands to drop the tables? Specifically, what tables to drop.
Regarding posting the directories, I will have to redact them for the reasons I stated privately.
But the structure is the same as my previous post for V0.1.8.
For V0.1.9 I will have to backup my system first and then report the results afterward.Wont be doing this tonight, but I will check your post tomorrow.
Sincerely,
Silicant
Ok, I repeated my tests with bp-album.0.1.8 to make sure it was a clean run.
Here are the results;bp-album.0.1.8 test #1
Drop wp_bp_albums, wp_wppa_albums, wp_wppa_photos
Delete /public_html/home/users/web/x1234/isp.sitename/public_html/wp-content/uploads/album/1
Delete /public_html/wp-content/uploads/wppaInstall bp-album.0.1.8
confirm wp_bp_album table created.Field Type Collation Attributes Null
id bigint(20) No auto_increment
owner_type varchar(10) utf8_general_ci No
owner_id bigint(20) No
date_uploaded datetime No
title varchar(250) utf8_general_ci No
description longtext utf8_general_ci No
privacy tinyint(2) No 0
pic_org_url varchar(250) utf8_general_ci No
pic_org_path varchar(250) utf8_general_ci No
pic_mid_url varchar(250) utf8_general_ci No
pic_mid_path varchar(250) utf8_general_ci No
pic_thumb_url varchar(250) utf8_general_ci No
pic_thumb_path varchar(250) utf8_general_ci NoUse default values, no url redirection, upload photo.
Created /public_html/home/users/web/x1234/isp.sitename/public_html/wp-content/uploads/album/1
Contains photos but cannot be displayed.bp-album.0.1.8 test #2
Drop wp_bp_albums
Delete /public_html/home/users/web/x1234/isp.sitename/public_html/wp-content/uploads/album/1
Delete /public_html/wp-content/uploads/wppaInstall bp-album.0.1.8
confirm wp_bp_album table created.Use default values, yes url redirection, upload photo.
Base URL http://thesitename.com/wp-content/uploads/album /userID/filename.xxxCreated /public_html/home/users/web/x1234/isp.sitename/public_html/wp-content/uploads/album/1
Contains photos but cannot be displayed.End of Test.
Confirmed I have a good backup of the database.
I will move on to the next version.Testing with bp-media-2010-9-27.zip;
There appears to be a problem with the installation procedure, as I get the following message;
“The uploaded file could not be moved to /home/users/web/x1234/isp.sitename/public_html//wp-content/uploads/2010/10″This resembles the invalid path the photos were loaded to.
This is the first time I have ever seen that message and I did try it twice.
Does your installer use the same baseurl detection as the application?If you can tell me which php file contains the function to set the baseurl, I can check it against my site using the 0.1.8 version. Once I have that working correctly, I can send you the snippet so you can evaluate it.
Otherwise I can’t proceed at this point.
I appreciate the time you have taken to advise me.
Sincerely,
Silicant Tungsten
Try changing the options:
Core Settings->Media Storage->Operating mode
Media Cache->File System->Level 1 Cache->Cache Mode
Media Cache->File System->Level 2 Cache->Cache Mode
Media Cache->File System->Level 3 Cache->Cache Mode…make sure you click the “save” button at the bottom of the page.
How does changing these settings affect your system?
^F^
Ok, I could not load the 0.1.9 plugin. So setting options is not a question.
If you can tell me which php file contains the function to set the baseurl, I can check it against my site using the 0.1.8 version. Once I have that working correctly, I can send you the snippet so you can evaluate it.
Otherwise I can’t proceed at this point.
I appreciate the time you have taken to advise me.
Sincerely,
Silicant Tungsten
Just co confirm … 0.1.9 will not even *install* on your system? You cannot view the admin menus?
^F^
That is correct, the installation fails when loading the plug-in.
Testing with bp-media-2010-9-27.zip;
There appears to be a problem with the installation procedure, as I get the following message;
“The uploaded file could not be moved to /home/users/web/x1234/isp.sitename/public_html//wp-content/uploads/2010/10?This resembles the invalid path the photos were loaded to.
This is the first time I have ever seen that message and I did try it twice.
Does your installer use the same baseurl detection as the application?And I also checked the Upload Path and Fileupload Url to make certain they were not at fault.
Sincerely,
Silicant Tungsten
The plugin is trying to copy the auto-generated default thumbnail image to the L1 cache directory, but the server is preventing it from doing that.
Fascinating. We’ve never had that problem happen before. This will be an exciting debug project!
^F^
Pardon my ignorance, since I don’t own the server, the settings you described I don’t think are accessible to me. Can you direct me to an online document to explain them, then I can respond accordingly?
I am also interested in resolving this as it may uncover a fault in the original setup.
Sincerely,
Silicant Tungsten
We haven’t finished writing the docs yet, but I’d be happy to run you through it.
Have you got Skype?
^F^
Sorry,
Please excuse the delay. Since we are virtual site, outworld contact is limited. I will wait until your documents are available. In the meantime, I am troubleshooting other performance issues with our outworld server.Hi there! I was hoping to read an answer to a question Silicant had asked earlier in the thread:
http://buddypress.org/community/groups/bp-album/forum/topic/bp-album-0-1-8-redirect-box-breaks-url/?topic_page=1&num=15#post-74506
I keep getting the “The file could not be recognized as a supported media” error message when attempting to upload a test.jpg file using bp-media-2010-12-01, and thought it might have something to do with not dropping all content and db-tables properly… of course, i am assuming that this requires more than the simple clicking of ‘delete’ under the plugins panel.I deleted using the plugins panel and went back to using bp-media-2010-9-27 which seems to work for uploading test.jpg now… Perhaps you can quickly diagnose what’s going on with the uploading problem on the January 1st version?
You’ve already been very helpful in this thread; thanks.
My impostations:
http://www.higringo.com
WPMU 3.0.5 with subdomains
Installed on root
Buddypress 1.2.5.2
Bp-album 1.8.7
remapping = noBlog test site.
test3.higringo.com
User: test1 Pass: test1
And try to add a photo…When I upload one photo, the photo is stored correctly on the server and on the table of database but redirect dosn’t work and don’t redirect me to $bp->album->edit_slug but to a broken link page.
I have the same problem when I try to delete or edit one photo on the page showing the image.
For delete and edit I solved changing the redirect in bp-album-screens.php with bp_core_redirect( site_url() ); but the same triks don’t work for the function bp_album_action_upload().
For me is enough solve the problem adding one string for each blog in .htaccess.
I try this way looking how database store the photo on my server and I added this code but without effect:
Redirect 301 var/www/vhosts/higringo.com/httpdocs/wp-content/uploads/album/ http://www.higringo.com/wp-content/uploads/album/
Redirect 301 var/www/vhosts/higringo.com/httpdocs/wp-content/blogs.dir/9/files/album/ http://www.higringo.com/wp-content/blogs.dir/9/files/album/Please help me, I have a lot of blogs with 1.8.7 version and I need to have this version worked.
Thank in advance for your work.
You must be logged in to reply to this topic.