• After upgrading iQ Block Country to 1.2.23, all my pages shows: “There has been a critical error on this website.” after some reloads (F5) it sometimes work, after disabling the Plugin, everything is back to normal, please fix it.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Pascal

    (@iqpascal)

    It would be helpful if you would share more info which error you are getting as I can’t fix something that I don’t have myself.

    Thread Starter dolphin22

    (@dolphin22)

    That is not so easy, i use WordPress 6.5.5 and PHP 8.2.20, an there is no Error Message, just this white Screen that shows “There has been a critical error on this website.” after some reloads (F5) it sometimes work, but not always. If i disable the Plugin everything is fine. it looks like, there is some form of timeout, it is not easy to reproduce. Fact is with the plugin enabled, there is sometimes this behave. If it is disabled, there are no problems. But maybe the problem is somewhere else, i try to investigate a little bit more.

    Plugin Author Pascal

    (@iqpascal)

    Do you have any other plugins that uses the GeoIP2 libraries? So basically any other plugin that uses the MaxMind database for anything else?

    Thread Starter dolphin22

    (@dolphin22)

    @mishash thank you for the investigation, since the plugin does not provide the GEO-Database, i use a cronjob to download it from Maxmind (a have an account) and put in

    /var/www/vhosts/[my domain]/wp-content/uploads/GeoLite2-Country.mmdb

    maybe this helps to find the problem.

    For now i deactivated the plugin on all my sites, because the don’t work reliable any more.

    Thread Starter dolphin22

    (@dolphin22)

    @iqpascal i don’t have any other plugins that uses an Geo-IP-Database, besides WPStatics, which uses its own, not an external one.

    Thread Starter dolphin22

    (@dolphin22)

    is there a location where you search for the Database, i can put it in any folder. At the moment the database is located in wp-content/uploads/GeoLite2-Country.mmdb

    is the name of the Database correct ?

    Plugin Author Pascal

    (@iqpascal)

    It won’t be the database or the location but most likely a conflict with another plugin that also uses the GeoIP2 libraries but then a different version

    Thread Starter dolphin22

    (@dolphin22)

    than this is not the problem:

    GeoIP2 database exists. File date: 15. June 2024 2:00

    but the above problem with the white screen and this short error message is still a thing.

    I am sure we are not the only ones, with this problem.

    Thread Starter dolphin22

    (@dolphin22)

    I don’t know, here a list of my Plugins:

    Advanced Editor Tools 05.09.02
    Advanced Image Styles 0.4.1
    Classic Editor 01.06.03
    Classic Widgets 0.3
    Custom Meta Widget 01.05.01
    Disable & Remove Google Fonts 01.06.03
    Event Organiser 03.12.05
    FancyBox for WordPress 03.03.04
    Garden Gnome Package 02.02.09
    iQ Block Country 01.02.23
    Limit Login Attempts Reloaded 2.26.11
    Link Manager 0.1-beta
    Media Tools 1.1
    New User Approve 2.6
    NextGEN Gallery 3.59.3
    Optimize Database after Deleting Revisions 05.02.02
    Post Notification by Email 04.01.03
    qrcode_wprhe 01.02.06
    Revision Control 02.03.02
    TablePress 02.03.02
    User Access Manager 02.02.23
    User Role Editor 4.64.2
    WP-DownloadManager 1.68.8
    WP-Polls 2.77.2
    WP Activity Log 05.01.00
    WP Statistics 14.08.01
    • This reply was modified 4 months, 3 weeks ago by dolphin22.

    @iqpascal Re “It won’t be the database or the location but most likely a conflict with another plugin that also uses the GeoIP2 libraries but then a different version”. No, not in my case. No other plugins using GeoIP database and the code outside WordPress that uses this database uses the identical copy of the database located outside WordPress.

    I reverted to the previous version of the plugin and no issues whatsoever. Must be something that was introduced in the last version.

    Plugin Author Pascal

    (@iqpascal)

    If you don’t have any other plugins using the (old) GeoIP2 library you won’t have this error so unless you don’t have the exact same error message (other than a different path) post the error message.

    coldrealms65

    (@coldrealms65)

    here is the PHP error I receive – whenever the plugin is installed my site is crashed was working until the last update:

    [31-Jul-2024 18:22:11 UTC] PHP Fatal error: Declaration of GeoIp2\Database\Reader::country(string $ipAddress): GeoIp2\Model\Country must be compatible with GeoIp2\ProviderInterface::country($ipAddress) in /var/www/advantechmsp.com/html/wp-content/plugins/iq-block-country/vendor/geoip2/geoip2/src/Database/Reader.php on line 107

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.