Title: ulike_obj
Last modified: September 6, 2017

---

# ulike_obj

 *  [knivore](https://wordpress.org/support/users/knivore/)
 * (@knivore)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/ulike_obj/)
 * I’ve updated 2.6 to v2.8 and as i’m using ulike_obj.ajaxurl previously on v2.6
   is now not working on v2.8. May i check with you how do i get the ajaxurl easily?
 * Thanks

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

 *  Thread Starter [knivore](https://wordpress.org/support/users/knivore/)
 * (@knivore)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/ulike_obj/#post-9471893)
 * I found out the new url is -> wp_ulike_params.ajax_url but upon using the new
   url, seems like on success, the response is empty. Any idea?
 *  Plugin Author [Alimir](https://wordpress.org/support/users/alimir/)
 * (@alimir)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/ulike_obj/#post-9488101)
 * [@knivore](https://wordpress.org/support/users/knivore/)
 * Do you use the old functions structure? Please check our new wp-ulike.js functionalities.
 *  Thread Starter [knivore](https://wordpress.org/support/users/knivore/)
 * (@knivore)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/ulike_obj/#post-9491621)
 * I’ve updated to this structure ->
    $.ajax({ type:’POST’, cache: false, dataType:‘
   json’, url: wp_ulike_params.ajax_url, data:{ action: ‘wp_ulike_process’, id: 
   60, type: “likeThisTopic”, nonce: 0, status: 4 }, success: function(response){
   console.log(response) }
 * But the console log is showing me null pointer. Was wondering if i’ve missed 
   out anything.
 *  Plugin Author [Alimir](https://wordpress.org/support/users/alimir/)
 * (@alimir)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/ulike_obj/#post-9491753)
 * [@knivore](https://wordpress.org/support/users/knivore/)
 * The value of 0 is not acceptable in nonce data. You’ve to use of the nonce data
   attribute.
    why you don’t use of the default script?!
 *  Plugin Author [Alimir](https://wordpress.org/support/users/alimir/)
 * (@alimir)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/ulike_obj/#post-9491759)
 * You have also used static id & status values!!!!
 *  Thread Starter [knivore](https://wordpress.org/support/users/knivore/)
 * (@knivore)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/ulike_obj/#post-9495196)
 * The status & id was actually retrieved from on click. Just that i plaste it in
   here for convenience sake.
 * I would like to use the default script, but because i’m currently maintaining
   another person’s code base so i like to make minimal changes.
 * So i guess its the missing nonce value that is causing me issues then.

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

The topic ‘ulike_obj’ is closed to new replies.

 * ![](https://ps.w.org/wp-ulike/assets/icon.svg?rev=2453069)
 * [WP ULike – Like & Dislike Buttons for Engagement and Feedback](https://wordpress.org/plugins/wp-ulike/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-ulike/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-ulike/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-ulike/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-ulike/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-ulike/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [knivore](https://wordpress.org/support/users/knivore/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/ulike_obj/#post-9495196)
 * Status: not resolved