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

Using `Trim extra whitespace before/after contents` results in field text content not being displayed #6941

Open therealgilles opened 2 years ago

therealgilles commented 2 years ago

Description

I just created a new Settings page. I added a plain text field. If I check the Trim extra whitespace before/after contents option and try to add a value to the field and then save, nothing is displayed in the field on the new Settings page. If I uncheck the Trim extra whitespace before/after contents option, the correct value is displayed in the field on the new Settings page.

Version

2.9.7

Testing Instructions

See description.

Screenshots / Screencast

No response

Possible Workaround

Do not check Trim extra whitespace before/after contents.

Site Health Information

`
### wp-core ###

version: 6.0.2
site_language: en_US
user_language: en_US
timezone: America/Los_Angeles
permalink: /%category%/%postname%/
https_status: true
multisite: false
user_registration: 1
blog_public: 1
default_comment_status: closed
environment_type: production
user_count: 2310
dotorg_communication: true

### wp-paths-sizes ###

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

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

object-cache.php: true

### wp-active-theme ###

name: ... (Total) (...)
version: 1.2.11
author: Gilles Bouvier
author_website: http://wednesdaynighthop.com
parent_theme: Total (Total)
theme_features: core-block-patterns, widgets-block-editor, post-thumbnails, custom-header, wc-product-gallery-lightbox, woocommerce, editor-style, automatic-feed-links, title-tag, customize-selective-refresh-widgets, align-wide, responsive-embeds, post-formats, html5, menus, widgets
theme_path: /home/.../public_html/wp-content/themes/...
auto_update: Disabled

### wp-parent-theme ###

name: Total (Total)
version: 5.5.2
author: WPExplorer
author_website: https://www.wpexplorer.com/
theme_path: /home/.../public_html/wp-content/themes/Total
auto_update: Disabled

### wp-plugins-active (111) ###

Add Shortcodes Actions And Filters: version: 2.0.9, author: Michael Simpson, Auto-updates enabled
Admin Columns Pro: version: 5.7.4, author: AdminColumns.com, Auto-updates disabled
Admin Columns Pro - WooCommerce: version: 3.7.3, author: AdminColumns.com, Auto-updates disabled
Admin Menu Editor: version: 1.10.3, author: Janis Elsts, Auto-updates enabled
Advanced Order Export For WooCommerce: version: 3.3.2, author: AlgolPlus, Auto-updates disabled
Advanced Post Manager: version: 4.5.3, author: Modern Tribe, Inc., Auto-updates enabled
Bootstrap Modals: version: 1.3.2, author: Neil Gee, Auto-updates disabled
Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates enabled
Cloudflare: version: 4.11.0, author: Cloudflare, Inc., Auto-updates enabled
Combined Query: version: 1.2.2, author: birgire, Auto-updates disabled
Contact Form 7: version: 5.6.3, author: Takayuki Miyoshi, Auto-updates enabled
Contact Form 7 Email Spam Blocker: version: 1.0.0, author: Hardik Kalathiya, Auto-updates enabled
Contact Form DB: version: 2.10.29, author: Michael Simpson, Auto-updates disabled
Convert Post Types: version: 1.4, author: Stephanie Leary, Auto-updates enabled
Cookie Notice & Compliance for GDPR / CCPA: version: 2.4.1, author: Hu-manity.co, Auto-updates enabled
Custom Content Shortcode: version: 4.0.2, author: Eliot Akira, Auto-updates enabled
Debug Bar: version: 1.1.3, author: wordpressdotorg, Auto-updates enabled
Delete Me: version: 3.0, author: Clinton Caldwell, Auto-updates enabled
Disable Cart Fragments: version: 2.1.1, author: Optimocha, Auto-updates disabled
Disable Comments: version: 2.4.2, author: WPDeveloper, Auto-updates enabled
Disable Elements for WPBakery Page Builder: version: 1.0, author: WPExplorer, Auto-updates disabled
Disable Emojis (GDPR friendly): version: 1.7.4, author: Ryan Hellyer, Auto-updates enabled
Duplicate Menu: version: 0.2.2, author: Jonathan Christopher, Auto-updates disabled
Duplicator: version: 1.5.0, author: Snap Creek, Auto-updates enabled
Email Address Encoder: version: 1.0.22, author: Till Krüss, Auto-updates enabled
Email Log: version: 2.4.8, author: Sudar, Auto-updates enabled
Email Obfuscate Shortcode: version: 2.0, author: khromov, Auto-updates enabled
Enable Media Replace: version: 4.0.0, author: ShortPixel, Auto-updates enabled
Envato Market: version: 2.0.7, author: Envato, Auto-updates disabled
EWWW Image Optimizer: version: 6.9.1, author: Exactly WWW, Auto-updates enabled
Five Star Business Profile and Schema: version: 2.2.5, author: Five Star Plugins, Auto-updates enabled
Flamingo: version: 2.3, author: Takayuki Miyoshi, Auto-updates enabled
Git Updater: version: 11.1.6, author: Andy Fragen, Auto-updates disabled
Google XML Sitemaps: version: 4.1.5, author: Auctollo, Auto-updates disabled
Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates enabled
Hikari Category Permalink: version: 1.00.08, author: Hikari, Auto-updates enabled
Honeypot for Contact Form 7: version: 2.1.1, author: Nocean, Auto-updates enabled
Image Widget: version: 4.4.8, author: The Events Calendar, Auto-updates enabled
iThemes Security: version: 8.1.3, author: iThemes, Auto-updates enabled
Kadence WooCommerce Email Designer: version: 1.5.7, author: Kadence WP, Auto-updates disabled
Link/Obfuscate Telephone Numbers: version: 1.4.1, author: Grandadevans, Auto-updates enabled
Links in Captions: version: 1.2, author: Katz Web Services, Inc., Auto-updates enabled
LiteSpeed Cache: version: 5.2.1, author: LiteSpeed Technologies, Auto-updates disabled
Log cleaner for iThemes Security: version: 1.3.5, author: Michael Ott, Auto-updates enabled
Login With Ajax: version: 4.1, author: Marcus Sykes, Auto-updates disabled
Logout Redirect: version: 1.0.2, author: Arefly, Auto-updates enabled
Mailgun: version: 1.8.5, author: Mailgun, Auto-updates enabled
Obfuscate Email: version: 3.8.1, author: Scott Reilly, Auto-updates enabled
Passwordless Login: version: 1.1.2, author: Cozmoslabs, sareiodata, Auto-updates disabled
Pods - Custom Content Types and Fields: version: 2.9.8, author: Pods Framework Team, Auto-updates enabled
Post Tags and Categories for Pages: version: 1.4.1, author: curtismchale, Auto-updates enabled
Post Types Order: version: 1.9.9.1, author: Nsp Code, Auto-updates enabled
Post Type Switcher: version: 3.2.1, author: Triple J Software, Inc., Auto-updates enabled
PublishPress Future: version: 2.7.7, author: PublishPress, Auto-updates enabled
QL Events: version: 0.0.1, author: kidunot89, Auto-updates disabled
reCaptcha for WooCommerce: version: 2.37, author: I Thirteen Web Solution, Auto-updates disabled
Redirection: version: 5.3.4, author: John Godley, Auto-updates disabled
Regenerate Thumbnails: version: 3.1.5, author: Alex Mills (Viper007Bond), Auto-updates enabled
Relevanssi: version: 4.17.1, author: Mikko Saari, Auto-updates enabled
REST API Log: version: 1.6.9, author: Pete Nelson, Auto-updates enabled
Reveal IDs: version: 1.5.4, author: Oliver Schlöbe, Auto-updates enabled
Revision Control: version: 2.3.2, author: Dion Hulse, Auto-updates enabled
Rollbar: version: 2.6.3, author: Rollbar, Auto-updates disabled
Shortcode in Menus: version: 3.5.1, author: Gagan Deep Singh, Auto-updates enabled
Simple Tooltips: version: 2.1.3, author: Justin Saad, Auto-updates enabled
TablePress: version: 1.14, author: Tobias Bäthge, Auto-updates enabled
Tabsy for Visual Composer: version: 1.0, author: phpbits, Auto-updates disabled
Templatera: version: 2.0.5, author: WPBakery, Auto-updates disabled
Text Expander: version: 0.3, author: Alexander Zigelski, Auto-updates enabled
The Events Calendar: version: 6.0.1.1, author: The Events Calendar, Auto-updates disabled
The Events Calendar Extension: Don't Hide Recurring Instances on Month and Week View: version: 1.0.0, author: Modern Tribe, Inc., Auto-updates disabled
The Events Calendar Extension: Events Control: version: 1.3.0, author: Modern Tribe, Inc., Auto-updates disabled
The Events Calendar Extension: Events Happening Now: version: 1.0.0, author: Modern Tribe, Inc., Auto-updates disabled
The Events Calendar Extension: Open external links in a new tab.: version: 1.0.1, author: The Events Calendar, Auto-updates disabled
The Events Calendar PRO: version: 6.0.1, author: The Events Calendar, Auto-updates disabled
Total Theme Core: version: 1.4.8, author: WPExplorer, Auto-updates disabled
UpdraftCentral Dashboard: version: 0.8.22, author: David Anderson + Team Updraft, Auto-updates enabled
UpdraftPlus - Backup/Restore: version: 1.22.23, author: UpdraftPlus.Com, DavidAnderson, Auto-updates disabled
UPME NoCaptcha reCaptcha: version: 1.1, author: Themefluent, Auto-updates disabled
User Profiles Made Easy: version: 2.3.09, author: ThemeFluent, Auto-updates disabled
User Switching: version: 1.7.0, author: John Blackbourn & contributors, Auto-updates enabled
When Last Login: version: 1.2.1, author: Yoohoo Plugins, Auto-updates enabled
Widget Importer & Exporter: version: 1.6, author: ChurchThemes.com, Auto-updates enabled
WooCommerce: version: 7.0.0, author: Automattic, Auto-updates disabled
WooCommerce Checkout Field Editor: version: 1.7.6, author: WooCommerce, Auto-updates disabled
WooCommerce Colors: version: 1.0.7, author: WooThemes, Auto-updates disabled
WooCommerce Donations Plugin: version: 1.95, author: Albdesign, Auto-updates disabled
WooCommerce Dynamic Pricing: version: 3.1.28, author: Element Stark, Auto-updates disabled
WooCommerce Name Your Price: version: 3.3.9, author: Kathy Darling, Auto-updates disabled
WooCommerce One Page Checkout: version: 1.9.6, author: Automattic, Auto-updates disabled
WooCommerce Product Bundles: version: 6.17.2, author: WooCommerce, Auto-updates disabled
WooCommerce Product Details Customiser: version: 0.2.0, author: jameskoster, Auto-updates disabled
WooCommerce Smart Coupons: version: 6.4.0, author: StoreApps, Auto-updates disabled
WooCommerce Stripe Gateway: version: 6.8.0, author: WooCommerce, Auto-updates disabled
WooGraphQL Product Bundles: version: 0.0.4, author: Jacob Arriola, Auto-updates disabled
WP Activity Log: version: 4.4.2.1, author: WP White Security, Auto-updates disabled
WP Activity Log for WooCommerce: version: 1.4.4, author: WP White Security, Auto-updates disabled
WPBakery Page Builder: version: 6.9.0, author: Michael M - WPBakery.com, Auto-updates disabled
WP Block Admin: version: 0.2.3.0, author: Callum Macdonald, Auto-updates enabled
WP Crontrol: version: 1.14.0, author: John Blackbourn & crontributors, Auto-updates enabled
WP First Letter Avatar: version: 2.2.8, author: Dev49.net, Auto-updates enabled
WPFront User Role Editor: version: 3.2.1.11184, author: Syam Mohan, Auto-updates enabled
WP Gatsby: version: 2.3.3, author: GatsbyJS, Jason Bahl, Tyler Barnes, Auto-updates disabled
WP GraphQL: version: 1.12.0, author: WPGraphQL, Auto-updates disabled
WPGraphQL CORS: author: (undefined), version: 2.0, Auto-updates disabled
WPGraphQL WooCommerce (WooGraphQL): version: 0.11.2, author: kidunot89, Auto-updates disabled
WP Menu Cart Pro: version: 3.1.6, author: Jeremiah Prummer, Ewout Fernhout, Auto-updates disabled
WP OAuth Server - Pro: version: 4.2.3, author: WP OAuth Server, Auto-updates disabled
WP Session Manager: version: 4.2.0, author: Eric Mann, Auto-updates enabled
WP Tabsy: version: 1.4, author: phpbits, Auto-updates enabled
Yoast Duplicate Post: version: 4.5, author: Enrico Battocchi & Team Yoast, Auto-updates enabled

### wp-media ###

image_editor: EWWWIO_Imagick_Editor
imagick_module_version: 1691
imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org
imagick_version: 3.7.0
file_uploads: File uploads is turned off
post_max_size: 16M
upload_max_filesize: 16M
max_effective_size: 16 MB
max_file_uploads: 20
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.55.0

### wp-server ###

server_architecture: Linux 5.15.0-50-generic x86_64
httpd_software: LiteSpeed
php_version: 7.4.30 64bit
php_sapi: litespeed
max_input_variables: 1000
time_limit: 360
memory_limit: 512M
max_input_time: 60
upload_max_filesize: 16M
php_post_max_size: 16M
curl_version: 7.81.0 OpenSSL/3.0.2
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 10.6.7-MariaDB-2ubuntu1.1
client_version: mysqlnd 7.4.30
max_allowed_packet: 16777216
max_connections: 151

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/.../public_html/wp-content
WP_PLUGIN_DIR: /home/.../public_html/wp-content/plugins
WP_MEMORY_LIMIT: 512M
WP_MAX_MEMORY_LIMIT: 512M
WP_DEBUG: true
WP_DEBUG_DISPLAY: false
WP_DEBUG_LOG: true
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: 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: LiteSpeed
pods-user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
pods-session-save-path: undefined
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: 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: 68.167M
pods-memory-current-usage-real: 22.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-relationship-table-status: 42

`

Pods Package

No response

sc0ttkclark commented 2 years ago

Can't seem to reproduce this one right now.

Can you provide a package of your configuration (Pods Admin > Migrate Packages) using the Migrate Packages component (Pods Admin > Components)? That might help us to see if we can reproduce the issue.