• Resolved krichardson

    (@krichardson)


    Since upgrading WordPress to 4.3 the GeoTargeting Pro plugin v 1.4 generates a fatal error as below. I’ve since de-activated, delete and reinstalled the plugin to no effect.

    [Wed Sep 09 08:16:33 2015] [error] [client xxx.xxx.xxx.xxx] PHP Fatal error:  Uncaught exception 'RuntimeException' with message 'Unknown attribute: city' in /home/xxxxxxxxxxxx/public_html/www/wp-content/plugins/geotargeting-pro/vendor/geoip2/geoip2/src/GeoIp2/Model/AbstractModel.php:46
    [Wed Sep 09 08:16:33 2015] [error] [client xxx.xxx.xxx.xxx] Stack trace:
    [Wed Sep 09 08:16:33 2015] [error] [client xxx.xxx.xxx.xxx] #0 /home/xxxxxxxxxxxx/public_html/www/wp-content/plugins/geotargeting-pro/includes/class-geotarget-functions.php(487): GeoIp2\\Model\\AbstractModel->__get('city')
    [Wed Sep 09 08:16:33 2015] [error] [client xxx.xxx.xxx.xxx] #1 /home/xxxxxxxxxxxx/public_html/www/wp-content/plugins/geotargeting-pro/includes/class-geotarget-functions.php(387): GeoTarget_Functions->getUserDataByIp()
    [Wed Sep 09 08:16:33 2015] [error] [client xxx.xxx.xxx.xxx] #2 /home/xxxxxxxxxxxx/public_html/www/wp-content/plugins/geotargeting-pro/includes/class-geotarget-functions.php(43): GeoTarget_Functions->calculateUserCountry()
    [Wed Sep 09 08:16:33 2015] [error] [client xxx.xxx.xxx.xxx] #3 [internal function]: GeoTarget_Functions->setUserData('')
    [Wed Sep 09 08:16:33 2015] [error] [client xxx.xxx.xxx.xxx] #4 /home/xxxxxxxxxxxx/public_html/www/wp-includes/plugin.php(503): call_user_func_array(Array, Array)
    [Wed Sep 09 08:16:33 2015] [error] [client xxx.xxx.xxx.xxx] #5 /home/xxxxxxxxxxxx/public_html/www/wp-settings.php(353): do_action('init')
    [Wed Sep 09 08:16:33 2015] [error] [client xxx.xxx.xxx.xxx] #6 /home/xxxxxxxxxxxx/public_html/www/wp-config.php(100): require_once(' in /home/xxxxxxxxxxxx/public_html/www/wp-content/plugins/geotargeting-pro/vendor/geoip2/geoip2/src/GeoIp2/Model/AbstractModel.php on line 46

    https://www.ads-software.com/plugins/geotargeting/

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

    (@krichardson)

    For now I have commented out the following lines in includes/class-geotarget-functions.php and it is at least working now for countries only.

    Lines 487 – 491

    //$city       = $record->city->name ;
    //$cp         = $record->postal->code ;
    //$state      = $record->mostSpecificSubdivision ;
    //$continent  = $record->continent->name ;
    //$location   = $record->location ;
    Plugin Author Damian

    (@timersys)

    Hi krichardson for pro plugin support you need to use https://timersys.com/support/. We don’t support pro version on .org forums, this is only for lite version.

    Please open a ticket and we will send a patch right away

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error after upgrade to WP 4.3’ is closed to new replies.