• Resolved WPSeeker

    (@wpseeker)


    Hi

    I can’t get this plugin to work. I created a custom item for my forum posts. I then created a rule and assigned it to that custom item.

    The shortcode I’m using is correct because when I change the number of stars in my assigned rule it correctly changes on the page.

    The problem is while the stars appear if you click to rate you keep getting this message: “Vote value out of rule bounds.”

    Here is my shortcode, please tell me what I am doing wrong.

    echo do_shortcode('[gdrts_stars_rating type="answers.transplants" id="'.$id.'" /]');

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter WPSeeker

    (@wpseeker)

    BTW When I mouseover the stars I get Infinity:undefined.

    Not sure if that’s the cause.

    Plugin Author Milan Petrovic

    (@gdragon)

    Have you created Rating Type for Answers/Translants?

    Thread Starter WPSeeker

    (@wpseeker)

    Yes, this is what it looks like under Rating type.

    Name: answers         Transplants · transplants
    Label: Answers

    • This reply was modified 6 years, 1 month ago by WPSeeker.
    • This reply was modified 6 years, 1 month ago by WPSeeker.
    Plugin Author Milan Petrovic

    (@gdragon)

    Do you have any errors in the server PHP error log related to the rating plugin?

    Thread Starter WPSeeker

    (@wpseeker)

    Hi

    OK, I believe this is the problem.

    [20-Feb-2019 21:39:09 UTC] WordPress database error Table ‘db_dom29079.wp_gdrts_itemmeta’ doesn’t exist for query SELECT * FROM wp_gdrts_itemmeta WHERE item_id = 2 made by do_action(‘wp_ajax_gdrts_live_handler’), WP_Hook->do_action, WP_Hook->apply_filters, gdrts_core_ajax->handler, gdrts_core_ajax->vote, gdrts_get_rating_item_by_id, gdrts_rating_item::get_instance, gdrts_core_db->get_item_meta, d4p_wpdb_core->run

    How do I recreate the table?

    Thanks

    BTW These are the only tables I have related to your plugin.

    wp_gdrts_cache
    wp_gdrts_items
    wp_gdrts_logs

    Plugin Author Milan Petrovic

    (@gdragon)

    If you visit plugin panel Tools, you have tool Recheck that will attempt to recreate missing tables. If that fails (some database issue), you need to do it manually. Full tables schema is here: support.dev4press.com/kb/article/database-tables.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Vote value out of rule bounds’ is closed to new replies.