PHP Notice: Trying to get property of non-object
-
[17-Jul-2018 04:03:22 UTC] PHP Notice: Trying to get property of non-object in ../wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php on line 448 [17-Jul-2018 04:03:22 UTC] PHP Notice: Trying to get property of non-object in ../wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php on line 449 [17-Jul-2018 04:03:22 UTC] PHP Notice: Trying to get property of non-object in ../wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php on line 450 [17-Jul-2018 04:03:22 UTC] PHP Notice: Trying to get property of non-object in ../wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php on line 451 [17-Jul-2018 04:03:22 UTC] PHP Notice: Trying to get property of non-object in ../wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php on line 452 [17-Jul-2018 04:03:22 UTC] PHP Notice: Trying to get property of non-object in ../wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php on line 453 [17-Jul-2018 04:03:22 UTC] PHP Notice: Trying to get property of non-object in ../wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php on line 454 [17-Jul-2018 04:03:22 UTC] PHP Notice: Trying to get property of non-object in ../wp-content/plugins/duracelltomi-google-tag-manager/public/frontend.php on line 455
Looks like it’s this
$dataLayer[ "geoCountryCode" ] = $geodata->country_code; $dataLayer[ "geoCountryName" ] = $geodata->country_name; $dataLayer[ "geoRegionCode" ] = $geodata->region_code; $dataLayer[ "geoRegionName" ] = $geodata->region_name; $dataLayer[ "geoCity" ] = $geodata->city; $dataLayer[ "geoZipcode" ] = $geodata->zip_code; $dataLayer[ "geoLatitude" ] = $geodata->latitude; $dataLayer[ "geoLongitude" ] = $geodata->longitude;
But I don’t have GeoData checked in the settings
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘PHP Notice: Trying to get property of non-object’ is closed to new replies.