I'm maintaining a Joomla 3.7.3 site which uses the default com_contact module to display a contact page. I'm trying to display some basic information about our business, address, email, phone, etc. What's strange to me is that the address information is correctly saved into the selected contact and both in the contact page and global options I have all the address field settings to show. My com_contact html in the template is unaltered, so I'm really not sure what's going on.
From looking at the html source, it looks like the php performs a check as to whether the contact has an address:
<?php if (($this->params->get('address_check') > 0) &&
($this->contact->address || $this->contact->suburb || $this->contact->state || $this->contact->country || $this->contact->postcode)) : ?>
This should return true, but it doesn't. The address section isn't included in the html loaded into the page, only a html placeholder comment for where the address section should go.
I've tried this with multiple contacts, but I haven't found a combination that works yet. So, 1) the contact has address details saved; 2) Contact Page options are set to show address fields; 3) Global settings are set to show address fields; 4) Default com_contact template is unmodified.
So, why does Joomla not recognize addresses?
UPDATE So, I've experimented a little and it seems to only be the address fields (address, city/suburb, state, postal code, and country). So, I'm beginning to suspect that this is either something messing up internally, either in the template or somewhere else. I suspect that the address_check function is somehow failing, but I don't have the code chops to debug this.