• Find below the error generated by ip2location when debug is turned on

    Strict Standards: Non-static method IP2LocationRedirection::set_defaults() should not be called statically in wp-content/plugins/ip2location-redirection/ip2location-redirection.php on line 821
    
    Notice: Undefined offset: 0 in wp-includes/plugin.php on line 903
    
    Strict Standards: Non-static method IP2LocationRedirection::uninstall() should not be called statically in wp-content/plugins/ip2location-redirection/ip2location-redirection.php on line 822
    
    Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in wp-includes/functions.php on line 3570

    I’m running PHP 5.4. Previous submissions have gone unanswered. Kindly reply.

    https://wordpress.org/plugins/ip2location-redirection/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dedayoa

    (@dedayoa)

    I was able to resolve the errors by making the erring functions static, but the plugin still won’t work.
    The options for lookup mode and site redirection never set/get saved.

    On top of what @dedayoa reports the plugin also generates unexpected output upon activation.

    The plugin generated 413 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    Apart from that I don’t understand why a plugin developer would use has_cap in this day and age; this has been deprecated already for a very long time now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Errors in ip2location preventing it from working’ is closed to new replies.