WordPress.org

Forums

Wp-Insert
[resolved] Fatal Error (5 posts)

  1. confuscius
    Member
    Posted 1 year ago #

    Fatal error: Cannot redeclare geoip_country_code_by_name()
    Reports at common/geoip/geoip.inc on line 438.

    Solve that and another one appears.

    http://wordpress.org/plugins/wp-insert/

  2. namith.jawahar
    Member
    Plugin Author

    Posted 1 year ago #

    Looks like a conflict with another plugin that uses Geo IP database...You will have to deactivate the conflicting plugin to use Wp-Insert

  3. confuscius
    Member
    Posted 1 year ago #

    Funny that when I find the other plugin that they will probably say the same as you have just said!

    http://www.razvantudorica.com/03/cannot-redeclare-geoip_country_code_by_name/ - why is this not an appropriate solution for your code?

  4. namith.jawahar
    Member
    Plugin Author

    Posted 1 year ago #

    I'm doing that (check countries.php in common folder). Im checking for the whole GEO IP Class and preventing that from redeclaring itself if already present. the problem is everyone has to do just that and due to some strange reason the check is proving to be unreliable in different installations..

  5. confuscius
    Member
    Posted 1 year ago #

    Thanks for the info.

    I applied the test code to the two functions in geoip.inc as the fix for this issue - applying the test again cannot do any harm as far as I can see.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic