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

Typing into text field causes a TypeError #6527

Closed griffinwbrown closed 1 year ago

griffinwbrown commented 2 years ago

Description

When I type into the text fields in my pod it throws an error on every keystroke and does not produce any text in the field, this includes editing other posts that were made with the pod. pods pods2

Version

2.8.7

Testing Instructions

  1. create new resource or edit an existing one
  2. when I try to type in any of the text fields nothing happens
  3. when looking at console the errors above happen on every keystroke

Screenshots / Screencast

No response

Possible Workaround

No response

Site Health Information

`
### wp-core ###

version: 5.9.3
site_language: en_US
user_language: en_US
timezone: America/New_York
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: closed
environment_type: production
user_count: 7
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /nas/content/live/foodlogiq
wordpress_size: loading...
uploads_path: /nas/content/live/foodlogiq/wp-content/uploads
uploads_size: loading...
themes_path: /nas/content/live/foodlogiq/wp-content/themes
themes_size: loading...
plugins_path: /nas/content/live/foodlogiq/wp-content/plugins
plugins_size: loading...
database_size: loading...
total_size: loading...

### wp-dropins (1) ###

advanced-cache.php: true

### wp-active-theme ###

name: FoodLogiQ (foodlogiq)
version: 1.0
author: FoodLogiQ
author_website: http://www.foodlogiq.com/
parent_theme: none
theme_features: core-block-patterns, menus, automatic-feed-links, post-thumbnails, widgets-block-editor, editor-style
theme_path: /nas/content/live/foodlogiq/wp-content/themes/foodlogiq
auto_update: Disabled

### wp-themes-inactive (6) ###

Twenty Fifteen: version: 3.0, author: the WordPress team (latest version: 3.2), Auto-updates disabled
Twenty Nineteen: version: 2.1, author: the WordPress team (latest version: 2.3), Auto-updates disabled
Twenty Seventeen: version: 2.8, author: the WordPress team (latest version: 3.0), Auto-updates disabled
Twenty Sixteen: version: 2.5, author: the WordPress team (latest version: 2.7), Auto-updates disabled
Twenty Twenty: version: 1.8, author: the WordPress team (latest version: 2.0), Auto-updates disabled
Twenty Twenty-One: version: 1.4, author: the WordPress team (latest version: 1.6), Auto-updates disabled

### wp-mu-plugins (6) ###

Force Strong Passwords - WPE Edition: version: 1.8.0, author: Jason Cosper
WPE ElasticPress Autosuggest Logger: version: 1.0.0, author: WP Engine
WP Engine Cache Plugin: version: 1.0.9, 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 (17) ###

Akismet Anti-Spam: version: 4.2.1, author: Automattic (latest version: 4.2.4), Auto-updates disabled
Calls to Action: version: 3.3.11, author: Inbound Now, Auto-updates disabled
Custom Post Featured Font Icon: version: 1.0, author: Custom, Auto-updates disabled
Duplicate Page: version: 4.4.7, author: mndpsingh287 (latest version: 4.4.8), Auto-updates disabled
Enable Media Replace: version: 3.6.3, author: ShortPixel, Auto-updates disabled
Hello Bar (Official): version: 1.0, author: Hello Bar, Auto-updates disabled
HubSpot All-In-One Marketing - Forms, Popups, Live Chat: version: 8.4.365, author: HubSpot (latest version: 8.12.41), Auto-updates disabled
Pods - Custom Content Types and Fields: version: 2.8.7, author: Pods Framework Team (latest version: 2.8.17), Auto-updates disabled
Search & Filter Pro: version: 2.5.1, author: Code Amp (latest version: 2.5.12), Auto-updates disabled
Stop User Enumeration: version: 1.4.0, author: Fullworks (latest version: 1.4.4), Auto-updates disabled
Sucuri Security - Auditing, Malware Scanner and Hardening: version: 1.8.30, author: Sucuri Inc., Auto-updates disabled
Video Background: version: 2.7.1, author: Push Labs, Auto-updates disabled
WP-PageNavi: version: 2.94.0, author: Lester 'GaMerZ' Chan, Auto-updates disabled
WPBakery Page Builder: version: 6.8.0, author: Michael M - WPBakery.com (latest version: 6.9.0), Auto-updates disabled
WP LinkPress: version: 1.4.3, author: WP LinkPress, Auto-updates disabled
WP Subtitle: version: 3.4, author: Ben Huson, Husani Oakley (latest version: 3.4.1), Auto-updates disabled
Yoast SEO: version: 18.2, author: Team Yoast (latest version: 19.0), Auto-updates disabled

### wp-plugins-inactive (2) ###

Code Snippets: version: 3.1.0, author: Code Snippets Pro, Auto-updates disabled
Google Tag Manager for Wordpress: version: 1.14.2, author: Thomas Geiger (latest version: 1.15.2), 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.6.0
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-1069-gcp x86_64
httpd_software: Apache
php_version: 7.4.28 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.37-40-log
client_version: mysqlnd 7.4.28
max_allowed_packet: 16777216
max_connections: 500

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /nas/content/live/foodlogiq/wp-content
WP_PLUGIN_DIR: /nas/content/live/foodlogiq/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 512M
WP_DEBUG: false
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: false
SCRIPT_DEBUG: false
WP_CACHE: true
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 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: 10.820M
pods-memory-current-usage-real: 2.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: Yes

`

Pods Package

{
    "meta": {
        "version": "2.8.7",
        "build": 1654694830
    },
    "pods": [
        {
            "name": "flq_resource_categories",
            "id": 2161,
            "label": "Categories",
            "description": "",
            "label_singular": "Category",
            "public": "1",
            "show_ui": "1",
            "hierarchical": "1",
            "type": "taxonomy",
            "storage": "meta",
            "rewrite": "1",
            "rewrite_with_front": "1",
            "rewrite_hierarchical": "1",
            "capability_type": "default",
            "capability_type_custom": "flq_resource_categories",
            "query_var": "0",
            "sort": "0",
            "built_in_post_types_acf-field": "0",
            "built_in_post_types_acf-field-group": "0",
            "built_in_post_types_custom_css": "0",
            "built_in_post_types_customize_changeset": "0",
            "built_in_post_types_flq_resource": "1",
            "built_in_post_types_inbound-forms": "0",
            "built_in_post_types_oembed_cache": "0",
            "built_in_post_types_page": "0",
            "built_in_post_types_post": "0",
            "built_in_post_types_resources": "0",
            "built_in_post_types_user_request": "0",
            "built_in_post_types_vc4_templates": "0",
            "built_in_post_types_vc_grid_item": "0",
            "built_in_post_types_wp-call-to-action": "0",
            "built_in_post_types_wp-lead": "0",
            "built_in_post_types_wp_block": "0",
            "built_in_post_types_attachment": "0",
            "show_in_menu": "1",
            "menu_location": "default",
            "menu_position": "0",
            "show_in_nav_menus": "1",
            "show_tagcloud": "1",
            "show_tagcloud_in_edit": "1",
            "show_in_quick_edit": "1",
            "show_admin_column": "0",
            "pfat_enable": "0",
            "pfat_run_outside_loop": "0",
            "pfat_append_archive": "append",
            "rest_enable": "0",
            "read_all": "0",
            "write_all": "0",
            "_migrated_28": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 2780,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": []
                }
            ]
        },
        {
            "name": "flq_resource",
            "id": 2156,
            "label": "Resources",
            "description": "",
            "label_singular": "Resource",
            "public": "1",
            "show_ui": "1",
            "supports_title": "1",
            "supports_editor": "0",
            "type": "post_type",
            "storage": "meta",
            "publicly_queryable": "1",
            "exclude_from_search": "0",
            "capability_type": "post",
            "capability_type_custom": "flq_resource",
            "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": "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_lead-tags": "0",
            "built_in_taxonomies_link_category": "0",
            "built_in_taxonomies_post_tag": "0",
            "built_in_taxonomies_wp_call_to_action_category": "0",
            "built_in_taxonomies_wplead_list_category": "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_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",
            "menu_icon": "https:\/\/www.foodlogiq.com\/wp-content\/uploads\/2019\/10\/flq_icon.png",
            "built_in_taxonomies_flq_resource_categories": "1",
            "built_in_taxonomies_flq_resource_topic": "1",
            "_migrated_28": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 2750,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "flq_resource_image",
                            "id": 2157,
                            "label": "Resource Image",
                            "description": "",
                            "weight": 0,
                            "type": "file",
                            "required": "1",
                            "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": "flq_resource_description",
                            "id": 2158,
                            "label": "Resource Description",
                            "description": "",
                            "weight": 1,
                            "type": "text",
                            "required": "1",
                            "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": "-- Select One --",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255"
                        },
                        {
                            "name": "flq_resource_link",
                            "id": 2159,
                            "label": "Resource Link",
                            "description": "",
                            "weight": 2,
                            "type": "website",
                            "required": "1",
                            "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",
                            "sister_id": "-- Select One --"
                        }
                    ]
                }
            ]
        },
        {
            "name": "flq_resource_topic",
            "id": 2162,
            "label": "Topics",
            "description": "",
            "label_singular": "Topic",
            "public": "1",
            "show_ui": "1",
            "hierarchical": "1",
            "type": "taxonomy",
            "storage": "meta",
            "rewrite": "1",
            "rewrite_with_front": "1",
            "rewrite_hierarchical": "1",
            "capability_type": "default",
            "capability_type_custom": "flq_resource_topic",
            "query_var": "0",
            "sort": "0",
            "built_in_post_types_acf-field": "0",
            "built_in_post_types_acf-field-group": "0",
            "built_in_post_types_custom_css": "0",
            "built_in_post_types_customize_changeset": "0",
            "built_in_post_types_flq_resource": "1",
            "built_in_post_types_inbound-forms": "0",
            "built_in_post_types_oembed_cache": "0",
            "built_in_post_types_page": "0",
            "built_in_post_types_post": "0",
            "built_in_post_types_resources": "0",
            "built_in_post_types_user_request": "0",
            "built_in_post_types_vc4_templates": "0",
            "built_in_post_types_vc_grid_item": "0",
            "built_in_post_types_wp-call-to-action": "0",
            "built_in_post_types_wp-lead": "0",
            "built_in_post_types_wp_block": "0",
            "built_in_post_types_attachment": "0",
            "show_in_menu": "1",
            "menu_location": "default",
            "menu_position": "0",
            "show_in_nav_menus": "1",
            "show_tagcloud": "1",
            "show_tagcloud_in_edit": "1",
            "show_in_quick_edit": "1",
            "show_admin_column": "0",
            "pfat_enable": "0",
            "pfat_run_outside_loop": "0",
            "pfat_append_archive": "append",
            "rest_enable": "0",
            "read_all": "0",
            "write_all": "0",
            "_migrated_28": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 2941,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": []
                }
            ]
        }
    ]
}
sc0ttkclark commented 2 years ago

@griffinwbrown can you try with Pods 2.8.18 to confirm whether this issue is resolved in that version?

griffinwbrown commented 2 years ago

@sc0ttkclark apologies for the late reply here had to get client set up with a staging site to test this, after updating to 2.8.20 I am still seeing this issue.

sc0ttkclark commented 2 years ago

@zrothauser I can't seem to reproduce this in any of my tests, especially with their package. Have you seen this before?

spajonas commented 2 years ago

I had to open a GitHub account to come here and tell you about this. I'm not able to type into any of the text fields and I keep getting the same error griffinwbrown is getting. Perhaps this is a conflict with another plugin? I'm not sure, but I can't work on my site anymore with it the way it is. Thanks.

sc0ttkclark commented 2 years ago

@spajonas do you have any of the same active plugins as the original issue report?

spajonas commented 2 years ago

Let me see... Enable Media Replace, Search & Filter Pro, WP-PageNavi, and Yoast SEO are all the ones that I use too. @sc0ttkclark

spajonas commented 2 years ago

Just want to also point out that this is only a problem with pods fields that are NOT in the post-type. They work fine on extended posts, but when I go into one of my custom content types, they don't work in there.

spajonas commented 2 years ago

Returning to this thread @sc0ttkclark I went into Troubleshooting Mode and kept turning on plugins until I could find the conflict. For me, the conflict lies with WP 301 Redirects Pro. Once I turned that plugin on, the Pods fields in Custom Types erase the text in the field. Please let me know if you'd like any other information from me. Thanks!

sc0ttkclark commented 2 years ago

If you'd like to join our Live Community Pods Slack at https://support.pods.io/chat/ -- I'm sure we can help you debug this more quickly and get to the bottom of the issue. Once you join, just look for me and send me a Direct Message and I can work with you to figure this out.

Is that something you're open to?

spajonas commented 2 years ago

@sc0ttkclark Yes, I can do that. Not right now. :) But maybe later today or tomorrow I will join up and DM you. I'm just running out of time this morning. Lol. Time is flying by! Thanks again.

spajonas commented 1 year ago

@sc0ttkclark Hello again. Sorry for the very long pause between replies. It's been a rough two weeks. I can't seem to sign-up for your Slack because it's either by invite only or if I have a specific kind of email address. So I'm not sure how to proceed here. Thanks.

sc0ttkclark commented 1 year ago

@spajonas did you get some sort of error when you went to https://support.pods.io/chat/ and put your email for the Slack invite?

sc0ttkclark commented 1 year ago

Something is up here, I went to go look at the notices you reported initially and it says they are coming from Advanced Custom Fields jQuery code itself. I wonder if the theme foodlogiq or another plugin is loading a bugged or older version of Advanced Custom Fields.

sc0ttkclark commented 1 year ago

Closing for now as unrelated to Pods itself, maybe something from the older ACF input handling.