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

Delete key on dropdown relationship field returns error #6376

Closed Mike-Howerton closed 2 years ago

Mike-Howerton commented 2 years ago

Description

I came across this issue completely on accident today.

I have a custom post type (tournament) that is connected to another custom post type (tour) by a tour_id field. This displays in the tournament admin page as a dropdown field. When on that field, if you hit the delete key on a blank field, the field changes to “There was an error rendering the field.”.

Note that if you start typing into the field and hit delete too many times, this also happens.

This is happening in Firefox and Safari.

Version

2.8.1.1

Testing Instructions

Two CPTs connected via relationship fields. Add new record under either one of these CPTs and hit delete on the connecting field.

Screenshots / Screencast

No response

Possible Workaround

No response

Site Health Information

`
### wp-core ###

version: 5.8.2
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /var/www/vhosts/azbilliards.com/httpdocs
wordpress_size: 11.02 GB (11829752317 bytes)
uploads_path: /var/www/vhosts/azbilliards.com/httpdocs/wp-content/uploads
uploads_size: 613.56 MB (643367198 bytes)
themes_path: /var/www/vhosts/azbilliards.com/httpdocs/wp-content/themes
themes_size: 529.60 MB (555329820 bytes)
plugins_path: /var/www/vhosts/azbilliards.com/httpdocs/wp-content/plugins
plugins_size: 123.22 MB (129200446 bytes)
database_size: 904.40 MB (948337167 bytes)
total_size: 13.14 GB (14105986948 bytes)

### wp-dropins (2) ###

advanced-cache.php: true
maintenance.php: true

### wp-active-theme ###

name:  (the-league)
version: undefined
author: Anonymous
author_website: (undefined)
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, widgets-block-editor, post-formats
theme_path: /var/www/vhosts/azbilliards.com/httpdocs/wp-content/themes/the-league
auto_update: Disabled

### wp-themes-inactive (2) ###

Twenty Twenty: version: 1.8, author: the WordPress team, Auto-updates disabled
Twenty Twenty-One: version: 1.4, author: the WordPress team, Auto-updates disabled

### wp-mu-plugins (1) ###

Local by Flywheel Relative URL (for Live Links): version: 1.1, author: Flywheel

### wp-plugins-active (25) ###

Admin Columns Pro: version: 5.6.3, author: AdminColumns.com (latest version: 5.6.4), Auto-updates disabled
Admin Columns Pro - Pods: version: 1.6.1, author: AdminColumns.com, Auto-updates disabled
AZB/RTS Rebuild TKD files for Brackets/RTS: version: 1.0.0, author: Traci Dennis, Auto-updates disabled
AzBilliards Birthdays and Anniversaries: version: 1.0.0, author: Mike Howerton, Auto-updates disabled
AzBilliards Online Brackets: version: 1.0.0, author: Mike Howerton, Auto-updates disabled
AzBilliards Tournament Results: version: 1.0.0, author: Mike Howerton, Auto-updates disabled
AZB Payout Plugin: version: 1.0.0, author: Traci Dennis, Auto-updates disabled
AZB Stories Plugin: version: 1.0.0, author: Traci Dennis, Auto-updates disabled
AZB Yearly Total Update: version: 1.0.0, author: Traci Dennis, Auto-updates disabled
Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates disabled
FooBox Image Lightbox (Premium): version: 2.7.16, author: FooPlugins, Auto-updates disabled
FooGallery (Premium): version: 2.1.28, author: FooPlugins, Auto-updates disabled
Open Graph and Twitter Card Tags: version: 3.1.1, author: Webdados (latest version: 3.1.2), Auto-updates disabled
PDF Embedder Premium Secure: version: 4.4.5, author: Lever Technology LLC, Auto-updates disabled
Pods - Custom Content Types and Fields: version: 2.8.8.1, author: Pods Framework Team, Auto-updates disabled
Real Media Library: version: 4.17.4, author: devowl.io (latest version: 4.17.5), Auto-updates disabled
Redirection: version: 5.1.3, author: John Godley, Auto-updates disabled
Show Current Template: version: 0.4.6, author: JOTAKI Taisuke, Auto-updates disabled
SSL Insecure Content Fixer: version: 2.7.2, author: WebAware, Auto-updates disabled
Wordfence Security: version: 7.5.7, author: Wordfence, Auto-updates disabled
WordPress Popular Posts: version: 5.5.0, author: Hector Cabrera, Auto-updates disabled
WP Offload Media: version: 2.5.6, author: Delicious Brains, Auto-updates disabled
WP Super Cache: version: 1.7.4, author: Automattic, Auto-updates disabled
WPvivid Backup Plugin: version: 0.9.66, author: WPvivid Team, Auto-updates disabled
Yet Another Related Posts Plugin (YARPP): version: 5.27.8, author: YARPP, Auto-updates disabled

### wp-plugins-inactive (4) ###

FooBox Image Lightbox: version: 2.7.16, author: FooPlugins, Auto-updates disabled
FooGallery: version: 2.1.18, author: FooPlugins, Auto-updates disabled
PDF Embedder: version: 4.6.4, author: WP PDF Embedder Team, Auto-updates disabled
Query Monitor: version: 3.7.1, author: John Blackbourn, Auto-updates disabled

### wp-media ###

image_editor: FooGallery_Thumb_Image_Editor_Imagick
imagick_module_version: 1690
imagemagick_version: ImageMagick 6.9.10-68 Q16 x86_64 2020-04-01 https://imagemagick.org
imagick_version: 3.6.0
file_uploads: File uploads is turned off
post_max_size: 32M
upload_max_filesize: 32M
max_effective_size: 32 MB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.25

### wp-server ###

server_architecture: Linux 3.10.0-957.27.2.el7.x86_64 x86_64
httpd_software: Apache
php_version: 7.3.33 64bit
php_sapi: cgi-fcgi
max_input_variables: 1000
time_limit: 0
memory_limit: 5120M
max_input_time: 60
upload_max_filesize: 32M
php_post_max_size: 32M
curl_version: 7.29.0 NSS/3.44
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 10.2.38-MariaDB
client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/vhosts/azbilliards.com/httpdocs/wp-content
WP_PLUGIN_DIR: /var/www/vhosts/azbilliards.com/httpdocs/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: true
CONCATENATE_SCRIPTS: false
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_LOCAL_DEV: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

### 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/605.1.15 (KHTML, like Gecko) Version/14.1.2 Safari/605.1.15
pods-session-save-path: /var/lib/php/session
pods-session-save-path-exists: No
pods-session-save-path-writable: No
pods-session-max-lifetime: 1440
pods-opcode-cache-apc: No
pods-opcode-cache-memcached: No
pods-opcode-cache-opcache: No
pods-opcode-cache-redis: No
pods-object-cache-apc: No
pods-object-cache-apcu: No
pods-object-cache-memcache: No
pods-object-cache-memcached: No
pods-object-cache-redis: Yes
pods-memory-current-usage: 24.902M
pods-memory-current-usage-real: 10.000M
pods-network-wide: No
pods-install-location: /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: No

`

Pods Package

{
    "meta": {
        "version": "2.8.8.1",
        "build": 1639957156
    },
    "pods": [
        {
            "name": "tournament",
            "id": 337,
            "label": "Tournaments",
            "description": "",
            "label_singular": "Tournament",
            "public": "1",
            "show_ui": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "type": "post_type",
            "storage": "meta",
            "publicly_queryable": "1",
            "exclude_from_search": "1",
            "capability_type": "post",
            "capability_type_custom": "tournament",
            "capability_type_extra": "1",
            "has_archive": "0",
            "hierarchical": "0",
            "rewrite": "1",
            "rewrite_with_front": "1",
            "rewrite_feeds": "0",
            "rewrite_pages": "1",
            "query_var": "1",
            "can_export": "1",
            "default_status": "draft",
            "supports_author": "0",
            "supports_thumbnail": "1",
            "supports_excerpt": "0",
            "supports_trackbacks": "0",
            "supports_custom_fields": "0",
            "supports_comments": "0",
            "supports_revisions": "0",
            "supports_page_attributes": "0",
            "supports_post_formats": "0",
            "built_in_taxonomies_category": "0",
            "built_in_taxonomies_cuesport": "1",
            "built_in_taxonomies_link_category": "0",
            "built_in_taxonomies_post_tag": "0",
            "built_in_taxonomies_sanction": "1",
            "built_in_taxonomies_zone": "0",
            "show_in_menu": "1",
            "menu_position": "0",
            "show_in_nav_menus": "1",
            "show_in_admin_bar": "1",
            "pfat_enable": "0",
            "pfat_run_outside_loop": "0",
            "pfat_single": "Money List",
            "pfat_append_single": "append",
            "pfat_filter_single": "the_content",
            "pfat_append_archive": "append",
            "pfat_filter_archive": "the_content",
            "rest_enable": "0",
            "read_all": "0",
            "write_all": "0",
            "built_in_taxonomies_event_type": "1",
            "built_in_taxonomies_foogallery_attachment_category": "0",
            "built_in_taxonomies_foogallery_attachment_tag": "0",
            "built_in_taxonomies_promoter": "1",
            "built_in_taxonomies_location_type": "0",
            "built_in_taxonomies_magazine": "0",
            "supports_yarpp_support": "0",
            "_migrated_28": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 199657,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "tournament_id",
                            "id": 338,
                            "label": "Tournament ID",
                            "description": "",
                            "weight": 0,
                            "type": "number",
                            "required": "0",
                            "number_format_type": "number",
                            "number_format": "9999.99",
                            "number_decimals": "0",
                            "number_format_soft": "0",
                            "number_step": "1",
                            "number_min": "0",
                            "number_max": "100",
                            "number_max_length": "12",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "number_repeatable": "0"
                        },
                        {
                            "name": "tournament_online",
                            "id": 339,
                            "label": "Tournament Online",
                            "description": "",
                            "weight": 1,
                            "type": "boolean",
                            "required": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "boolean_format_type": "checkbox",
                            "boolean_yes_label": "Yes",
                            "boolean_no_label": "No",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        },
                        {
                            "name": "tournament_major",
                            "id": 340,
                            "label": "Tournament Major",
                            "description": "",
                            "weight": 2,
                            "type": "boolean",
                            "required": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "boolean_format_type": "checkbox",
                            "boolean_yes_label": "Yes",
                            "boolean_no_label": "No",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        },
                        {
                            "name": "tour_id",
                            "id": 341,
                            "label": "Tour_ID",
                            "description": "",
                            "weight": 3,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "tourevent",
                            "required": "0",
                            "pick_format_type": "single",
                            "pick_format_single": "autocomplete",
                            "pick_format_multi": "checkbox",
                            "pick_allow_add_new": "0",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "sister_id": "471",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", "
                        },
                        {
                            "name": "tournament_start",
                            "id": 342,
                            "label": "Tournament Start",
                            "description": "",
                            "weight": 4,
                            "type": "date",
                            "required": "0",
                            "date_type": "custom",
                            "date_format": "mdy",
                            "date_allow_empty": "1",
                            "date_html5": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "date_repeatable": "0",
                            "date_format_custom": "M d Y",
                            "date_format_custom_js": "yy-mm-dd"
                        },
                        {
                            "name": "tournament_end",
                            "id": 343,
                            "label": "Tournament End",
                            "description": "",
                            "weight": 5,
                            "type": "date",
                            "required": "0",
                            "date_type": "custom",
                            "date_format": "mdy",
                            "date_allow_empty": "1",
                            "date_html5": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "date_repeatable": "0",
                            "date_format_custom": "M d Y",
                            "date_format_custom_js": "yy-mm-dd"
                        },
                        {
                            "name": "tournament_short_name",
                            "id": 344,
                            "label": "Tournament Short Name",
                            "description": "",
                            "weight": 6,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "tournament_long_name",
                            "id": 466,
                            "label": "Tournament Long Name",
                            "description": "",
                            "weight": 7,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "tournament_format",
                            "id": 652,
                            "label": "Tournament Format",
                            "description": "",
                            "weight": 8,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "website",
                            "id": 649,
                            "label": "Website",
                            "description": "",
                            "weight": 9,
                            "type": "website",
                            "required": "0",
                            "website_format": "normal",
                            "website_allow_port": "0",
                            "website_clickable": "0",
                            "website_new_window": "0",
                            "website_max_length": "255",
                            "website_html5": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "website_repeatable": "0"
                        },
                        {
                            "name": "tournament_stream",
                            "id": 349,
                            "label": "Tournament Stream",
                            "description": "",
                            "weight": 10,
                            "type": "website",
                            "required": "0",
                            "website_format": "normal",
                            "website_allow_port": "0",
                            "website_clickable": "0",
                            "website_new_window": "0",
                            "website_max_length": "255",
                            "website_html5": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "website_repeatable": "0"
                        },
                        {
                            "name": "tournament_video",
                            "id": 350,
                            "label": "Tournament Video",
                            "description": "",
                            "weight": 11,
                            "type": "website",
                            "required": "0",
                            "website_format": "normal",
                            "website_allow_port": "0",
                            "website_clickable": "0",
                            "website_new_window": "0",
                            "website_max_length": "255",
                            "website_html5": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "website_repeatable": "0"
                        },
                        {
                            "name": "tournament_brackets",
                            "id": 351,
                            "label": "Tournament Brackets",
                            "description": "",
                            "weight": 12,
                            "type": "website",
                            "required": "0",
                            "website_format": "normal",
                            "website_allow_port": "0",
                            "website_clickable": "0",
                            "website_new_window": "0",
                            "website_max_length": "255",
                            "website_html5": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "website_repeatable": "0"
                        },
                        {
                            "name": "tournament_venue",
                            "id": 362,
                            "label": "Tournament Venue",
                            "description": "",
                            "weight": 13,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "location",
                            "required": "0",
                            "pick_format_type": "single",
                            "pick_format_single": "autocomplete",
                            "pick_format_multi": "checkbox",
                            "pick_allow_add_new": "0",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", "
                        },
                        {
                            "name": "entry_fee",
                            "id": 647,
                            "label": "Entry Fee",
                            "description": "",
                            "weight": 14,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "added_money",
                            "id": 648,
                            "label": "Added Money",
                            "description": "",
                            "weight": 15,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "prize_money",
                            "id": 646,
                            "label": "Prize Money",
                            "description": "",
                            "weight": 16,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "tournament_logo",
                            "id": 653,
                            "label": "Tournament Logo",
                            "description": "",
                            "weight": 17,
                            "type": "file",
                            "required": "0",
                            "file_format_type": "single",
                            "file_uploader": "attachment",
                            "file_attachment_tab": "upload",
                            "file_edit_title": "1",
                            "file_show_edit_link": "0",
                            "file_linked": "0",
                            "file_limit": "0",
                            "file_restrict_filesize": "10MB",
                            "file_type": "images",
                            "file_field_template": "rows",
                            "file_add_button": "Add File",
                            "file_modal_title": "Attach a file",
                            "file_modal_add_button": "Add File",
                            "file_wp_gallery_output": "0",
                            "file_wp_gallery_link": "post",
                            "file_wp_gallery_columns": "1",
                            "file_wp_gallery_random_sort": "0",
                            "file_wp_gallery_size": "thumbnail",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        },
                        {
                            "name": "results",
                            "id": 372,
                            "label": "Results",
                            "description": "",
                            "weight": 18,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "payout",
                            "sister_id": "371",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "autocomplete",
                            "pick_allow_add_new": "1",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", "
                        },
                        {
                            "name": "story",
                            "id": 645,
                            "label": "Story",
                            "description": "",
                            "weight": 19,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "post",
                            "sister_id": "465",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "list",
                            "pick_format_multi": "autocomplete",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_allow_add_new": "1",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        }
                    ]
                }
            ]
        },
        {
            "name": "tourevent",
            "id": 322,
            "label": "Tours\/Events",
            "description": "",
            "label_singular": "tour\/event",
            "public": "1",
            "show_ui": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "type": "post_type",
            "storage": "meta",
            "publicly_queryable": "1",
            "exclude_from_search": "1",
            "capability_type": "post",
            "capability_type_custom": "tourevent",
            "capability_type_extra": "1",
            "has_archive": "1",
            "hierarchical": "0",
            "rewrite": "1",
            "rewrite_with_front": "1",
            "rewrite_feeds": "0",
            "rewrite_pages": "1",
            "query_var": "1",
            "can_export": "1",
            "default_status": "draft",
            "supports_author": "0",
            "supports_thumbnail": "0",
            "supports_excerpt": "0",
            "supports_trackbacks": "0",
            "supports_custom_fields": "0",
            "supports_comments": "0",
            "supports_revisions": "0",
            "supports_page_attributes": "0",
            "supports_post_formats": "0",
            "built_in_taxonomies_category": "0",
            "built_in_taxonomies_link_category": "0",
            "built_in_taxonomies_post_tag": "0",
            "show_in_menu": "1",
            "menu_position": "0",
            "show_in_nav_menus": "1",
            "show_in_admin_bar": "1",
            "pfat_enable": "0",
            "pfat_run_outside_loop": "0",
            "pfat_single": "Money List",
            "pfat_append_single": "append",
            "pfat_filter_single": "the_content",
            "pfat_append_archive": "append",
            "pfat_filter_archive": "the_content",
            "rest_enable": "0",
            "read_all": "0",
            "write_all": "0",
            "built_in_taxonomies_cuesport": "1",
            "built_in_taxonomies_zone": "1",
            "built_in_taxonomies_sanction": "1",
            "built_in_taxonomies_event_type": "1",
            "has_archive_slug": "tours-and-events",
            "built_in_taxonomies_foogallery_attachment_category": "0",
            "built_in_taxonomies_foogallery_attachment_tag": "0",
            "built_in_taxonomies_promoter": "0",
            "built_in_taxonomies_location_type": "0",
            "built_in_taxonomies_magazine": "0",
            "_migrated_28": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 200617,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "tour_event_id",
                            "id": 323,
                            "label": "ID",
                            "description": "",
                            "weight": 0,
                            "type": "number",
                            "required": "0",
                            "number_format_type": "number",
                            "number_format": "i18n",
                            "number_decimals": "0",
                            "number_format_soft": "0",
                            "number_step": "1",
                            "number_min": "0",
                            "number_max": "100",
                            "number_max_length": "12",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "number_repeatable": "0"
                        },
                        {
                            "name": "online",
                            "id": 324,
                            "label": "Online",
                            "description": "",
                            "weight": 1,
                            "type": "boolean",
                            "required": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "boolean_format_type": "checkbox",
                            "boolean_yes_label": "Yes",
                            "boolean_no_label": "No",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        },
                        {
                            "name": "active",
                            "id": 184485,
                            "label": "Active",
                            "description": "",
                            "weight": 2,
                            "type": "boolean",
                            "required": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "boolean_format_type": "checkbox",
                            "boolean_yes_label": "Yes",
                            "boolean_no_label": "No",
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        },
                        {
                            "name": "tour_event_name",
                            "id": 325,
                            "label": "Tour\/Event Name",
                            "description": "",
                            "weight": 3,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "tour_event_short_name",
                            "id": 326,
                            "label": "Tour\/Event Short Name",
                            "description": "",
                            "weight": 4,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "tour_event_acronym",
                            "id": 327,
                            "label": "Tour\/Event Acronym",
                            "description": "",
                            "weight": 5,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "tour_event_start",
                            "id": 328,
                            "label": "Tour\/Event Start",
                            "description": "",
                            "weight": 6,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "tour_event_end",
                            "id": 329,
                            "label": "Tour\/Event End",
                            "description": "",
                            "weight": 7,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "tour_event_website",
                            "id": 330,
                            "label": "Tour\/Event Website",
                            "description": "",
                            "weight": 8,
                            "type": "website",
                            "required": "0",
                            "website_format": "normal",
                            "website_allow_port": "0",
                            "website_clickable": "0",
                            "website_new_window": "0",
                            "website_max_length": "255",
                            "website_html5": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "website_repeatable": "0"
                        },
                        {
                            "name": "tour_event_contact",
                            "id": 331,
                            "label": "Tour\/Event Contact",
                            "description": "",
                            "weight": 9,
                            "type": "text",
                            "required": "0",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "text_repeatable": "0"
                        },
                        {
                            "name": "tour_event_email_contact",
                            "id": 332,
                            "label": "Tour\/Event Email Contact",
                            "description": "",
                            "weight": 10,
                            "type": "email",
                            "required": "0",
                            "email_max_length": "255",
                            "email_html5": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "email_repeatable": "0"
                        },
                        {
                            "name": "tour_event_logo",
                            "id": 366,
                            "label": "Tour\/Event Logo",
                            "description": "",
                            "weight": 11,
                            "type": "file",
                            "required": "0",
                            "file_format_type": "single",
                            "file_uploader": "attachment",
                            "file_attachment_tab": "upload",
                            "file_edit_title": "1",
                            "file_show_edit_link": "0",
                            "file_linked": "0",
                            "file_limit": "0",
                            "file_restrict_filesize": "10MB",
                            "file_type": "images",
                            "file_field_template": "rows",
                            "file_add_button": "Add File",
                            "file_modal_title": "Attach a file",
                            "file_modal_add_button": "Add File",
                            "file_wp_gallery_output": "0",
                            "file_wp_gallery_link": "post",
                            "file_wp_gallery_columns": "1",
                            "file_wp_gallery_random_sort": "0",
                            "file_wp_gallery_size": "thumbnail",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        },
                        {
                            "name": "tournaments",
                            "id": 471,
                            "label": "Tournaments",
                            "description": "",
                            "weight": 12,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "tournament",
                            "sister_id": "341",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "list",
                            "pick_allow_add_new": "1",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", "
                        },
                        {
                            "name": "story",
                            "id": 478,
                            "label": "story",
                            "description": "",
                            "weight": 13,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "post",
                            "sister_id": "464",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "list",
                            "pick_allow_add_new": "1",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "1",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", "
                        },
                        {
                            "name": "gallery",
                            "id": 22205,
                            "label": "Gallery",
                            "description": "",
                            "weight": 14,
                            "type": "pick",
                            "pick_object": "post_type",
                            "pick_val": "foogallery",
                            "sister_id": "22145",
                            "required": "0",
                            "pick_format_type": "multi",
                            "pick_format_single": "dropdown",
                            "pick_format_multi": "list",
                            "pick_display_format_multi": "default",
                            "pick_display_format_separator": ", ",
                            "pick_allow_add_new": "0",
                            "pick_taggable": "0",
                            "pick_show_icon": "1",
                            "pick_show_edit_link": "0",
                            "pick_show_view_link": "1",
                            "pick_limit": "0",
                            "pick_post_status": [
                                "publish"
                            ],
                            "admin_only": "0",
                            "restrict_role": "0",
                            "restrict_capability": "0",
                            "hidden": "0",
                            "read_only": "0",
                            "roles_allowed": [
                                "administrator"
                            ],
                            "rest_read": "0",
                            "rest_write": "0",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "2",
                            "unique": "0"
                        }
                    ]
                }
            ]
        }
    ]
}
JoryHogeveen commented 2 years ago

Hi @Mike-Howerton

I tried to reproduce your issue with both single and multiple relationships setting to autocomplete but cannot reproduce this issue. For this reason I think this might be a conflict with a plugin or theme: https://docs.pods.io/faqs/plugin-theme-conflicts/ Please test and let us know!

Mike-Howerton commented 2 years ago

I restored a complete backup of the site to my dev environment. I have changed the theme to 2021, disabled all plugins and then reactivated the pods plugin.

Attached are the edit screens for tournaments and tours/events. I then went in to edit a tournament, clicked on the tour_id field and hit the delete key. Same thing happens. Error is also attached.

Screen Shot 2021-12-21 at 11 41 56 AM Screen Shot 2021-12-21 at 11 42 23 AM Screen Shot 2021-12-21 at 11 43 21 AM Screen Shot 2021-12-21 at 11 43 34 AM
JoryHogeveen commented 2 years ago

Hi @Mike-Howerton

I tried the following settings:

I believe these are the only options with a similar UI. With none of the above can I reproduce the issue.

Did you check your browser console for JS errors?

Mike-Howerton commented 2 years ago

I turned on the javascript console and when I hit delete on that field, the following error appears...

TypeError: null is not an object (evaluating 'e.value') (anonymous function) — pods-dfv.min.js:1:1130028 forEach (anonymous function) — pods-dfv.min.js:1:1130002 Vc — react-dom.min.js:87:314 Ql — pods-dfv.min.js:1:1126160 we — react-dom.min.js:84:295 He — react-dom.min.js:97:467 Th — react-dom.min.js:152:226 tj — react-dom.min.js:152:155 Te — react-dom.min.js:146:154 Te (anonymous function) — react-dom.min.js:61 unstable_runWithPriority — react.min.js:25:262 Pg — react-dom.min.js:61 ha — react-dom.min.js:60:454 (anonymous function) — react-dom.min.js:236 Ei — react-dom.min.js:41:91 Ei

I tried to copy and paste the text below this but had issues. Here is a screen grab so that you can see the complete error.

Screen Shot 2021-12-24 at 11 56 09 AM

I did see that top javascript error and wonder if that has anything to do with it. When I dig into that error, it points to the following code in custom.js

/ viewport width / $(function(){

$('.js-button-nav').click(function(){ $(this).toggleClass('open-menu'), $('.site-nav').slideToggle(); return false; });

I assume the two other errors are the date issue that we already know about.

Mike

JoryHogeveen commented 2 years ago

Hi @Mike-Howerton

That could indeed be this issue here. I guess it's rendered from the theme? Please remove that script for admin pages.

Mike-Howerton commented 2 years ago

What's strange is that it still happens when I change the theme to something like 2020.

Where would I begin to look at how to remove the script from admin pages?

Mike

sc0ttkclark commented 2 years ago

Let's retest this on Pods 2.8.9 which will be out shortly.

Mike-Howerton commented 2 years ago

Just upgraded and tested. This is still happening.

JoryHogeveen commented 2 years ago

Hi @Mike-Howerton Did you check for a must-use plugin? Some non-WP script is interfering here.

Please open the first error undefined is not a function near $ > This might give more insights in the location of the bug.

Mike-Howerton commented 2 years ago

That points to the $(function(){ line in this code...

/ viewport width / $(function(){

$('.js-button-nav').click(function(){ $(this).toggleClass('open-menu'), $('.site-nav').slideToggle(); return false; });

JoryHogeveen commented 2 years ago

Since it's causing the error, please fix or remove that code :)

My guess is that it's coming from a theme or something and it should only be loaded on the front-end.