Profile is disabled OR it is not configured
The gid is the ID number of the profile.  Something is calling for that profile, but it can't/won't pull it up for one of those various reasons.

Two factors to consider:


What is profile 24?
Why is Advanced Search trying to use it?


My hunch is that CiviHR creates a special profile and sets it to be used as the default search view.  You can customize the columns you see when you run a search, and to do it, you set up a profile with the fields you want.

First, go into your profiles administration page and look for the one with ID 24 (looking both in the User-Defined Profiles and the Reserved Profiles).  If there is none, that explains why it can't be found.  If you find it, click Settings and check all the "used for" boxes.  See if that helps.

Next, check your search preferences (Administer - Customize Data and Screens - Search Preferences) and see if a Default Contact Search Profile is set.  Set it to None and save.