Forums

all custom field/value combos displaying on Add New Page page (3 posts)

  1. alxndr
    Member
    Posted 2 years ago #

    Background info: I've imported lots of posts with custom fields and different values.

    When I go to the Add New Page page, the custom fields section is pre-populated with every combination of custom field->value (thousands of them). This makes for a very long page, and the Javascript takes long enough to execute that Firefox pops up the "unresponsive script" message.

    I can delete the custom field entries one by one, but if PHP error reporting is on I get these Notices when trying to delete:

    Notice: Trying to get property of non-object in ...\wp-includes\capabilities.php on line 821

    Notice: Trying to get property of non-object in ...\wp-includes\capabilities.php on line 825

    Notice: Trying to get property of non-object in ...\wp-includes\capabilities.php on line 828

    Notice: Trying to get property of non-object in ...\wp-includes\capabilities.php on line 839

    Notice: Trying to get property of non-object in ...\wp-includes\capabilities.php on line 841
    1

    (That final "1" is in the error div as well.)

    I'd really rather not click "delete" thousands of times for each page I want to add. Anyone know what's going on here?

  2. alxndr
    Member
    Posted 2 years ago #

    Ping...

    This is happening on both the Add New Post and Add New Page screens.

  3. alxndr
    Member
    Posted 2 years ago #

    Did a little more searching and found a possible solution: dropping rows in wp_postmeta which have post_id=0 appears to have fixed the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic