Geo Redirect
[resolved] Unable to activate the plugin (4 posts)

  1. mats_
    Posted 4 years ago #

    Hi, today I wanted to install geo redirect 3.0 on a new WordPress Multisite. When trying to activate the plugin, a message showed

    Fatal error: Cannot redeclare geoip_country_code_by_name() in /is/htdocs/wp10607024_9TOQWRR0T3/www/wordpress/wp-content/plugins/geographical-redirect/geoip/geoip.inc on line 508

    I got this message also with geo redirect 2.0. Do you have some idea?


  2. ade11
    Posted 3 years ago #

    I got this message when activating the plugin with the Visitor-Country plugin also activated.

    The "redeclare" means that some other plugin you are using also uses GeoIP code generally, and that function in particular.

    Disable other plugins that may be using some form of geo-location and this plugin will activate.

    To the authors of all these geo-location/geo-targeting plugins, you should always check if functions are defined and not assume your plugin will be used in isolation.

  3. mats_
    Posted 3 years ago #

    Thanks for the hint. I deactivated all plugins, but still can't activate geo redirect. I set the file-properties to 0777, but the same error message shows as before.

  4. Artem Platonov
    Plugin Author

    Posted 3 years ago #

    ade11 is right. Try to delete other plugins that may use geolocation functionality. The only reason of such failure is that the same function is already declared somewhere in you WP code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Geo Redirect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic