• Resolved e dev

    (@efishinsea)


    breaks any site with the plugin.

    PHP Fatal error:  Uncaught Error: Undefined constant "DBVERSION" in /public_html/wp-content/plugins/iq-block-country/libs/blockcountry-logging.php:56
    Stack trace:
    #0 /public_html/wp-content/plugins/iq-block-country/iq-block-country.php(151): iqblockcountry_update_db_check()
    #1 /public_html/wp-content/plugins/iq-block-country/iq-block-country.php(208): iqblockcountry_upgrade()
    #2 /public_html/wp-settings.php(428): include_once('/home4/canbycar...')
    #3 /public_html/wp-config.php(109): require_once('/home4/canbycar...')
    #4 /public_html/wp-load.php(50): require_once('/home4/canbycar...')
    #5 /public_html/wp-blog-header.php(13): require_once('/home4/canbycar...')
    #6 /public_html/index.php(17): require('/home4/canbycar...')
    #7 {main}
      thrown in /public_html/wp-content/plugins/iq-block-country/libs/blockcountry-logging.php on line 56
Viewing 14 replies - 1 through 14 (of 14 total)
  • i have this error too

    Plugin Author Pascal

    (@iqpascal)

    Which PHP version are you using?

    Thanks for getting the plugin back online!

    I get this too, on a site I just launched today on a fresh Siteground install, PHP 7.4.30.

    It doesn’t break my site but I see this error at the top of the page in the back end.

    This shows as a Warning in the WP Dashboard, every page, it seems.
    PHP version 7.4.30

    I am having the same problem on two websites today where the plugin was updated. Going to deactivate on all my other sites… I know this plugin has not been listed on wordpress.com for a while now, but I kept using it because I liked the functionality and could make it work. Until now.

    same problem, just crashed my site after the update. Running php 8.1

    Not complaining, I’ve enjoyed your plugin for years, so thank you. Just an FYI

    Same here, PHP 7.3.33.
    I temporarily disabled.

    Warning: Use of undefined constant DBVERSION – assumed ‘DBVERSION’ (this will throw an Error in a future version of PHP) in /www/wwwroot/www.xxxx.xxx/wp-content/plugins/iq-block-country/libs/blockcountry-logging.php on line 56

    PHP 7.4.30

    • This reply was modified 2 years, 4 months ago by kop5.
    Plugin Author Pascal

    (@iqpascal)

    For any 7.3.x or 7.4.x it should not be a blocking issue (unless you have display_errors on which on production sites you shouldn’t).

    It should however be fixed in the new release

    Just installed the latest version form www.remarpro.com.

    readme.txt says “Stable tag: 1.2.17”

    Plugin overview still says “there is a new version available” 1.2.17

    So something still does not work …

    I am on php 8

    I installed again, this time via FTP.
    Cannot activate because:

    `Fatal error: Uncaught Error: Undefined constant “DBVERSION”
    in /www/1234/htdocs/wb/wp-content/plugins/iq-block-country_/libs/blockcountry-logging.php on line 56

    Aufrufstapel

    iqblockcountry_update_db_check()
    wp-content/plugins/iq-block-country_/iq-block-country.php:151
    iqblockcountry_upgrade()
    wp-content/plugins/iq-block-country_/iq-block-country.php:208
    include_once()
    wp-admin/includes/plugin.php:2313
    plugin_sandbox_scrape()
    wp-admin/plugins.php:192

    • This reply was modified 2 years, 4 months ago by faglork.

    PHP 8.0
    (using also WP-Optimize; until iQ Block Country V 1.2.15 no problems).

    Fatal error: Uncaught Error: Undefined constant "DBVERSION" in /var/www/vhosts/url.xyz/httpdocs/words/wp-content/plugins/iq-block-country/libs/blockcountry-logging.php:56 Stack trace: 
    #0 /var/www/vhosts/url.xyz/httpdocs/words/wp-content/plugins/iq-block-country/iq-block-country.php(151): iqblockcountry_update_db_check() 
    #1 /var/www/vhosts/url.xyz/httpdocs/words/wp-content/plugins/iq-block-country/iq-block-country.php(208): iqblockcountry_upgrade() 
    #2 /var/www/vhosts/url.xyz/httpdocs/words/wp-admin/includes/plugin.php(2313): include_once('/var/www/vhosts...') 
    #3 /var/www/vhosts/url.xyz/httpdocs/words/wp-admin/plugins.php(192): plugin_sandbox_scrape('iq-block-countr...') 
    #4 {main} thrown in /var/www/url.xyz/httpdocs/words/wp-content/plugins/iq-block-country/libs/blockcountry-logging.php on line 56

    Thank you for fixing! v 1.2.17 is now working for me.

    Thread Starter e dev

    (@efishinsea)

    agreed. Constant has been defined and no longer causes errors in PHP v7.4 or v8.x

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘DBVERSION Undefined in Version 1.2.15’ is closed to new replies.