Title: Deprecated Errors
Last modified: March 31, 2025

---

# Deprecated Errors

 *  Resolved [snippet24](https://wordpress.org/support/users/snippet24/)
 * (@snippet24)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/deprecated-errors-18/)
 * Upon using the shortcodes I’m getting:
 *     ```wp-block-code
       Deprecated: Constant FILTER_SANITIZE_STRING is deprecated in \wp-content\plugins\user-ip-and-location\inc\class.Browser.php on line 22
       ```
   
 * Do note I’m using php 8.2 maybe that’s the cause. Also I’m running WordPress 
   in localhost.

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

 *  Plugin Contributor [Sunny Kumar](https://wordpress.org/support/users/5unnykum4r/)
 * (@5unnykum4r)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/deprecated-errors-18/#post-18553257)
 * Hi,
 * We have released a major update for the plugin, so you should no longer encounter
   these types of issues.
 * Let me know if you’re still facing any issues with the plugin.
 *  Thread Starter [snippet24](https://wordpress.org/support/users/snippet24/)
 * (@snippet24)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/deprecated-errors-18/#post-18556354)
 * Thank you! Should it work as well in localhost? because I’m getting empty fields
   where the shortcodes are placed. Example:
 *     ```wp-block-code
       <?php echo do_shortcode('[userip_location type="flag" height="auto" width="50px"]'); ?>
       ```
   
 * returns nothing, no errors though.
    -  This reply was modified 10 months, 2 weeks ago by [snippet24](https://wordpress.org/support/users/snippet24/).
 *  Plugin Contributor [Sunny Kumar](https://wordpress.org/support/users/5unnykum4r/)
 * (@5unnykum4r)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/deprecated-errors-18/#post-18556377)
 * Hi [@snippet24](https://wordpress.org/support/users/snippet24/)
 * I tested it locally on the default WordPress theme and it’s working! Could you
   please check again or use the “**Query Monitor**” plugin to identify what’s causing
   the issue?
 * Regards,
   Sunny Kumar
 *  Thread Starter [snippet24](https://wordpress.org/support/users/snippet24/)
 * (@snippet24)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/deprecated-errors-18/#post-18556401)
 * Hi, query monitor doesn’t return any errors, maybe could it be related that I’m
   using the shortcode directly inside a page template?
 * Kind Regards
    -  This reply was modified 10 months, 2 weeks ago by [snippet24](https://wordpress.org/support/users/snippet24/).
 *  Thread Starter [snippet24](https://wordpress.org/support/users/snippet24/)
 * (@snippet24)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/deprecated-errors-18/#post-18556417)
 * (deleted)
    -  This reply was modified 10 months, 2 weeks ago by [snippet24](https://wordpress.org/support/users/snippet24/).
 *  Plugin Contributor [Sunny Kumar](https://wordpress.org/support/users/5unnykum4r/)
 * (@5unnykum4r)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/deprecated-errors-18/#post-18556455)
 * If you’re seeing blank values in the “Your Info” section, it likely means there’s
   an issue, most likely a CORS issue, causing this.
 * There might be a plugin or theme conflicting with the plugin. I need to check
   it, so could you please upload the backup and share the credentials to my personal
   email?
 *  Thread Starter [snippet24](https://wordpress.org/support/users/snippet24/)
 * (@snippet24)
 * [10 months, 2 weeks ago](https://wordpress.org/support/topic/deprecated-errors-18/#post-18556538)
 * Hi,
 * Well is not completely blank; this is what im getting in the info tab, I deleted
   the above post because I think for localhost there’s no location, nor ISP nor
   coordinates I suppose? :
 * > This is the information we’ve detected for your current connection. IP Address:
   > 127.0.0.1 Location: ISP: Coordinates: , User Agent: ** deleted**
 * Regards

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

The topic ‘Deprecated Errors’ is closed to new replies.

 * ![](https://ps.w.org/user-ip-and-location/assets/icon-128x128.png?rev=2266462)
 * [User IP and Location](https://wordpress.org/plugins/user-ip-and-location/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-ip-and-location/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-ip-and-location/)
 * [Active Topics](https://wordpress.org/support/plugin/user-ip-and-location/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-ip-and-location/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-ip-and-location/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [snippet24](https://wordpress.org/support/users/snippet24/)
 * Last activity: [10 months, 2 weeks ago](https://wordpress.org/support/topic/deprecated-errors-18/#post-18556538)
 * Status: resolved