Upload functionality broke after BP 1.6.2
-
Hi!
I just noticed that the ‘Upload new picture’ is not working after BP 1.6.2 update.
Please help with a fix.
Thank you
-
BP 1.6.2 requires WP 3.5 – but from your other post thought you had upgraded WP?
Hello @Hugo , Thank you very much for your reply
Yes I have BP 1.6.2 and WP 3.5
If I (admin) try to upload a new picture to my album it stops in a blank white page. Refreshing does the same thing.
If another users (subscribers) try to upload new pictures to their albums they end in a 404 page (Screenshot). This 404 page is different from a normal 404 page (Screenshot).
NOTE : in both 404 cases the address bar shows the address https//-mysite-com/profiles/username/photos/upload/. If you (being the same user) go to this address, this is normal upload page url under photos (slug changed from album) >> upload picture
Sorry, the NOTE above is written incorrectly. It should be as follows :
NOTE : in both cases (Admin or Subscriber) the address bar shows the address https//-mysite-com/profiles/username/photos/upload/. This means the address bar doesn’t change (remains unchanged), its the actual upload page url.
regards
Found the problem
I have a second bp website which I didn’t updated to WP 3.5 and BP 1.6.2. I just tested everything (album uploads) worked properly until I updated.
After update, if I try to upload a picture to my BP-Album it shows following error:
Warning: Missing argument 2 for wpdb::prepare(), called in /home/content/xx/xxxxxxx/html/wp-content/plugins/bp-album/includes/bpa.classes.php on line 322 and defined in /home/content/xx/xxxxxxx/html/wp-includes/wp-db.php on line 990Fatal error: Call to undefined function wp_create_thumbnail() in /home/content/xx/xxxxxxx/html/wp-content/plugins/bp-album/includes/bpa.screens.php on line 394
The above error didn’t show on my first website because I turned off errors by using below code in my function.php
ini_set( 'display_errors', false );
error_reporting( 0 );Those errors are from the bp-album plugin, not BuddyPress.
Hi @djpaul !
Thank you for your reply, I want to report this to the plugin author. I posted this help request at http://buddypress.org/support/forum/plugin-forums/bp-album/. Is it not there?
Kind regards
This error is happening because WordPress removed the text (…$args=null){… in the function definition for $wpdb::prepare(). I can’t even begin to imagine how many tens of thousands of plugins they broke as the result of this, and upon reviewing their code, I see no technical basis for this change (other than alerting some inexperienced developers to a potential SQL-injection venerability that is NOT present in BP-Album)
No worries. We’ll get that patched up in BP-Album in the next few hours.
Also, sorry for the slow response time on this support thread. The BuddyPress team DELETED ALL 3RD PARTY SUPPORT FORUMS last week and has been moving ours all over the site.
^F^
`Fatal error: Call to undefined function wp_create_thumbnail() in /home/content/xx/xxxxxxx/html/wp-content/plugins/bp-album/includes/bpa.screens.php on line 394`
This one is happening because WordPress REMOVED a function from the WP core that BP-Album uses.
We’ll code around it.
This is at least the 10th time in the past year that either WP or BP has broken our plugin, and I’ve had enough of it… as of today, with the exception of the admin back-end, we will begin modifying BP-Media such that it does not use ANY functions in either WordPress or BuddyPress.
As we have already achieved with Razor, the goal will to be to have BP-Media capable of operating WITHOUT WordPress or BuddyPress installed on the server, but still interact with them if they are.
This is a realistic and achievable goal, thanks to the technologies we’ve already developed for our FoxFire and Hydra plugins
^F^
We’ve posted an updated version of BP-Album that fixes all reported problems.
http://wordpress.org/extend/plugins/bp-album/
^F^
Oooh!! Thanks mate!! this version runs correctly
thanks a lot!Members’ photo albums are the most important part of my website and
after trying available plugins, I found BuddyPress Album to be the best, easy, simple and lightweight solution.I am grateful for the prompt support provided to fix the compatibility with WordPress 3.5.
BuddyPress Album is a 5 star!
You must be logged in to reply to this topic.