WordPress.org

Forums

Democracy Poll (3 posts)

  1. elistr
    Member
    Posted 8 years ago #

    I instaled Democracy 2.0.1 to WP 2.0.5 (http://pohodaveskole.net ) and I have problem, because when I click on Manage -> Democracy Poll -> then Democracy Poll show me ->

    WordPress database error: [Zvojen-B� kl�� ‘1′ (��slo kl��e 1)]
    INSERT INTO wp_democracyQ VALUES (1, ‘Rate my site’, 1166708171, 0, 0, 1, 0);

    WordPress database error: [Zvojen-B� kl�� ‘1′ (��slo kl��e 1)]
    INSERT INTO wp_democracyA VALUES (1, 1, ‘Best. Blog. Ever.’, 0, 0),(2, 1, ‘Could be better…’, 0, 0),(3, 1, ‘My grandma could do better’, 0, 0),(4, 1, ‘Ooh look! A butterfly!’, 0, 0),(5, 1, ‘No Comment’, 0, 0)

    can you help me? where is mistake? thank you for reply

  2. rafff
    Member
    Posted 7 years ago #

    I got this same. I have no idea what is wrong:/

  3. erubboli
    Member
    Posted 7 years ago #

    just change these lines in democracy.php:

    $first_time = $wpdb->get_var("SHOW TABLES LIKE '{$table_prefix}democracyQ'") != $table_prefix."democracyQ";

    to:
    $first_time = strtolower($wpdb->get_var("SHOW TABLES LIKE '{$table_prefix}democracyQ'")) != strtolower($table_prefix."democracyQ");

    and

    $upgrading = !$first_time && $wpdb->get_var("SHOW TABLES LIKE '{$table_prefix}democracyIP'") != $table_prefix."democracyIP";

    to:

    $upgrading = !$first_time && strtolower($wpdb->get_var("SHOW TABLES LIKE '{$table_prefix}democracyIP'")) != strtolower($table_prefix."democracyIP");

Topic Closed

This topic has been closed to new replies.

About this Topic