• Hey!

    First of all, great work with this plugin!
    It does something we have needed a long time, with so little hassle!

    But i’m experiencing a small bug.
    When i browse my posts/pages/CPT’s i get the following error:

    Notice: Undefined index: fields in /path/to/wp/project/webroot/wp-content/plugins/cpt-onomies/cpt-onomy.php on line 1689

    Seems like this only happens when there are no fields / meta boxes present in the given post type.
    This might not be a regular problem for posts/pages, but especially for CPT’s.
    In our case we have removed the content editor so that’s why we get the error on pages/posts btw.

    Example urls:
    /wp-admin/edit.php
    /wp-admin/edit.php?post_type=page
    /wp-admin/edit.php?post_type=custom_post_type

    Note that i’m running with error reporting activated (WP_DEBUG = true).

    Hope to hear from you soon ??
    Best regards, Robert Sather.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m getting the same error on line 1689 with CPT 1.3.5 and WP 4.7. It looks like this script initializes $args[ 'fields' ] inside if-tests, so a simple unconditional setting early on might nip this in the bud. Or flesh out the if-test at 1689 by testing to see if the index is set as you do elsewhere:

    if ( isset( $args[ 'fields' ] ) && 'tt_ids' == $args[ 'fields' ] )

    Best of luck keeping all your plates spinning! Your work is greatly appreciated. We all know how hard it is to pull that off with a minimum of crockery shards.

    Warmly,
    Paul

    mvaneijgen

    (@mvaneijgen)

    Got the same problem running version 1.3.5 post are created with CPT UI version 1.5.2.

    Anyone found a fix for it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Notice: Undefined index: fields in…’ is closed to new replies.