Ticket #2316 (closed defect: fixed)

Opened 3 years ago

Last modified 1 year ago

Custom Fields disappearing and "_encloseme" and "_pingme" entries in the database over and over

Reported by: cnc137 Assigned to: anonymous
Priority: normal Milestone: 2.3
Component: Administration Version: 2.0.5
Severity: normal Keywords: custom fields encloseme pingme disappear hidden has-patch
Cc:

Description

Myself and other have noticed after installing WordPress 2.0 that there are "_encloseme" and "_pingme" entries in the "wp_postmeta" database table over and over with "meta_value" set to "1". I upgraded from WordPress 1.5.2 to 2.0 if this helps diagnose the problem.

The problem is related to the custom field section on the "Write Post" page. I also noticed that some of my custom fields do not display in the custom fields section even though I can add them via the form generate by rc:custom_field_gui plugin. I tried adding these custom fields with the plugin turned on and off and both ways didn't work even though the form allows them to be added.

View this support topic for more details:

- Trouble with Custom Fields in 2.0

Thank you for looking into this.

Sincerely,

cnc137.

Attachments

2316.diff (475 bytes) - added by tenpura on 11/06/06 17:21:07.
Hide "_xxx" stuff from the dropdown. Increase the LIMIT value a bit.
2316b.diff (426 bytes) - added by Nazgul on 06/12/07 21:59:02.
2316c.diff (396 bytes) - added by markjaquith on 06/12/07 22:48:43.

Change History

01/20/06 20:56:45 changed by ryan

Regarding _pingme and _encloseme, custom fields preceded by an underscore are used internally by WP and are hidden from view in the "Custom Fields" form.

01/20/06 21:09:58 changed by cnc137

If I go to my Custom Fields area and click the drop-down box on the "Write Post" page I can see them there along with all my other custom fields I have created except for one custom field entry that is missing but works using the rc:custom_field_gui plugin.

It seems like "_encloseme" and "_pingme" custom fields keep getting set to "1" over and over everytime I edit a post. I only have 15 total posts and I have been editing them a lot because I have been making changes and testing our WordPress 2.0 setup before we go live with it. I already have 259 rows in my "wp_postmeta" table and 243 of them are entries for "_encloseme" and "_pingme" that I did not make.

cnc137.

01/22/06 21:21:50 changed by ryan

Yes, they'll show in the dropdown. We should probably filter there too.

2.0 didn't always clean up the _pingme and _encloseme fields. This will be fixed in 2.0.1, but the extra fields don't really cause a problem aside from being a little wasteful.

Ryan

01/31/06 05:01:53 changed by cnc137

  • keywords changed from custom fields encloseme pingme to custom fields encloseme pingme disappear hidden.
  • summary changed from "_encloseme" and "_pingme" entries in the database over and over to Custom Fields disappearing and "_encloseme" and "_pingme" entries in the database over and over.

My custom fields still seem to be disappearing randomly from the drop-down list. I magically no longer see the "_encloseme" and "_pingme" custom fields in the drop-down list, but others are missing or hidden now too.

I have the following custom fields and others that I have created and used under multiple topics on my WordPress site:

Screenshot 1, Screenshot 2, Screenshot 3, Screenshot 4, Screenshot 5

... but I only see the following in this order in my drop-down list on the "Write Post" page now:

Screenshot 1, Screenshot 5, Screenshot 4

Why would the "Screenshot 2" and "Screenshot 3" custom field I created and used under multiple entries all of a sudden disappear from the drop-down list? Is this a bug? Are they being hidden along with "_encloseme" and "_pingme" now?

It looks like some thing is goofy with the custom fields in WordPress 2.0 at least on my site. The previous entries that include "Screenshot 2" and "Screenshot 3" are still in the database and working on the site, but I can't add "Screenshot 2" or "Screenshot 3" to any new posts because they are not available in the drop-down list. I also can't make new custom fields for these because they already exist in the database.

If you need any more info from me let me know and I hope this gets addressed in WordPress 2.0.1, since the custom field entries are a vital part of my site.

cnc137.

02/03/06 07:49:38 changed by markjaquith

  • keywords changed from custom fields encloseme pingme disappear hidden to bg|reporter-feedback custom fields encloseme pingme disappear hidden.

Still have the problem with 2.0.1? Make sure to deactivate the custom files gui plugin before testing!

02/08/06 15:30:55 changed by cnc137

I have now upgraded from WP 2.0 to WP 2.0.1 and am still having these problems.

I fixed the disappearing custom fields by using the patch mentioned in this ticket:

Ticket #1865 Admin custom field key dropdown has hardcoded limit of 10

Is this patch going to be incorporated in the next version of WordPress and why wouldn't we be able to add more than 10 custom fields?

But...

I am still seeing the the "_encloseme" and "_pingme" in the drop down list even with the "rc:custom_field_gui" plugin turned off.

And...

I am still seeing a "_encloseme" and "_pingme" entries in the "wp_postmeta" database table everytime I make a new post or edit one with the "rc:custom_field_gui" plugin turned on or off. I still have only have 15 posts on my testing site, but I have 361 "wp_postmeta" table entries and 294 of them are the "_encloseme" and "_pingme" entries over and over again.

Hopefully this will be fixed in WP 2.0.2 or 2.1?

cnc137.

02/23/06 23:36:18 changed by matt

"Ticket #1865 Admin custom field key dropdown has hardcoded limit of 10"

Chill, you can have unlimited custom fields, that ticket is just about which keys appear in the drop down. (The 10 most recent.)

02/27/06 11:17:58 changed by davidhouse

Can no-one else verify this? Try creating a vanilla testblog on the same server setup as the one where it's broken, and see if it's still broken.

08/31/06 00:40:42 changed by foolswisdom

In http://wordpress.org/support/topic/54187 , people have continued to report this problem. Is there any insights in that thread? What information will help understand the problem?

11/06/06 17:21:07 changed by tenpura

  • attachment 2316.diff added.

Hide "_xxx" stuff from the dropdown. Increase the LIMIT value a bit.

11/06/06 17:23:49 changed by tenpura

  • keywords changed from bg|reporter-feedback custom fields encloseme pingme disappear hidden to bg|reporter-feedback custom fields encloseme pingme disappear hidden has-patch.

11/06/06 17:29:38 changed by tenpura

  • version changed from 2.0 to 2.0.5.
  • milestone set to 2.1.

12/01/06 10:04:19 changed by matt

  • milestone deleted.

06/12/07 21:59:02 changed by Nazgul

  • attachment 2316b.diff added.

06/12/07 22:01:47 changed by Nazgul

  • keywords changed from bg|reporter-feedback custom fields encloseme pingme disappear hidden has-patch to custom fields encloseme pingme disappear hidden has-patch.
  • milestone set to 2.3 (trunk).

Patch hides internal custom fields from the Custom Fields drop-down box on the "Write Post" page.

06/12/07 22:48:43 changed by markjaquith

  • attachment 2316c.diff added.

06/12/07 22:49:43 changed by markjaquith

Why don't we just exclude them from the query? Otherwise, we could end up with an empty dropdown box (if all the returned keys have an underscore prefix). See 2316c.diff

06/12/07 22:54:39 changed by rob1n

I like patch C. Makes life easier.

06/12/07 23:22:38 changed by markjaquith

  • status changed from new to closed.
  • resolution set to fixed.

(In [5691]) Omit underscore-prefixed meta keys from dropdown list. fixes #2316

06/12/07 23:44:45 changed by markjaquith

(In [5692]) Correct SQL query in [5691]. fixes #2316