• Resolved MattFoster42

    (@mattfoster42)


    Hi,

    Unable to submit any ratings.
    When I click on submit the JS console pops up
    Uncaught TypeError: Cannot read property ‘post_id’ of undefinedfrontend.js:59 handle_rating_form_submit_responsefrontend.js:48 (anonymous function)jquery.js:2 jjquery.js:2 k.fireWithjquery.js:4 xjquery.js:4 b

    Doubtless this is a conflict of some sort, but not sure what with. I currently have all the optimisations turned off, and varnish in pass through mode at the front end.

    Can be seen for instance at
    https://www.mattfoster.me.uk/2015/01/varnish-4-0/

    Any ideas?

    Thanks,

    Matt

    https://www.ads-software.com/plugins/multi-rating/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dpowney

    (@dpowney)

    Hi Matt,

    The response is returning a Status Code: 302 Moved Temporarily. Is there some URL redirection preventing the AJAX call?

    Thanks,
    Daniel

    Thread Starter MattFoster42

    (@mattfoster42)

    Bingo.

    I had enabled SSL redirections through some mod_rewrite rules but had forgotten to add define(‘FORCE_SSL_ADMIN’, true);
    into wp-config.php

    Working now, thanks for the pointer.

    Cheers

    Matt

    Thread Starter MattFoster42

    (@mattfoster42)

    Resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to rate JS error’ is closed to new replies.