Skip to:
Content
Pages
Categories
Search
Top
Bottom

Errors after WP-BP Update. Kindly help

  • Avatar of mairaj
    mairaj
    Participant

    @mairaj

    Just Updated to WP 3.5 and BP 1.6.2 and get the following error on my album page, urgent help requested.

    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 990

    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 310 and defined in /home/content/xx/xxxxxxx/html/wp-includes/wp-db.php on line 990

    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 990

    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 310 and defined in /home/content/xx/xxxxxxx/html/wp-includes/wp-db.php on line 990

    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 990

    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 310 and defined in /home/content/xx/xxxxxxx/html/wp-includes/wp-db.php on line 990

    Please help on this urgently.

    Kind regards

Viewing 15 replies - 1 through 15 (of 15 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    @foxly

    BP album plugin needs an update to fix

    Avatar of mairaj
    mairaj
    Participant

    @mairaj

    Okay! Can you please tell how do I update?

    regards

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Avatar of mairaj
    mairaj
    Participant

    @mairaj

    Thank you for your replies. I have temporarily disabled the plugin.

    Members’ photo albums are very important to my website, I can’t afford to keep the plugin disabled for long. Hope to get this resolved soon..

    Avatar of Woodynat2000
    Woodynat2000
    Participant

    @woodynat2000

    Hello thank you for letting me know that my website had the same problem ronanparkefanclub.com/social

    I have just fixed my problem. It may only be temporary but its worked. You need access to your WP-CONFIG.PHP file. I access mine through cpanel. Then on line 2 insert the following

    @ini_set(‘log_errors’,’On’);
    @ini_set(‘display_errors’,’Off’);

    Should also work for you

    Avatar of mairaj
    mairaj
    Participant

    @mairaj

    @Woodynat2000 Thank you for your help, however the solution didn’t work for me. It takes my site completely off…just the following error message shows:

    Parse error: syntax error, unexpected T_STRING in /home/content/xx/xxxxxxx/html/wp-config.php on line 3

    regards

    Avatar of mairaj
    mairaj
    Participant

    @mairaj

    This code saved me as a temporary solution :

    ini_set( 'display_errors', false );
    error_reporting( 0 );

    Just add the above in the function.php before the closing of the file ie; before ?>

    Shared it just in case anybody is in trouble.

    regards

    Avatar of foxly
    foxly
    Participant

    @foxly

    The BP-Media team just wants to say “Thanks for that, WordPress”  </sarcasm>

    They DELIBERATELY BROKE a function in the WordPress database class to remind some inexperienced developers about a potential SQL-injection flaw …potentially taking-out  tens of thousands of plugins in the process.

    BP-Album doesn’t have that SQL-injection flaw, but we ran several SQL statements through the prepare() method in the wpdb class for consistency, tripping their logic bomb.

    It’s stupidity like this that delays plugins like BP-Media from being released.

    Since we CAN’T TRUST the WordPress team, we have to code around them. For example, as of today, BP-Media no longer uses WordPress’ database class. We created our own fork of it to prevent this sort of stupidity from ever happening again.

    https://github.com/FoxFire/foxfire/blob/master/core/database/class.database.driver.mysql.php

    ^F^

    Avatar of mairaj
    mairaj
    Participant

    @mairaj

    Thank you very much for the update..

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    @foxly isn’t this the second time you ranted on this subject today  why not just fork WP altogether then you wouldn’t have the problem?  ;) Is this really the reason plugins like bp media get delayed from being released? You have been developing this plugin without a major release for over two years now.

    Avatar of foxly
    foxly
    Participant

    @foxly

    We’ve already forked significant parts of WordPress, and it’s our eventual goal to have BP-Media able to operate without WordPress installed on the server at all (although still be able to interact with it if it is).

    As for progress on BP-Media, we’ve started releasing blocks of code as individual plugins as they get completed:

    https://github.com/WP-Razor

    https://github.com/WP-Hydra

    https://github.com/FoxFire

    https://github.com/WP-Generator

    https://github.com/BPM-Themes

    https://github.com/BP-Media/test-content

    ..so, overall I’d say there’s been a fair bit of progress on BP-Media … :)

    Complain as you will about the build time, we’re not releasing the next version of BP-Media until it works efficiently and reliably, has been thoroughly tested, and is properly documented.

    If the WordPress team had our level of discipline, 90% of their so-called releases wouldn’t be necessary.

    ^F^

     

    Avatar of rickkumar
    rickkumar
    Participant

    @rickkumar

    @foxly

    I understand your plugin is going to be the biggest and most extensive media plugin ever built for BP. Just wondering if you have a release date for the BP-Media plugin?

    Currently I have observed another developer releasing quick updates of their plugin called BuffyPress-Media as follows:

    http://wordpress.org/extend/plugins/buddypress-media/

    http://wordpress.org/extend/plugins/buddypress-media/stats/

    As you can see that this plugin appears to gain quick popularity and now have 100s of daily downloads.

    I am wondering about the following:

    1. What are the major advantages of your plugin versus the above plugin?

    2. What is the “solid production release date” for your plugin?

    Your response is appreciated so we can decide which plugin to use.

    Thank you.

    Avatar of Saurabh Shukla
    Saurabh Shukla
    Participant

    @saurabhshukla

    Hi,

    Discovered this conversation just now. I’m from the team that develops buddypress media mentioned by @rickkumar.

    Now, I’m not getting into the comparison game. Our plugin is not thoroughly tested, till now. We decided to get our hands dirty, early, so we could use user feedback and community involvement, faster.

    Now that our plugin’s vision is getting aligned with real users, we are in the process of restructuring. Ours is much smaller in size and doesn’t boast of a host of features or an amazing ui. But, it is out there, available and being improved upon continuously, with live user feedback.

    You can see this evolution in our support forums http://rtcamp.com/support/forum/buddypress-media/, http://wordpress.org/support/plugin/buddypress-media and on github https://github.com/rtCamp/buddypress-media/issues .

    It does everything it promises to do, manage media and it does it well. The roadmap is present here: https://rtcamp.com/buddypress-media/roadmap/. Won’t comment on the other plugin. I’m already intruding.

    Now as for the error, the WordPress explanation cited by @modemlooper, is fairly simple and straightforward. When there is no filtering needed, a function like wpdp_prepare must fail. So WordPress is just putting things right. It broke our code, but we spent a little time doing find and replace for the function and corrected it.

    @foxly can’t really disagree with your emotion. Often been tempted to go that way, decrease the dependency on WordPress. However, for the sake of lightness and tight functionality, and because that helps us debug the cores, WordPress and BuddyPress, themselves, we’ve stuck to using default wp functionality for as much as possible.

    I hope that helps this conversation.

    Regards.

    Avatar of foxly
    foxly
    Participant

    @foxly

    @saurabhshukla

    Why don’t we just merge our dev teams together, use your current BuddyPress Media as an intermediate step, between “BP Album” and “BP-Media 2.o”, and get a better product out faster?

    ^F^

    Avatar of Saurabh Shukla
    Saurabh Shukla
    Participant

    @saurabhshukla

    @foxly Ha, ha! You are a clever one.

    3 reasons why that can’t be done:

    1. Our vision for the plugin is pretty much in contrast to yours, won’t work nice.
    2. We bake our own bread, we eat our own dog food! What we write is closely tied with what we need, too.
    3. If we compete instead, both the teams will be forced to outdo each other. That equals to two very good plugins, two options for users, two alternative ways of doing similar things. That’ll work out well for all of us, including users, I believe.

    That being said, we are a commercial organisation (rtCamp Solutions Pvt Ltd) and such community projects satisfy our vested interests:

    * of giving back to the community that helps us earn our bread (and butter ;)),
    * interaction with the community,
    * developing our skills and knowledge.

    I don’t think, we can give that up, easily. Best of luck for your plugin, though!

    Cheers!

Viewing 15 replies - 1 through 15 (of 15 total)

You must be logged in to reply to this topic.