Back to GD Rating System (Lite) Forum

Not showing votes

Published on: February 5, 2019 at 3:36 pm · By: jeantine
Author
Topic
#60635

Hi,

I added the following short-code on the homepage (made with Elementor):

[gdrts_stars_rating type=”custom.website” id=”1″
template=”default”style_type=”font”]

And I created a new rating type by folowing the steps in this post:
https://support.dev4press.com/kb/user-guide/how-to-allow-your-visitors-to-rate-your-website/

I also enabled Dynamic Load.

Whenever I try give a rating I keep getting the message ‘No votes yet’.
Also info on ratings is not visible in the Structured Data (Rich Snippets are enabled).

What can I do to correct this?

www.defietskoerieramsterdam.nl

Thanks!

Jeantine

Viewing 8 replies - 1 through 8 (of 8 total)
Author
Replies
  • #60636

    Hi,

    I am not sure why this is not working. After voting, it says that I voted, but vote is empty. Do you have any errors in the server error log?

    Milan

    Dev4Press - Premium plugins for WordPress.

  • #60667

    Hi Milan,

    apologies for late response.

    I’m not an IT person. So couldn’t find a server error log. However I did find errors while using the Browser console.

    Something with a PHP error. Message “Division by zero”.
    Location:

    Elementor\M\P\Module->print_content()
    wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php:19
    Elementor\M\P\Module->print_callback()
    Onbekende locatie
    the_content()
    wp-content/plugins/elementor/modules/page-templates/module.php:176
    apply_filters(‘the_content’)
    wp-includes/post-template.php:240
    Elementor\Frontend->apply_builder_in_content()
    wp-includes/class-wp-hook.php:286
    Elementor\Frontend->get_builder_content()
    wp-content/plugins/elementor/includes/frontend.php:737
    Elementor\C\B\Document->print_elements_with_wrapper()
    wp-content/plugins/elementor/includes/frontend.php:823
    Elementor\C\B\Document->print_elements()
    wp-content/plugins/elementor/core/base/document.php:736
    Elementor\Element_Base->print_element()
    wp-content/plugins/elementor/core/base/document.php:1060
    Elementor\Element_Base->_print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:661
    Elementor\Element_Base->print_element()
    wp-content/plugins/elementor/includes/base/element-base.php:917
    Elementor\Element_Base->_print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:661
    Elementor\Element_Base->print_element()
    wp-content/plugins/elementor/includes/base/element-base.php:917
    Elementor\Widget_Base->_print_content()
    wp-content/plugins/elementor/includes/base/element-base.php:661
    Elementor\Widget_Base->render_content()
    wp-content/plugins/elementor/includes/base/widget-base.php:629
    Elementor\Widget_Shortcode->render()
    wp-content/plugins/elementor/includes/base/widget-base.php:494
    do_shortcode()
    wp-content/plugins/elementor/includes/widgets/shortcode.php:130
    preg_replace_callback()
    wp-includes/shortcodes.php:197
    do_shortcode_tag()
    Onbekende locatie
    gdrts_core_shortcodes->shortcode_stars_rating()
    wp-includes/shortcodes.php:319
    _gdrts_embed_stars_rating()
    wp-content/plugins/gd-rating-system/rating/core.shortcodes.php:106
    gdrts_render_rating()
    wp-content/plugins/gd-rating-system/rating/base.embed.php:147
    gdrts_engine_single->render()
    wp-content/plugins/gd-rating-system/rating/base.functions.php:6
    gdrts_engine_single->loop()
    wp-content/plugins/gd-rating-system/rating/engine.single.php:45
    gdrts_method_stars_rating->prepare_loop_single()
    wp-content/plugins/gd-rating-system/rating/engine.single.php:110
    wp-content/plugins/gd-rating-system/methods/stars-rating/load.php:168

    not sure if this helps??

    Jeantine

  • #60668

    This is points to few errors, and the division by zero error in the Elementor from what I can see in this. But, this error log doesn’t really help in finding what is wrong, because it looks incomplete. At the end is the error in my plugin, but that can be the consequence of other errors before it. If you can take the whole log file, ZIP it and attach here, I can check it out.

    Dev4Press - Premium plugins for WordPress.

  • #60670

    Hi Milan,

    I was finally able to create a debug file. You can find it attached.

    Jeantine

  • #60675

    OK, now the things are clearer. Plugin is not installed properly, and the database tables in your database are missing. Why this happened, I am not sure, but you can attempt to recreate them by opening plugin admin panel: Rating System -> Tools -> Recheck and Update. If there are any issues with creating database tables that will be displayed there. For installation to be fully successful, you should get something like this:

    gdrts_recheck

    If the installation fails still, you need to manually add tables to the database, with the schema listed here: https://support.dev4press.com/kb/article/database-tables/.

    Dev4Press - Premium plugins for WordPress.

  • #60681

    Thanks, I tried it however the scheme has the following code twice:

    CREATE TABLE wp_gdrts_logmeta (
    meta_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
    log_id BIGINT(20) UNSIGNED NOT NULL DEFAULT ‘0’,
    meta_key VARCHAR(255) NULL DEFAULT NULL,
    meta_value LONGTEXT NULL,
    PRIMARY KEY (meta_id),
    INDEX log_id (log_id),
    INDEX meta_key (meta_key)

    and there is no code to create the ‘itemmeta’ table.
    Would you have the code to create this table?

  • #60683

    Sorry about that, article is updated with missing table schema.

    Dev4Press - Premium plugins for WordPress.

    1 user thanked author for this post.
  • #60689

    problem solved! thanks a lot!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Not showing votes’ is closed to new replies.