• Resolved profitcode-tgasior

    (@tomaszgasioritdesk)


    Hi! Thanks for your very useful plugin. It works pretty good but I have some ugly errors in browser console:

    TypeError: jQuery(...).attr(...) is undefined.

    It comes from file wp-content/plugins/g-business-reviews-rating/wp/js/js.js.

    This is shortcode which I use:

    [reviews_rating summary=0 icon=0 name=0 vicinity=0 more="more" attribution=0 date="d.m.Y"].

    I have built-in stylesheet disabled because I need to use my own styles only. Minification plugins are disabled.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Design Extreme

    (@designextreme)

    @tomaszgasioritdesk Thanks for letting me know this issue. I’ll correct this in the next version.

    Plugin Author Design Extreme

    (@designextreme)

    @tomaszgasioritdesk I’ve added a fix ready for the next version.

    Plugin Author Design Extreme

    (@designextreme)

    @tomaszgasioritdesk If you want to perform the same change manually to prevent this JavaScript error, you can either delete the IF condition here or change:

    if (jQuery(e).attr('class').match(/\bversion[_-]?1\b/i)) {

    to:

    if (typeof jQuery(e).attr('class') == 'string' && jQuery(e).attr('class').match(/\bversion[_-]?1\b/i)) {

    It’s in ./g-business-reviews-rating/wp/js/js.js on line 119.

    Hi,
    I also have a similar error message, but the file concerned is this time
    /g-business-reviews-rating/admin/js/js.js
    and the error message is
    jQuery(...).val(...) is undefined

    • This reply was modified 5 years, 1 month ago by tomrlt.
    Plugin Author Design Extreme

    (@designextreme)

    @tomrlt Thanks for that, do you have a line number?

    Thanks!

    Yes, line 847

    Plugin Author Design Extreme

    (@designextreme)

    @tomrlt I have checked this line and I cannot find a matching reference. I don’t see a similar error either. Do you have the most recent version of the plugin installed?

    I’ve added a few more sanity checks to the next version, but it would be good to work out what’s triggering this error.

    Thanks,

    Noah

    I can give you access to a staging site if you want.
    The plugin is up to date, I deactivated all other plugins, I activated a basic wordpress theme, and the error still occurs. Even when i dont fill in the places api key, and the place id, the error occurs

    Plugin Author Design Extreme

    (@designextreme)

    @tomrlt Thanks for the additional details, that makes a lot more sense now.

    It is fixed in the upcoming version.

    All the best,

    Noah

    Plugin Author Design Extreme

    (@designextreme)

    @tomrlt @tomaszgasioritdesk Both errors are fixed in the current version 2.9.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Error in the console’ is closed to new replies.