pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.07k stars 264 forks source link

[1.x code] Fatal error since 2.8 update related to pods ui plugin (Fatal error: Uncaught Error: Cannot use object of type Pod as array) #6297

Closed chadbush closed 3 years ago

chadbush commented 3 years ago

Description

On an old client site, since the 2.8 update, the entire admin UI is broken in terms of managing content with pods. The front end is fine, but upon trying to edit any of the advanced content types via the screens generated by old custom pods ui code, a fatal error occurs.

Testing instructions

  1. Install this custom pods ui plugin (the entire text of the plugin is pasted here), or something like it. I saw another user on Slack support with almost exactly the same code having exactly the same problem:
<?php

/*
Plugin Name: Pods UI Horses
Plugin URI: http://atba.net/wp-content/plugins/pods-ui-horses/
Description: Custom user interface for Horses section using PODS CMS.
Version: 1.0
Author: Raven's Eye Design
Author URI: https://ravenseyedesign.com/
*/

function pods_ui_horses() {
  add_menu_page( 'Horses', 'Horses', 'edit_posts', 'horses_menu', 'sales_page', 'dashicons-heart', '5' );
  add_submenu_page( 'horses_menu', 'Sales', 'Sales', 'edit_posts', 'horses_menu', 'sales_page' );
  add_submenu_page( 'horses_menu', 'Eligibility', 'Eligibility', 'edit_posts', 'eligibility', 'eligibility_page' );
  add_submenu_page( 'horses_menu', 'Eligibility (Extra Info)', 'Eligibility (Extra Info)', 'edit_posts', 'extra_info', 'eligibility_extra_page' );
  add_submenu_page( 'horses_menu', 'Breeding', 'Breeding', 'edit_posts', 'breeding', 'breeding_page' );

}

// Sales Page

function sales_page() {
  $object     = new Pod( 'sales' );
  $add_fields = $edit_fields = array(
    'catalog_year',
    'horse_name',
    'sex',
    'color',
    'class',
    'year_of_birth',
    'sire',
    'name',
    'consignor',
    'barn',
    'hip_number',
    'catalog_video_link',
    'price',
    'buy_back',
    'buyer',
    'covering_sire',
  );
  $object->ui = array(
    'sales'       => 'Sales',
    'columns'     => array(
      'catalog_year'  => 'Sales Year',
      'hip_number'    => 'Hip Number',
      'horse_name'    => 'Horse Name',
      'year_of_birth' => 'Birth Year',
      'sire'          => 'Sire Name',
      'name'          => 'Dam Name',
    ),
    'add_fields'  => $add_fields,
    'edit_fields' => $edit_fields,
    'limit'       => '200',
    'sort'        => 'catalog_year.name DESC, hip_number, year_of_birth.name, name',
    'title'       => 'Sales',
    'item'        => 'Horse',
  );
  pods_ui_manage( $object );
}

// Eligibility Page

function eligibility_page() {
  $object     = new Pod( 'eligibility' );
  $add_fields = $edit_fields = array(
    'year_of_birth',
    'horse_name',
    'sex',
    'owner',
    'name',
    'stallion_stakes',
    'sales_stakes',
    'hip_number',
    'consignor',
    'az_breeders_fd_year',
    'az_breeders_fd_paid',
    'nomination_number',
    'nominator_azbfd',
    'yavapai_f',
    'nominator_yavapai',
  );
  $object->ui = array(
    'eligibility' => 'Eligibility',
    'columns'     => array(
      'year_of_birth' => 'Birth Year',
      'horse_name'    => 'Horse Name',
      'hip_number'    => 'Hip Number',
      'name'          => 'Sire Name',
    ),
    'add_fields'  => $add_fields,
    'edit_fields' => $edit_fields,
    'limit'       => '200',
    'sort'        => 'year_of_birth.name, horse_name, hip_number, name',
    'title'       => 'Eligibility',
    'item'        => 'Horse',
  );
  pods_ui_manage( $object );
}

// Eligibility Extra Info Page

function eligibility_extra_page() {
  $object     = new Pod( 'extra_info' );
  $add_fields = $edit_fields = array(
    'eligibility_year',
    'additional_info',
    'name',
  );
  $object->ui = array(
    'extra_info'  => 'Additional Info',
    'columns'     => array(
      'eligibility_year' => 'Futurity/Derby Year',
      'name'             => 'Name',
    ),
    'add_fields'  => $add_fields,
    'edit_fields' => $edit_fields,
    'limit'       => '200',
    'sort'        => 'eligibility_year.name',
    'title'       => 'Eligibility (Additional Info)',
    'item'        => 'Info',
  );
  pods_ui_manage( $object );
}

// Breeding Page

function breeding_page() {
  $object     = new Pod( 'breeding' );
  $add_fields = $edit_fields = array(
    'name',
    'mare_year_foaled',
    'mare_owner_record',
    'foal_name',
    'foal_year_foaled',
    'sex',
    'sire_of_foal',
    'dam_of_foal',
    'breeder_of_foal',
  );
  $object->ui = array(
    'breeding'    => 'Breeding',
    'columns'     => array(
      'name'             => 'Mare Name',
      'mare_year_foaled' => 'Mare Year Foaled',
      'foal_name'        => 'Foal Name',
      'foal_year_foaled' => 'Foal Year Foaled',
      'sire_of_foal'     => 'Sire of Foal',
      'dam_of_foal'      => 'Dam of Foal',
      'breeder_of_foal'  => 'Breeder of Foal',
    ),
    'add_fields'  => $add_fields,
    'edit_fields' => $edit_fields,
    'limit'       => '200',
    'sort'        => 'name, mare_year_foaled.name, foal_name, foal_year_foaled.name, sire_of_foal, dam_of_foal, breeder_of_foal',
    'title'       => 'Breeding',
    'item'        => 'Horse',
  );
  pods_ui_manage( $object );
}

add_action( 'admin_menu', 'pods_ui_horses' );
  1. Click on Horses in the admin menu, then choose one of the three custom pods menu items that appears. A screen appears with a list of all the items, along with admin columns.

  2. Click an item to edit it.

  3. The entire admin breaks down and a fatal error is reported:

Fatal error: Uncaught Error: Cannot use object of type Pod as array in /nas/content/live/atbadev/wp-content/plugins/pods/classes/PodsField.php:388 Stack trace: #0 /nas/content/live/atbadev/wp-content/plugins/pods/classes/PodsField.php(329): PodsField->render_input_script(Object(stdClass)) #1 /nas/content/live/atbadev/wp-content/plugins/pods/classes/fields/pick.php(890): PodsField->input('pods_field_auth...', false, Array, Object(Pod), '2') #2 /nas/content/live/atbadev/wp-content/plugins/pods/classes/PodsForm.php(274): PodsField_Pick->input('pods_field_auth...', false, Array, Object(Pod), '2') #3 /nas/content/live/atbadev/wp-content/plugins/pods/ui/forms/table-row.php(37): PodsForm::field('pods_field_auth...', false, 'pick', Array, Object(Pod), '2') #4 /nas/content/live/atbadev/wp-content/plugins/pods/classes/PodsView.php(527): require('/nas/content/li...') #5 /nas/content/live/atbadev/wp-content/plugins/pods/classes/PodsView.php(118): PodsView::get_template_part('/nas/content/li...', Array) #6 /nas/content/live/atbadev/wp in /nas/content/live/atbadev/wp-content/plugins/pods/classes/PodsField.php on line 388 There has been a critical error on this website. Please check your site admin email inbox for instructions.

Expected behavior

A screen appears with a number of custom pods fields to edit the item. Fill in or edit the fields, update and the new information is saved.

Screenshots / screencast

CleanShot 2021-11-09 at 18 47 26@2x

Possible workaround

The only workaround I've discovered is to restore the site from a backup to before the 2.8 upgrade.

Pods version

2.8.3

Other super helpful information

I've tested with all other plugins disabled, and the problem still occurs. I'm confident that this is not caused by a conflict with another plugin. It seems clear that it's caused by a lack of backward compatibility with the custom pods ui code I wrote, based on one of Scott's tutorials a long time ago.

WordPress Environment ``` ### wp-core ### version: 5.8.1 site_language: en_US user_language: en_US timezone: -07:00 permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: closed environment_type: production user_count: 3 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /nas/content/live/atbadev wordpress_size: 651.55 MB (683201716 bytes) uploads_path: /nas/content/live/atbadev/wp-content/uploads uploads_size: 118.98 MB (124762543 bytes) themes_path: /nas/content/live/atbadev/wp-content/themes themes_size: 4.21 MB (4409281 bytes) plugins_path: /nas/content/live/atbadev/wp-content/plugins plugins_size: 62.42 MB (65450248 bytes) database_size: 96.06 MB (100728832 bytes) total_size: 933.22 MB (978552620 bytes) ### wp-dropins (2) ### advanced-cache.php: true object-cache.php: true ### wp-active-theme ### name: ATBA (atba) version: 1.0 author: Raven's Eye Design author_website: http://ravenseyedesign.com/ parent_theme: none theme_features: core-block-patterns, menus, widgets-block-editor, editor-style, widgets theme_path: /nas/content/live/atbadev/wp-content/themes/atba auto_update: Disabled ### wp-themes-inactive (1) ### Twenty Twenty-One: version: 1.4, author: the WordPress team, Auto-updates disabled ### wp-mu-plugins (7) ### Force Strong Passwords - WPE Edition: version: 1.8.0, author: Jason Cosper InfiniteWP - Client Loader: author: Revmakx, version: (undefined) WPE ElasticPress Autosuggest Logger: version: 1.0.0, author: WP Engine WP Engine Cache Plugin: version: 1.0.5, author: WP Engine WP Engine Seamless Login Plugin: version: 1.5.5, author: WP Engine WP Engine Security Auditor: version: 1.0.10, author: wpengine WP Engine System: version: 5.0.1, author: WP Engine ### wp-plugins-active (25) ### Adminimize: version: 1.11.7, author: Frank Bültge, Auto-updates disabled Ambrosite Next/Previous Post Link Plus: version: 2.4, author: J. Michael Ambrosio, Auto-updates disabled Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates disabled Easy Timer: version: 4.0.4, author: Kleor, Auto-updates disabled Enable Media Replace: version: 3.6.2, author: ShortPixel, Auto-updates disabled File Renaming on upload: version: 2.4.8, author: Pablo S G Pacheco, Auto-updates disabled GA Google Analytics: version: 20210719, author: Jeff Starr, Auto-updates disabled Gravity Forms: version: 2.5.14, author: Gravity Forms, Auto-updates disabled Hide SEO Bloat: version: 3.14.8, author: SO WP, Auto-updates disabled Hide YouTube Related Videos: version: 1.4.2, author: SparkWeb Interactive, Inc., Auto-updates disabled HungryFEED: version: 1.6.3, author: VerySimple, Auto-updates disabled Imsanity: version: 2.7.2, author: Exactly WWW, Auto-updates disabled InfiniteWP - Client: version: 1.9.5, author: Revmakx, Auto-updates disabled jQuery Colorbox: version: 4.6.2, author: Arne Franken, Auto-updates disabled jQuery Smooth Scroll: version: 1.4.5, author: Digital Liberation, Auto-updates disabled jQuery Vertical Accordion Menu: version: 3.1.2, author: Lee Chestnutt, Auto-updates disabled Pods - Custom Content Types and Fields: version: 2.8.3, author: Pods Framework Team, Auto-updates disabled Pods UI Horses: version: 1.0, author: Raven's Eye Design, Auto-updates disabled Relevanssi: version: 4.14.4, author: Mikko Saari, Auto-updates disabled Typekit Fonts for WordPress: version: 1.9.0, author: OM4, Auto-updates disabled User Switching: version: 1.5.8, author: John Blackbourn & contributors, Auto-updates disabled Video Showcase: version: 1.1.70, author: iThemes.com, Auto-updates disabled WP-PageNavi: version: 2.94.0, author: Lester 'GaMerZ' Chan, Auto-updates disabled WP Pro Ad System: version: 5.3.0, author: Tunafish, Auto-updates disabled Yoast SEO: version: 17.5, author: Team Yoast, Auto-updates disabled ### wp-plugins-inactive (2) ### Classic Widgets: version: 0.2, author: WordPress Contributors, Auto-updates disabled Members: version: 3.1.6, author: MemberPress, Auto-updates disabled ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1687 imagemagick_version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org imagick_version: 3.4.4 file_uploads: File uploads is turned off post_max_size: 100M upload_max_filesize: 50M max_effective_size: 50 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 137 MB imagick::RESOURCETYPE_DISK: 1073741824 imagick::RESOURCETYPE_FILE: 6144 imagick::RESOURCETYPE_MAP: 512 MB imagick::RESOURCETYPE_MEMORY: 256 MB imagick::RESOURCETYPE_THREAD: 1 imagemagick_file_formats: 3FR, AAI, AI, ART, ARW, AVI, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DJVU, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GROUP4, GV, H, HALD, HDR, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, JBG, JBIG, JNG, JNX, JPE, JPEG, JPG, JPS, JSON, K25, KDC, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV gd_version: 2.2.5 gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: unknown ### wp-server ### server_architecture: Linux 5.4.0-1051-gcp x86_64 httpd_software: Apache php_version: 7.4.24 64bit php_sapi: apache2handler max_input_variables: 10000 time_limit: 3600 memory_limit: 512M max_input_time: 3600 upload_max_filesize: 50M php_post_max_size: 100M curl_version: 7.58.0 OpenSSL/1.1.1 suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.7.35-38-log client_version: mysqlnd 7.4.24 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /nas/content/live/atbadev/wp-content WP_PLUGIN_DIR: /nas/content/live/atbadev/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 512M WP_DEBUG: true WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: true SCRIPT_DEBUG: true WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8 DB_COLLATE: utf8_unicode_ci ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable ### pods ### pods-server-software: Apache pods-user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 pods-session-save-path: /var/lib/php/sessions pods-session-save-path-exists: Yes pods-session-save-path-writable: Yes pods-session-max-lifetime: 1440 pods-opcode-cache-apc: No pods-opcode-cache-memcached: No pods-opcode-cache-opcache: Yes pods-opcode-cache-redis: No pods-object-cache-apc: No pods-object-cache-apcu: No pods-object-cache-memcache: No pods-object-cache-memcached: Yes pods-object-cache-redis: Yes pods-memory-current-usage: 63.267M pods-memory-current-usage-real: 66.000M pods-network-wide: No pods-install-location: /nas/content/live/atbadev/wp-content/plugins/pods/ pods-developer: No pods-tableless-mode: No pods-relationship-table-enabled: Yes pods-light-mode: No pods-strict: No pods-allow-deprecated: Yes pods-api-cache: Yes pods-shortcode-allow-evaluate-tags: No pods-sessions: Disable sessions pods-can-use-sessions: Yes ```
Pods Package Export ```json { "meta": { "version": "2.8.3", "build": 1636509103 }, "pods": [ { "name": "breeding", "id": 482, "label": "Breeding", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "17", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 483, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 484, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 485, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 486, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "mare_year_foaled", "id": 487, "label": "Mare Year Foaled", "description": "", "weight": 4, "required": "1", "unique": "0", "_pods_1x_field_name": "mare_year_foaled", "_pods_1x_field_id": "107", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "year_long" }, { "name": "mare_owner_record", "id": 488, "label": "Mare Owner of Record", "description": "", "weight": 5, "required": "0", "unique": "0", "_pods_1x_field_name": "mare_owner_record", "_pods_1x_field_id": "116", "text_max_length": "128", "type": "text" }, { "name": "foal_name", "id": 489, "label": "Foal Name", "description": "", "weight": 6, "required": "0", "unique": "0", "_pods_1x_field_name": "foal_name", "_pods_1x_field_id": "108", "text_max_length": "128", "type": "text" }, { "name": "foal_year_foaled", "id": 490, "label": "Foal Year Foaled", "description": "", "weight": 7, "required": "0", "unique": "0", "_pods_1x_field_name": "foal_year_foaled", "_pods_1x_field_id": "117", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "year_long" }, { "name": "sex", "id": 491, "label": "Sex", "description": "", "weight": 8, "required": "0", "unique": "0", "_pods_1x_field_name": "sex", "_pods_1x_field_id": "109", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "gender" }, { "name": "sire_of_foal", "id": 492, "label": "Sire of Foal", "description": "", "weight": 9, "required": "0", "unique": "0", "_pods_1x_field_name": "sire_of_foal", "_pods_1x_field_id": "110", "text_max_length": "128", "type": "text" }, { "name": "breeder_of_foal", "id": 493, "label": "Breeder of Foal", "description": "", "weight": 10, "required": "0", "unique": "0", "_pods_1x_field_name": "breeder_of_foal", "_pods_1x_field_id": "112", "text_max_length": "128", "type": "text" }, { "name": "slug", "id": 494, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 11, "required": "0", "unique": "0", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "106", "type": "slug" }, { "name": "dam_of_foal", "id": 495, "label": "Dam of Foal", "description": "", "weight": 12, "required": "0", "unique": "0", "_pods_1x_field_name": "dam_of_foal", "_pods_1x_field_id": "137", "text_max_length": "128", "type": "text" } ] } ] }, { "name": "class", "id": 456, "label": "Class", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "14", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 457, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 458, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 459, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 460, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "slug", "id": 461, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 4, "required": "0", "unique": "0", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "85", "type": "slug" } ] } ] }, { "name": "color", "id": 444, "label": "Color", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "12", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 445, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 446, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 447, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 448, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "slug", "id": 449, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 4, "required": "0", "unique": "0", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "81", "type": "slug" } ] } ] }, { "name": "eligibility", "id": 462, "label": "Eligibility", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "15", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 463, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 464, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 465, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 466, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "slug", "id": 467, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 4, "required": "0", "unique": "0", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "89", "type": "slug" }, { "name": "year_of_birth", "id": 468, "label": "Year of Birth", "description": "", "weight": 5, "required": "1", "unique": "0", "_pods_1x_field_name": "year_of_birth", "_pods_1x_field_id": "90", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "year" }, { "name": "horse_name", "id": 469, "label": "Horse Name", "description": "", "weight": 6, "required": "0", "unique": "0", "_pods_1x_field_name": "horse_name", "_pods_1x_field_id": "91", "text_max_length": "128", "type": "text" }, { "name": "sex", "id": 470, "label": "Sex", "description": "", "weight": 7, "required": "1", "unique": "0", "_pods_1x_field_name": "sex", "_pods_1x_field_id": "92", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "gender" }, { "name": "owner", "id": 471, "label": "Current owner", "description": "", "weight": 8, "required": "1", "unique": "0", "_pods_1x_field_name": "owner", "_pods_1x_field_id": "93", "text_max_length": "128", "type": "text" }, { "name": "stallion_stakes", "id": 472, "label": "Stallion Stakes", "description": "", "weight": 9, "required": "0", "unique": "0", "_pods_1x_field_name": "stallion_stakes", "_pods_1x_field_id": "94", "type": "boolean" }, { "name": "sales_stakes", "id": 473, "label": "Sales Stakes", "description": "", "weight": 10, "required": "0", "unique": "0", "_pods_1x_field_name": "sales_stakes", "_pods_1x_field_id": "95", "type": "boolean" }, { "name": "hip_number", "id": 474, "label": "Hip Number", "description": "", "weight": 11, "required": "0", "unique": "0", "input_helper": "plain_numbers", "_pods_1x_field_name": "hip_number", "_pods_1x_field_id": "96", "number_decimals": "2", "type": "number" }, { "name": "consignor", "id": 475, "label": "Consignor", "description": "", "weight": 12, "required": "0", "unique": "0", "_pods_1x_field_name": "consignor", "_pods_1x_field_id": "97", "text_max_length": "128", "type": "text" }, { "name": "az_breeders_fd_paid", "id": 476, "label": "AZ Breeders Futurity\/Derby Paid", "description": "", "weight": 13, "required": "0", "unique": "0", "_pods_1x_field_name": "az_breeders_fd_paid", "_pods_1x_field_id": "98", "type": "boolean" }, { "name": "nomination_number", "id": 477, "label": "Nomination Number", "description": "", "weight": 14, "required": "0", "unique": "0", "input_helper": "plain_numbers", "_pods_1x_field_name": "nomination_number", "_pods_1x_field_id": "99", "number_decimals": "2", "type": "number" }, { "name": "nominator_azbfd", "id": 478, "label": "Nominator (AZ Breeders Futurity\/Derby)", "description": "", "weight": 15, "required": "0", "unique": "0", "_pods_1x_field_name": "nominator_azbfd", "_pods_1x_field_id": "100", "text_max_length": "128", "type": "text" }, { "name": "yavapai_f", "id": 479, "label": "Yavapai Futurity", "description": "", "weight": 16, "required": "0", "unique": "0", "_pods_1x_field_name": "yavapai_f", "_pods_1x_field_id": "101", "type": "boolean" }, { "name": "nominator_yavapai", "id": 480, "label": "Nominator (Yavapai Futurity)", "description": "", "weight": 17, "required": "0", "unique": "0", "_pods_1x_field_name": "nominator_yavapai", "_pods_1x_field_id": "102", "text_max_length": "128", "type": "text" }, { "name": "az_breeders_fd_year", "id": 481, "label": "AZ Breeders Futurity\/Derby Year", "description": "", "weight": 18, "required": "0", "unique": "0", "_pods_1x_field_name": "az_breeders_fd_year", "_pods_1x_field_id": "122", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "futurity_derby_year" } ] } ] }, { "name": "extra_info", "id": 514, "label": "Extra Info", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "23", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 515, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 516, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 517, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 518, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "slug", "id": 519, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 4, "required": "0", "unique": "0", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "134", "type": "slug" }, { "name": "additional_info", "id": 520, "label": "Additional Info (for AZ Breeders Futurity\/Derby only)", "description": "", "weight": 5, "required": "0", "unique": "0", "_pods_1x_field_name": "additional_info", "_pods_1x_field_id": "135", "wysiwyg_editor": "tinymce", "type": "wysiwyg" }, { "name": "eligibility_year", "id": 521, "label": "Year", "description": "", "weight": 6, "required": "1", "unique": "0", "_pods_1x_field_name": "eligibility_year", "_pods_1x_field_id": "136", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "futurity_derby_year" } ] } ] }, { "name": "futurity_derby_year", "id": 502, "label": "Futurity\/Derby Year", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "19", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 503, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 504, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 505, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 506, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "slug", "id": 507, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 4, "required": "0", "unique": "0", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "121", "type": "slug" } ] } ] }, { "name": "gender", "id": 438, "label": "Gender", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "11", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 439, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 440, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 441, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 442, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "slug", "id": 443, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 4, "required": "0", "unique": "0", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "78", "type": "slug" } ] } ] }, { "name": "sales", "id": 412, "label": "Sales", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "2", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 413, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 414, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 415, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 416, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "horse_name", "id": 417, "label": "Horse Name", "description": "", "weight": 4, "required": "0", "unique": "0", "_pods_1x_field_name": "horse_name", "_pods_1x_field_id": "29", "text_max_length": "128", "type": "text" }, { "name": "sex", "id": 418, "label": "Sex", "description": "", "weight": 5, "required": "1", "unique": "0", "_pods_1x_field_name": "sex", "_pods_1x_field_id": "73", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "gender" }, { "name": "color", "id": 419, "label": "Color", "description": "", "weight": 6, "required": "1", "unique": "0", "_pods_1x_field_name": "color", "_pods_1x_field_id": "75", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "color" }, { "name": "class", "id": 420, "label": "Class", "description": "", "weight": 7, "required": "1", "unique": "0", "_pods_1x_field_name": "class", "_pods_1x_field_id": "86", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "class" }, { "name": "year_of_birth", "id": 421, "label": "Year of Birth", "description": "", "weight": 8, "required": "1", "unique": "0", "_pods_1x_field_name": "year_of_birth", "_pods_1x_field_id": "5", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "year_long" }, { "name": "sire", "id": 422, "label": "Sire Name", "description": "", "weight": 9, "required": "1", "unique": "0", "_pods_1x_field_name": "sire", "_pods_1x_field_id": "30", "text_max_length": "128", "type": "text" }, { "name": "consignor", "id": 423, "label": "Consignor", "description": "", "weight": 10, "required": "0", "unique": "0", "_pods_1x_field_name": "consignor", "_pods_1x_field_id": "39", "text_max_length": "128", "type": "text" }, { "name": "hip_number", "id": 424, "label": "Hip Number", "description": "", "weight": 11, "required": "0", "unique": "0", "input_helper": "plain_numbers", "_pods_1x_field_name": "hip_number", "_pods_1x_field_id": "35", "number_decimals": "2", "type": "number" }, { "name": "catalog_video_link", "id": 425, "label": "Catalog Video Link", "description": "", "weight": 12, "required": "0", "unique": "0", "_pods_1x_field_name": "catalog_video_link", "_pods_1x_field_id": "66", "text_max_length": "128", "type": "text" }, { "name": "price", "id": 426, "label": "Price", "description": "", "weight": 13, "required": "0", "unique": "0", "_pods_1x_field_name": "price", "_pods_1x_field_id": "37", "text_max_length": "128", "type": "text" }, { "name": "buy_back", "id": 427, "label": "Buy Back? (Check if buy back)", "description": "", "weight": 14, "required": "0", "unique": "0", "_pods_1x_field_name": "buy_back", "_pods_1x_field_id": "63", "type": "boolean" }, { "name": "buyer", "id": 428, "label": "Buyer", "description": "", "weight": 15, "required": "0", "unique": "0", "_pods_1x_field_name": "buyer", "_pods_1x_field_id": "38", "text_max_length": "128", "type": "text" }, { "name": "slug", "id": 429, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 16, "required": "0", "unique": "0", "input_helper": "input_helper_hide_slug", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "4", "type": "slug" }, { "name": "catalog_year", "id": 430, "label": "Catalog Year", "description": "", "weight": 17, "required": "1", "unique": "0", "_pods_1x_field_name": "catalog_year", "_pods_1x_field_id": "115", "_pods_1x_sister_id": "0", "pick_display": "{@name}", "pick_size": "medium", "pick_format_type": "single", "pick_format_single": "dropdown", "pick_limit": "1", "type": "pick", "pick_object": "pod", "pick_val": "sales_year" }, { "name": "barn", "id": 431, "label": "Barn", "description": "", "weight": 18, "required": "0", "unique": "0", "_pods_1x_field_name": "barn", "_pods_1x_field_id": "118", "text_max_length": "128", "type": "text" }, { "name": "covering_sire", "id": 432, "label": "Covering Sire", "description": "", "weight": 19, "required": "0", "unique": "0", "_pods_1x_field_name": "covering_sire", "_pods_1x_field_id": "119", "text_max_length": "128", "type": "text" } ] } ] }, { "name": "sales_year", "id": 508, "label": "Sales Year", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "20", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 509, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 510, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 511, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 512, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "slug", "id": 513, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 4, "required": "0", "unique": "0", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "125", "type": "slug" } ] } ] }, { "name": "state", "id": 433, "label": "State", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "6", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 434, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 435, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 436, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 437, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" } ] } ] }, { "name": "year", "id": 450, "label": "Year", "description": "", "show_in_menu": "0", "detail_url": "year\/*", "pod_index": "name", "_pods_1x_pod_id": "13", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 451, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 452, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 453, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 454, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "slug", "id": 455, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 4, "required": "0", "unique": "0", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "83", "type": "slug" } ] } ] }, { "name": "year_long", "id": 496, "label": "Year (Long)", "description": "", "show_in_menu": "0", "pod_index": "name", "_pods_1x_pod_id": "18", "type": "pod", "storage": "table", "groups": [ { "name": "more_fields", "label": "More Fields", "fields": [ { "name": "name", "id": 497, "label": "Name", "description": "", "weight": 0, "required": "1", "text_max_length": "128", "type": "text" }, { "name": "created", "id": 498, "label": "Date Created", "description": "", "weight": 1, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "modified", "id": 499, "label": "Date Modified", "description": "", "weight": 2, "datetime_format": "ymd_slash", "datetime_time_type": "12", "datetime_time_format": "h_mm_ss_A", "type": "datetime" }, { "name": "author", "id": 500, "label": "Author", "description": "", "weight": 3, "pick_format_type": "single", "pick_format_single": "autocomplete", "default_value": "{@user.ID}", "type": "pick", "pick_object": "user" }, { "name": "slug", "id": 501, "label": "Permalink", "description": "Leave blank to auto-generate", "weight": 4, "required": "0", "unique": "0", "_pods_1x_field_name": "slug", "_pods_1x_field_id": "114", "type": "slug" } ] } ] } ], "pages": [ { "name": "catalog-archive", "code": "", "id": 522, "page_template": "catalog-archive.php", "type": "page" }, { "name": "catalog-archive\/*", "code": "", "id": 523, "page_template": "catalog-archive-detail.php", "type": "page" }, { "name": "futurity-derby", "code": "", "id": 526, "page_template": "futurity-derby.php", "type": "page" }, { "name": "futurity-derby\/*", "code": "", "id": 527, "page_template": "futurity-derby-detail.php", "type": "page" }, { "name": "results-archive", "code": "", "id": 524, "page_template": "results-archive.php", "type": "page" }, { "name": "results-archive\/*", "code": "", "id": 525, "page_template": "results-archive-detail.php", "type": "page" } ] } ```
sc0ttkclark commented 3 years ago

It looks like you are using older Pods 1.x code here. Follow the information posted here to help you migrate your Pods 1.x code to compatible 2.x code.

Pods 2.8 introduces breaking changes for some code that previously worked with Pods 1.x code and this may be one of those areas.

https://docs.pods.io/compare-functionality-in-pods-1-x-to-pods-2-x/

chadbush commented 3 years ago

Thanks to direct chat support with @sc0ttkclark, all the issues I've described here have been resolved.

I had missed some major refactoring that needed to be done when PODS updated from 1.x to 2.x, and hadn't even realized it. My client's old site was running deprecated code for years and with 2.8 it finally broke.

I'm amazed at the personal attention I've received to help me resolve this matter, and from a key longtime developer of PODS, no less.