Title: Doesn&#039;t count
Last modified: August 20, 2016

---

# Doesn't count

 *  [qwertis](https://wordpress.org/support/users/qwertis/)
 * (@qwertis)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/doesnt-count/)
 * I installed a plugin without an error but when i click the button, it does not
   count on every post..
    at some posts i can click the button and it count my click,
   but on some pages i can click all i want but i doesn’t count anything What did
   i do wrong? Thank you
 * [http://wordpress.org/extend/plugins/thanks-you-counter-button/](http://wordpress.org/extend/plugins/thanks-you-counter-button/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/doesnt-count/#post-3279558)
 * If you still use this plugin, could you send link where it doesn’t work?
 *  Thread Starter [qwertis](https://wordpress.org/support/users/qwertis/)
 * (@qwertis)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/doesnt-count/#post-3279559)
 * Hello!
    here does it **not **work on: [http://code.markdereijer.nl/?p=211](http://code.markdereijer.nl/?p=211)
   and on this page it does work: [http://code.markdereijer.nl/?p=360](http://code.markdereijer.nl/?p=360)
   It’s a bid random.. Thanks for your support!
 *  Plugin Author [Vladimir Garagulya](https://wordpress.org/support/users/shinephp/)
 * (@shinephp)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/doesnt-count/#post-3279560)
 * Hi,
 * Compare source code of page with working button and page where button doesn’t
   work.
    1st page contains JavaScript code needed to plugin for work
 *     ```
       <script type='text/javascript'>
       /* <![CDATA[ */
       var ThanksSettings = {"plugin_url":"http:\/\/code.markdereijer.nl\/wp-content\/plugins\/thanks-you-counter-button","ajax_nonce":"293d3636b0","button_image_url":"http:\/\/code.markdereijer.nl\/wp-content\/themes\/Code\/img\/leeg.png","button_image_glow_url":"http:\/\/code.markdereijer.nl\/wp-content\/themes\/Code\/img\/leeg.png"};
       /* ]]> */
       </script>
       <script type='text/javascript' src='http://code.markdereijer.nl/wp-content/plugins/thanks-you-counter-button/thankyou.js?ver=3.4.2'></script>
       ```
   
 * look just before
 *     ```
       <div id="footer">
       ```
   
 * Not working page doesn’t contain this JavaScript code. This is the reason.
    Open
   JavaScript console in the Google Chrome, you will see JavaScript errors. There
   are some errors related to the SyntaxHighligther at the working page also.
 *  Thread Starter [qwertis](https://wordpress.org/support/users/qwertis/)
 * (@qwertis)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/doesnt-count/#post-3279561)
 * The strange thing is that all the pages are generated from _single.php_.
    So 
   my logic is that if one page doesn’t work, all the pages should not work.
 * I fixed some errors, but i guess not the ones that causes the problem.
 * When i click the button i get “Uncaught ReferenceError: thankYouChangeButtonImage
   is not defined” in the JavaScript console.
 * Do you know how to fix this? (exept from removing SyntaxHighligther )

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Doesn't count’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/thanks-you-counter-button_69828d.
   svg)
 * [Thank You Counter Button](https://wordpress.org/plugins/thanks-you-counter-button/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/thanks-you-counter-button/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/thanks-you-counter-button/)
 * [Active Topics](https://wordpress.org/support/plugin/thanks-you-counter-button/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/thanks-you-counter-button/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/thanks-you-counter-button/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [qwertis](https://wordpress.org/support/users/qwertis/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/doesnt-count/#post-3279561)
 * Status: not resolved