Listing attributes randomly disappearing

Hey,

I’m having the following strange issue:

Steps to reproduce

Install the Hivepress theme along with the Geolocation, Memberships, Messages and Search Alerts extensions. Create custom listing attributes of various types (e.g. radio buttons, checkboxes, etc.), and add them to all listing categories (26 for me, in case it matters). Add some listings using those attributes.

I used the following settings for one of the attributes, though other attributes have different settings depending on their content (buttons, text, etc.). Most of the settings remain the same across attributes though.

EDITING
Editable: Allow
Required: Required
Moderated: No
Field name: example
Field type: Radio Buttons (e.g.)
Description: none
Options: some options

SEARCH
Filterable: Yes
Indexable: Yes
Sortable: Yes
Field Type: Checkboxes
Options: Search (yes)

DISPLAY
Pages: Not selected
Areas: Page (secondary)
Icon: none
Format: %label%: %value%

Actual result

The attributes disappear after some time. As in, none of the attributes are displayed on the listing details page, nor in the filtering list on the left side of the listing search overview. They also disappear from the “Submit a listing” page. In short, they completely vanish from the site. If I then update one of the attributes (with or without changing it’s contents - all that matters is that I hit the update button) then all attributes reappear at all locations.

Expected result

I’d expect them to not vanish :slight_smile:

Extra details

I’m currently running PHP 8.3, but I believe this happened when I was using an earlier version, too. I already tried disabling all third-party plugins, clearing the cache, etc. Nothing worked, but as soon as I hit the update button on any one attribute, everything goes back to how it should be. So I’m guessing it’s somehow related to the problem.

Hi,

This is likely due to custom code, third-party plugins, server-side, or WP installation issues. Since we use the WordPress API (meta fields, taxonomy, post types, etc.), they cannot be deleted by themselves, and HivePress does not have a function that can delete attributes automatically.

Hi, thanks for the quick reply. Are you sure there is nothing on Hivepress’ side that could be causing this? I already tried disabling all third-party plugins, and I don’t have any custom code outside of the code snippets plugin, which I believe is deactivated when the plugin itself is deactivated. Is there any way I can make sure this has nothing to do with Hivepress?

I just checked it again, all plugins disabled, cache cleared - as soon as I went to Listings → Attributes, clicked Quick Edit and then clicked Update, all the attributes are shown again. I didn’t have to make any actual changes to the attribute, I just had to click Update.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.