Title: GeoIP JavaScript Error
Last modified: May 23, 2024

---

# GeoIP JavaScript Error

 *  Resolved [WebCodePoet](https://wordpress.org/support/users/senjoralfonso/)
 * (@senjoralfonso)
 * [2 years ago](https://wordpress.org/support/topic/geoip-javascript-error/)
 * Hitting the buttons to update leads to following in Safari:
 *     ```wp-block-code
       [Error] TypeError: jQuery.ajax({
       url: ajaxurl,
       type: 'post',
       data: {
       'action': 'wp_statistics_update_geoip_database',
       'update_action': geoip_action,
       'wps_nonce': '4bf202ec70'
       },
       datatype: 'json',
       }).success is not a function. (In 'jQuery.ajax({
       url: ajaxurl,
       type: 'post',
       data: {
       'action': 'wp_statistics_update_geoip_database',
       'update_action': geoip_action,
       'wps_nonce': '4bf202ec70'
       },
       datatype: 'json',
       }).success(function (result) {
       jQuery(".geoip-update-loading").remove();
       jQuery(geoip_clicked_button).after("" + result + "")
       })', 'jQuery.ajax({
       url: ajaxurl,
       type: 'post',
       data: {
       'action': 'wp_statistics_update_geoip_database',
       'update_action': geoip_action,
       'wps_nonce': '4bf202ec70'
       },
       datatype: 'json',
       }).success' is undefined)
       (anonyme Funktion) (admin.php:2324)
       dispatch (jquery.min.js:2:40041)
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * (@mostafas1990)
 * [2 years ago](https://wordpress.org/support/topic/geoip-javascript-error/#post-17777199)
 * Thanks for reporting this issue. Please try the following steps to fix the GeoIP
   update error in Safari:
    1. Clear your browser cache.
    2. Make sure Safari is up to date.
    3. Update the WP Statistics plugin to the latest version.
    4. Disable other plugins to check for conflicts.
    5. Check the browser console for more error details (Option+Cmd+I, then go to the
       Console tab).
 * If the problem continues, please contact the plugin support team for more help.

Viewing 1 replies (of 1 total)

The topic ‘GeoIP JavaScript Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mostafa Soufi](https://wordpress.org/support/users/mostafas1990/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/geoip-javascript-error/#post-17777199)
 * Status: resolved