GeoDirectory SupportTrying to get property of non-object in geodir_count_functions.php on line 200 – GeoDirectory Support https://wpgeodirectory.com/support/topic/trying-to-get-property-of-non-object-in-geodir_count_functions-php-on-line-200/feed Thu, 29 Jan 2026 12:03:29 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/trying-to-get-property-of-non-object-in-geodir_count_functions-php-on-line-200/#post-35664 <![CDATA[Trying to get property of non-object in geodir_count_functions.php on line 200]]> https://wpgeodirectory.com/support/topic/trying-to-get-property-of-non-object-in-geodir_count_functions-php-on-line-200/#post-35664 Tue, 31 Mar 2015 02:14:57 +0000 rosarnach Hi guys!

I’m getting the following error on all the posts on my site:

Notice: Trying to get property of non-object in /homepages/18/d255072590/htdocs/clickandbuilds/TheCeliacScene/wp-content/plugins/geodir_location_manager/geodir_count_functions.php on line 200

An example is:

http://theceliacscene.ca/more-starbucks-gluten-free-treats-offered/

Everything else is working fine.

Line 200 is the third if line below.


function gd_get_terms($arr,$tax,$args){

if(isset($args['gd_no_loop'])){return $arr;}// so we don't do an infinit loop

	if(!empty($arr)){
		$term_count = geodir_get_loc_term_count('term_count');

		foreach ($arr as $term) {
			if (isset($term_count[$term->term_id])) {
				$term->count = $term_count[$term->term_id];
			}
		}
	}

	return $arr;
}

Any suggestions?

]]>
https://wpgeodirectory.com/support/topic/trying-to-get-property-of-non-object-in-geodir_count_functions-php-on-line-200/#post-35708 <![CDATA[Reply To: Trying to get property of non-object in geodir_count_functions.php on line 200]]> https://wpgeodirectory.com/support/topic/trying-to-get-property-of-non-object-in-geodir_count_functions-php-on-line-200/#post-35708 Tue, 31 Mar 2015 15:09:27 +0000 Paolo

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/trying-to-get-property-of-non-object-in-geodir_count_functions-php-on-line-200/#post-35718 <![CDATA[Reply To: Trying to get property of non-object in geodir_count_functions.php on line 200]]> https://wpgeodirectory.com/support/topic/trying-to-get-property-of-non-object-in-geodir_count_functions-php-on-line-200/#post-35718 Tue, 31 Mar 2015 16:31:06 +0000 rosarnach

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>
https://wpgeodirectory.com/support/topic/trying-to-get-property-of-non-object-in-geodir_count_functions-php-on-line-200/#post-35719 <![CDATA[Reply To: Trying to get property of non-object in geodir_count_functions.php on line 200]]> https://wpgeodirectory.com/support/topic/trying-to-get-property-of-non-object-in-geodir_count_functions-php-on-line-200/#post-35719 Tue, 31 Mar 2015 16:41:01 +0000 Paolo

A valid license is required to view this reply.

You may need to login

OR

Buy either a Membership or valid license for this product.

Thanks, Team GeoDirectory!

]]>