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 265 forks source link

Single Value Drop Down Select field will not save if there is a comma in the values #7374

Open Risenfenix opened 6 days ago

Risenfenix commented 6 days ago

Description

The Single Value Drop Down Select field will not save if the values contain a comma. My values are as follows.

$3,500 - $9,999 $10,000 - $24,999 $25,000 - $49,999 $50,000+

When I use "Drop Down" field they will not save. If I choose "List" it works perfectly. If I remove the comma from the values, the Drop Down works fine.

Version

3.2.7.1

Testing Instructions

  1. Create a drop down field with this value list:

$3,500 - $9,999 $10,000 - $24,999 $25,000 - $49,999 $50,000+

  1. Edit your article and select one of values
  2. Press update to save the change
  3. The pages refreshes and saves but the fields default back to --Select One--. No value is saved in the database.

Screenshots / Screencast

Field Setup... Image Image Image

Changing the value in Wordpress Image

Press Update and then see this on refresh Image

List type works great! Image

Possible Workaround

My workaround is using the Single Select "List" type and that works great!

pods-package-2024-11-01.json

Site Health Information

`

wp-core

version: 6.6.2 site_language: en_US user_language: en_US timezone: America/Denver permalink: /%postname%/ https_status: true multisite: false user_registration: 1 blog_public: 1 default_comment_status: open environment_type: production user_count: 547 dotorg_communication: true

wp-paths-sizes

wordpress_path: /home/customer/www/experientialvehicles.com/public_html wordpress_size: 386.37 MB (405142885 bytes) uploads_path: /home/customer/www/experientialvehicles.com/public_html/wp-content/uploads uploads_size: 8.93 GB (9588914107 bytes) themes_path: /home/customer/www/experientialvehicles.com/public_html/wp-content/themes themes_size: 57.44 MB (60232517 bytes) plugins_path: /home/customer/www/experientialvehicles.com/public_html/wp-content/plugins plugins_size: 206.53 MB (216561621 bytes) fonts_path: /home/customer/www/experientialvehicles.com/public_html/wp-content/uploads/fonts fonts_size: directory not found database_size: 196.82 MB (206379693 bytes) total_size: 9.76 GB (10477230823 bytes)

wp-active-theme

name: Avada Child (Avada_child) version: 4.0.3 author: undefined author_website: http://themeforest.net/user/ThemeFusion parent_theme: Avada (Avada) theme_features: core-block-patterns, fusion-builder-options, widgets-block-editor, title-tag, automatic-feed-links, custom-header, custom-background, woocommerce, wc-product-gallery-zoom, wc-product-gallery-slider, wc-product-gallery-lightbox, post-formats, post-thumbnails, fusion-builder-demos, menus, align-wide, wp-block-styles, editor-styles, editor-font-sizes, editor-color-palette, widgets theme_path: /home/customer/www/experientialvehicles.com/public_html/wp-content/themes/Avada_child auto_update: Disabled

wp-parent-theme

name: Avada (Avada) version: 7.11.10 (latest version: 7.11.11) author: ThemeFusion author_website: https://themeforest.net/user/ThemeFusion theme_path: /home/customer/www/experientialvehicles.com/public_html/wp-content/themes/Avada auto_update: Disabled

wp-themes-inactive (1)

Experiential Vehicles: version: 1.1, author: Shrikrishna Technologies Team, Auto-updates disabled

wp-mu-plugins (1)

SSO: version: 0.2, author: Garth Mortensen, Mike Hansen

wp-plugins-active (34)

301 Redirects: version: 2.77, author: WebFactory Ltd, Auto-updates enabled Admin Columns: version: 4.7.7, author: AdminColumns.com, Auto-updates enabled AdRotate Banner Manager: version: 5.13.5, author: Arnan de Gans, Auto-updates enabled Auto Image Attributes From Filename With Bulk Updater: version: 4.4, author: Arun Basil Lal, Auto-updates enabled Avada Builder: version: 3.11.10, author: ThemeFusion, Auto-updates disabled Avada Core: version: 5.11.10, author: ThemeFusion, Auto-updates disabled Black Studio TinyMCE Widget: version: 2.7.3, author: Black Studio, Auto-updates enabled Broken Link Checker: version: 2.4.1, author: WPMU DEV, Auto-updates enabled Code Snippets: version: 3.6.5.1, author: Code Snippets Pro, Auto-updates disabled Connector for Gravity Forms and Google Sheets: version: 1.2.2, author: CRM Perks., Auto-updates enabled Custom Post Type Permalinks: version: 3.5.3, author: Toro_Unit, Auto-updates disabled Custom Post Type Widgets: version: 1.5.2, author: thingsym, Auto-updates enabled Disable Comments: version: 2.4.6, author: WPDeveloper, Auto-updates enabled Gravity Forms: version: 2.8.18, author: Gravity Forms, Auto-updates enabled Gravity Forms Airtable Add-On: version: 2.2.1, author: WP connect, Auto-updates disabled Gravity Forms Mailchimp Add-On: version: 5.5.0, author: Gravity Forms, Auto-updates disabled Gravity Forms to Pipe Drive CRM: version: 3.1, author: HelpForWP.com, Auto-updates disabled Intuitive Custom Post Order: version: 3.1.5.1, author: hijiri, Auto-updates enabled LightStart - Maintenance Mode, Coming Soon and Landing Page Builder: version: 2.6.13, author: Themeisle, Auto-updates enabled Media Cleaner: version: 6.8.0, author: Jordy Meow, Auto-updates enabled Pods - Custom Content Types and Fields: version: 3.2.7.1, author: Pods Framework Team, Auto-updates disabled Rewrite Rules Inspector: version: 1.4.0, author: Automattic, Daniel Bachhuber, Auto-updates disabled Security Optimizer: version: 1.5.6, author: SiteGround, Auto-updates disabled Slider Revolution: version: 6.7.20, author: ThemePunch, Auto-updates disabled Smush: version: 3.16.6, author: WPMU DEV, Auto-updates enabled Ultimate WP Query Search Filter: version: 1.0.10, author: TC, Auto-updates disabled UpdraftPlus - Backup/Restore: version: 1.24.6, author: TeamUpdraft, DavidAnderson, Auto-updates enabled WP-Optimize - Clean, Compress, Cache: version: 3.7.0, author: TeamUpdraft, DavidAnderson, Auto-updates enabled WP Clone: version: 2.4.6, author: Migrate, Auto-updates enabled WP Mail SMTP: version: 4.1.1, author: WP Mail SMTP, Auto-updates disabled WPS Cleaner: version: 1.6.10.1, author: WPServeur, NicolasKulka, wpformation, Auto-updates disabled WP Statistics: version: 14.10.3, author: VeronaLabs, Auto-updates enabled Yoast Duplicate Post: version: 4.5, author: Enrico Battocchi & Team Yoast, Auto-updates disabled Yoast SEO: version: 23.7, author: Team Yoast, Auto-updates enabled

wp-plugins-inactive (4)

Exp Quote: version: 1.0, author: Neil Buckley, Auto-updates disabled FileBird Pro: version: 5.5.2, author: Ninja Team, Auto-updates disabled Speed Optimizer: version: 7.6.8, author: SiteGround, Auto-updates enabled Toolset Types: version: 2.3.5, author: OnTheGoSystems, Auto-updates disabled

wp-media

image_editor: WP_Image_Editor_GD imagick_module_version: Not available imagemagick_version: Not available imagick_version: Not available file_uploads: 1 post_max_size: 256M upload_max_filesize: 256M max_effective_size: 256 MB max_file_uploads: 20 gd_version: 2.3.3 gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: 10.02.1

wp-server

server_architecture: Linux 6.6.41-MCIclouder486-c9 x86_64 httpd_software: Apache php_version: 7.4.33 64bit php_sapi: cgi-fcgi max_input_variables: 3000 time_limit: 0 memory_limit: 768M max_input_time: 120 upload_max_filesize: 256M php_post_max_size: 256M curl_version: 8.2.1 OpenSSL/3.1.4 suhosin: false imagick_availability: false pretty_permalinks: true htaccess_extra_rules: true current: 2024-11-01T12:22:43+00:00 utc-time: Friday, 01-Nov-24 12:22:43 UTC server-time: 2024-11-01T06:22:41-06:00

wp-database

extension: mysqli server_version: 8.0.36-28 client_version: mysqlnd 7.4.33 max_allowed_packet: 33554432 max_connections: 500

wp-constants

WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/customer/www/experientialvehicles.com/public_html/wp-content WP_PLUGIN_DIR: /home/customer/www/experientialvehicles.com/public_html/wp-content/plugins WP_MEMORY_LIMIT: 128M WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Undefined WP_DEVELOPMENT_MODE: undefined DB_CHARSET: utf8 DB_COLLATE: undefined

wp-filesystem

wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable fonts: not writable mu-plugins: writable

wp_statistics

version: 14.10.3 detectActiveCachePlugin: Enabled (WP-Optimize) activePostTypes: post, page, avada_portfolio, avada_faq, vehicles dailySaltDate: 2024-11-01 geoIpDatabaseExists: Yes geoIpDatabaseLastUpdated: 2023-01-04 21:26:56 geoIpDatabaseSize: 65 MB geoIpDatabaseType: GeoLite2-City monitorOnlineVisitors: Enabled trackLoggedInUserActivity: Enabled storeEntireUserAgentString: Disabled trackingMethod: Server Side Tracking bypassAdBlockers: Disabled anonymizeIpAddresses: Enabled hashIpAddresses: Enabled wpConsentLevelIntegration: Disabled anonymousTracking: Disabled doNotTrack: Enabled viewStatsInEditor: Enable viewsColumnInContentList: Enable viewsColumnInUserList: Enabled showStatsInAdminMenuBar: Enabled wpStatisticsWidgets: Enable disableInactiveFeatureNotices: Enabled viewsInSingleContents: Disabled reportFrequency: Disabled userRoleExclusions: Administrator ipExclusions: Not Set excludedLoginPage: Enabled excludedRssFeeds: Enabled excluded404Page: Enabled excludedURLs: Not Set matomoReferrerSpamBlacklist: Enabled logRecordExclusions: Disabled minRoleToViewStats: manage_options minRoleToManageSettings: manage_options ipDetectionMethod: REMOTE_ADDR geoIpDatabaseUpdateSource: Not Set automaticCleanup: Enabled purgeDataOlderThan: 365 phpGmpExtension: Installed phpBcmathExtension: Installed phpGzopenFunction: Installed phpPharDataClass: Installed

wp_mail_smtp

version: 4.1.1 license_key_type: lite debug: No debug notices found. lite_install_date: Feb 9, 2023 @ 12:51pm

pods

pods-version: 3.2.7.1 pods-first-version: 3.2.7.1 pods-last-version: 3.2.7.1 pods-server-software: Apache pods-user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 pods-session-save-path: /tmp 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: No pods-memory-current-usage: 162.698M / 128M pods-memory-current-usage-real: 188.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-relationship-table-status: 0 pods-light-mode: No pods-strict: No pods-allow-deprecated: Yes pods-api-cache: Yes pods-shortcode-allow-evaluate-tags: No pods-can-use-sessions: Yes pods-settings-types_only: Enable [types_only=0] pods-settings-watch_changed_fields: Disable [watch_changed_fields=0] pods-settings-metadata_integration: Disable [metadata_integration=0] pods-settings-metadata_override_get: Disable [metadata_override_get=0] pods-settings-register_meta_integration: Disable [register_meta_integration=0] pods-settings-media_modal_fields: Enable [media_modal_fields=0] pods-settings-session_auto_start: Disable [session_auto_start=0] pods-settings-dynamic_features_allow: Enable [dynamic_features_allow=1] pods-settings-dynamic_features_enabled: Display and Form [dynamic_features_enabled=display,form] pods-settings-show_access_restricted_messages: Disable [show_access_restricted_messages=0] pods-settings-show_access_admin_notices: Enable [show_access_admin_notices=1] pods-settings-dynamic_features_allow_sql_clauses: Disable [dynamic_features_allow_sql_clauses=0] pods-settings-display_callbacks: Customized [display_callbacks=customized] pods-settings-display_callbacks_allowed: esc_attr,esc_html

`

Pods Package

My JSON was too large to paste in here. I uploaded it in the "Possible Workaround" section.

tinsterman commented 1 day ago

I'm having the same issue and trying to save Countries from Gravity Forms that come in with a comma.