WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: LeagueManager] Error on article posting (4 posts)

  1. ch8rt
    Member
    Posted 4 years ago #

    I've installed the LeagueManager on my testing site but I'm getting an error when updating posts in the main blog.

    WordPress database error: [Table 'mature_wpbp.wp_bp_user_blogs_blogmeta' doesn't exist]
    SELECT * FROM wp_bp_user_blogs_blogmeta WHERE blog_id = 1 AND meta_key = 'last_activity'
    
    WordPress database error: [Table 'mature_wpbp.wp_bp_user_blogs_blogmeta' doesn't exist]
    INSERT INTO wp_bp_user_blogs_blogmeta ( blog_id, meta_key, meta_value ) VALUES ( 1, 'last_activity', '2010-03-31 07:53:07' )
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/mature/public_html/test/wp/wp-includes/wp-db.php:615) in /home/mature/public_html/test/wp/wp-includes/pluggable.php on line 868

    The post still updates, but this error appears on a page of its own.

    I've deactivated all but this and the buddypress plugin, I'm not sure what to do?

    I'm also guessing it must be responsible for the follow error that appears on the frontend

    WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1]
    SELECT * FROM wp_users WHERE id=;

    Any suggestions?

  2. ianhaycox
    Member
    Posted 4 years ago #

    Just got bitten by this with my own plugin.

    There is an error in the BuddyPress plugin that is normally hidden. I.e. fails silently, due to the missing tables.

    Both my plugin and leaguemanager call $wpdb->show_errors() in a class constructor. (I guess many other plugins too).

    The error in BuddyPress is then reported as above. The workaround is to comment out any show_errors() calls.

    Hope that helps someone.

  3. ianhaycox
    Member
    Posted 4 years ago #

  4. ch8rt
    Member
    Posted 4 years ago #

    Didn't realise that I had not replied. Thanks for this, it worked beautifully.

Topic Closed

This topic has been closed to new replies.

About this Topic