• Resolved Imagesnippet24

    (@snippet24)


    Upon using the shortcodes I’m getting:

    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 ImageSunny Kumar

    (@5unnykum4r)

    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 Imagesnippet24

    (@snippet24)

    Thank you! Should it work as well in localhost? because I’m getting empty fields where the shortcodes are placed. Example:

    <?php echo do_shortcode('[userip_location type="flag" height="auto" width="50px"]'); ?>

    returns nothing, no errors though.

    • This reply was modified 5 months, 1 week ago by Imagesnippet24.
    Plugin Contributor ImageSunny Kumar

    (@5unnykum4r)

    Hi @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 Imagesnippet24

    (@snippet24)

    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 5 months, 1 week ago by Imagesnippet24.
    Thread Starter Imagesnippet24

    (@snippet24)

    (deleted)

    • This reply was modified 5 months, 1 week ago by Imagesnippet24.
    Plugin Contributor ImageSunny Kumar

    (@5unnykum4r)

    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 Imagesnippet24

    (@snippet24)

    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)

You must be logged in to reply to this topic.