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

2.9.9 - post_content field not available, nor displaying existing values. #6948

Closed elskeetro closed 1 year ago

elskeetro commented 1 year ago

Description

Client prefers WP Classic Editor environment.

The default description field that populates the @post_content values is not available in my pods, nor displaying in my existing pods template.

As a work around, I added a "temporary_description" field to the pod, set as a WYSIWYG visual editor. When I went to edit the content, the default field was now available.

Removing the "temporary_description" WYSIWYG field from the pod made the default field unavailable, once again.

screenshot 1 screenshot 2 screenshot 3

Version

2.9.9

Testing Instructions

  1. Create a Pods custom content type
  2. Try to create the new custom content types
  3. Notice the WP default 'post_content' area is unavailable (screenshot 1)
  4. Edit the pod to include a WYSIWYG VIsual Editor (screenshot 2)
  5. See if the post_content field is now available...(screenshot 3)

Screenshots / Screencast

screenshot 1 screenshot 2 screenshot 3

Possible Workaround

Adding a WYSIWYG Visual Editor seems to make the post_content field and its content available again.

Site Health Information

`
### wp-core ###

version: 6.1

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

advanced-cache.php: true

### wp-active-theme ###

name: Spacious Child Theme (spacious-child)
version: 1.0.5
author: ThemeGrill
author_website: http://themegrill.com
parent_theme: Spacious (spacious)
theme_features: core-block-patterns, widgets-block-editor, post-thumbnails, automatic-feed-links, title-tag, custom-logo, menus, custom-background, html5, customize-selective-refresh-widgets, align-wide, wp-block-styles, responsive-embeds, starter-content, custom-header, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, jetpack-responsive-videos, widgets
auto_update: Disabled

### wp-parent-theme ###

name: Spacious (spacious)
version: 1.9.3 (latest version: 1.9.5)
author: ThemeGrill
author_website: https://themegrill.com
auto_update: Disabled

### wp-themes-inactive (8) ###

Twenty Fifteen: version: 3.0, author: the WordPress team (latest version: 3.3), Auto-updates disabled
Twenty Nineteen: version: 2.1, author: the WordPress team (latest version: 2.4), Auto-updates disabled
Twenty Seventeen: version: 2.8, author: the WordPress team (latest version: 3.1), Auto-updates disabled
Twenty Sixteen: version: 2.5, author: the WordPress team (latest version: 2.8), Auto-updates disabled
Twenty Twenty: version: 1.8, author: the WordPress team (latest version: 2.1), Auto-updates disabled
Twenty Twenty-One: version: 1.4, author: the WordPress team (latest version: 1.7), Auto-updates disabled
Twenty Twenty-Three: version: 1.0, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.0, author: the WordPress team (latest version: 1.3), Auto-updates disabled

### wp-plugins-active (24) ###

Akismet Anti-Spam: version: 5.0.1, author: Automattic, Auto-updates enabled
Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates enabled
Conditional Fields for Contact Form 7: version: 2.2.9, author: Jules Colle, Auto-updates enabled
Contact Form 7: version: 5.6.4, author: Takayuki Miyoshi, Auto-updates enabled
Contact Form 7 - PayPal & Stripe Add-on: version: 1.9.3, author: Scott Paterson, Auto-updates enabled
Contact Form 7 Multi-Step Forms: version: 4.1.92, author: Webhead LLC., Auto-updates enabled
Contact Form CFDB7: version: 1.2.6.5, author: Arshid, Auto-updates enabled
Elementor: version: 3.7.6, author: Elementor.com (latest version: 3.8.0), Auto-updates disabled
Html5 Video Player: version: 2.5.8, author: bPlugins LLC, Auto-updates enabled
Jetpack: version: 11.5.1, author: Automattic, Auto-updates enabled
Loginizer: version: 1.7.5, author: Softaculous, Auto-updates enabled
MaxButtons: version: 9.4.1, author: Max Foundry, Auto-updates enabled
MetaSlider: version: 3.27.13, author: MetaSlider, Auto-updates enabled
Paid Member Subscriptions: version: 2.7.7, author: Cozmoslabs (latest version: 2.8.0), Auto-updates disabled
Pods - Custom Content Types and Fields: version: 2.9.9, author: Pods Framework Team, Auto-updates enabled
PublishPress Future: version: 2.7.8, author: PublishPress, Auto-updates enabled
Simple Google Analytics Plugin: version: 1.0, author: Nick Peterson, Auto-updates disabled
SiteGround Optimizer: version: 7.2.5, author: SiteGround, Auto-updates enabled
Unique Headers: version: 1.8.2, author: Ryan Hellyer, Auto-updates enabled
UpdraftPlus - Backup/Restore: version: 1.22.23, author: UpdraftPlus.Com, DavidAnderson, Auto-updates enabled
WooCommerce: version: 7.0.1, author: Automattic, Auto-updates disabled
WooCommerce Payments: version: 4.9.0, author: Automattic, Auto-updates disabled
WooCommerce Stripe Gateway: version: 6.9.0, author: WooCommerce, Auto-updates disabled
WP Mail SMTP: version: 3.6.1, author: WPForms, Auto-updates disabled

### wp-plugins-inactive (1) ###

CiviCRM: version: 5.5.1, author: CiviCRM LLC, 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: File uploads is turned off
post_max_size: 256M
upload_max_filesize: 256M
max_effective_size: 256 MB
max_file_uploads: 20
gd_version: 2.2.5
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.27

### wp-server ###

server_architecture: Linux 3.12.18-clouder0 x86_64
httpd_software: Apache
php_version: 7.4.33 64bit
php_sapi: cgi-fcgi
max_input_variables: 3000
time_limit: 120
memory_limit: 768M
max_input_time: 120
upload_max_filesize: 256M
php_post_max_size: 256M
curl_version: 7.66.0 OpenSSL/1.1.1q-fips
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: false

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /home/customer/www/earthspiritedu.org/public_html/wp-content
WP_PLUGIN_DIR: /home/customer/www/earthspiritedu.org/public_html/wp-content/plugins
WP_MEMORY_LIMIT: 128M
WP_MAX_MEMORY_LIMIT: 768M
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: utf8mb4
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable

### wp_mail_smtp ###

version: 3.6.1
license_key_type: lite
debug: No debug notices found.
lite_install_date: Sep 17, 2022 @ 8:25am

### pods ###

pods-server-software: Apache
pods-user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.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: 137.476M
pods-memory-current-usage-real: 140.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-relationship-table-status: 38

`

Pods Package

{
    "@meta": {
        "version": "2.9.9",
        "build": 1667787398
    },
    "settings": {
        "types_only": "0",
        "watch_changed_fields": "1",
        "metadata_integration": "1",
        "metadata_override_get": "1",
        "session_auto_start": "0",
        "wisdom_opt_out": "1"
    },
    "pods": [
        {
            "name": "events",
            "id": 208,
            "label": "Events",
            "description": "Event entry for public programs",
            "label_singular": "Event",
            "public": "1",
            "show_ui": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "type": "post_type",
            "storage": "meta",
            "publicly_queryable": "1",
            "exclude_from_search": "0",
            "capability_type": "post",
            "capability_type_custom": "events",
            "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": "1",
            "supports_trackbacks": "0",
            "supports_custom_fields": "1",
            "supports_comments": "0",
            "supports_revisions": "0",
            "supports_page_attributes": "0",
            "supports_post_formats": "0",
            "supports_jetpack_publicize": "0",
            "supports_jetpack_markdown": "0",
            "built_in_taxonomies_category": "0",
            "built_in_taxonomies_link_category": "0",
            "built_in_taxonomies_ml-slider": "0",
            "built_in_taxonomies_post_tag": "0",
            "show_in_menu": "1",
            "show_in_nav_menus": "1",
            "show_in_admin_bar": "1",
            "pfat_enable": "1",
            "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",
            "pfat_single": "Event Page Template",
            "menu_icon": "dashicons-tickets-alt",
            "_migrated_28": "1",
            "repeatable": "0",
            "required": "0",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 1985,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "temp_description",
                            "id": 2182,
                            "label": "Temporary Description",
                            "description": "LEAVE BLANK. Fixes the description field until the next PODS update.",
                            "weight": 0,
                            "type": "wysiwyg",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "wysiwyg_editor": "tinymce",
                            "repeatable": "0",
                            "repeatable_format": "default",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "wysiwyg_media_buttons": "1"
                        },
                        {
                            "name": "event_day",
                            "id": 234,
                            "label": "Day",
                            "description": "Event occurs on this day of the week",
                            "weight": 1,
                            "type": "text",
                            "required": "1",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "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": "event_date",
                            "id": 210,
                            "label": "Date",
                            "description": "Date of the event",
                            "weight": 2,
                            "type": "date",
                            "required": "1",
                            "date_type": "format",
                            "date_format": "fjy",
                            "date_allow_empty": "1",
                            "date_html5": "0",
                            "class": "event-date",
                            "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"
                        },
                        {
                            "name": "event_start_time",
                            "id": 211,
                            "label": "Start Time",
                            "description": "Time the event starts",
                            "weight": 3,
                            "type": "time",
                            "required": "1",
                            "time_type": "12",
                            "time_format": "h_mma",
                            "time_format_24": "hh_mm",
                            "time_allow_empty": "1",
                            "time_html5": "0",
                            "class": "event-time",
                            "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",
                            "time_repeatable": "0"
                        },
                        {
                            "name": "event_end_time",
                            "id": 212,
                            "label": "End Time",
                            "description": "Time the event ends",
                            "weight": 4,
                            "type": "time",
                            "required": "0",
                            "time_type": "12",
                            "time_format": "h_mma",
                            "time_format_24": "hh_mm",
                            "time_allow_empty": "1",
                            "time_html5": "0",
                            "class": "event-time",
                            "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",
                            "time_repeatable": "0"
                        },
                        {
                            "name": "event_location",
                            "id": 213,
                            "label": "Location",
                            "description": "Location of the event",
                            "weight": 5,
                            "type": "text",
                            "required": "1",
                            "text_allow_shortcode": "0",
                            "text_allow_html": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "class": "event-location",
                            "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": "additional_info",
                            "id": 215,
                            "label": "Additional Info",
                            "description": "Additional information about the event",
                            "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",
                            "class": "event-add-info",
                            "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": "registration_button",
                            "id": 229,
                            "label": "Registration Button",
                            "description": "Paste PayPal button code here",
                            "weight": 7,
                            "type": "code",
                            "required": "0",
                            "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 --",
                            "repeatable": "0",
                            "code_max_length": "-1"
                        }
                    ]
                }
            ]
        }
    ],
    "templates": [
        {
            "name": "Event Page Template",
            "code": "<h3>{@post_title}<\/h3>\r\n<p><b>\r\n{@event_day}, {@event_date}\r\n<br\/>{@event_start_time}-{@event_end_time}\r\n\t<br\/>{@event_location}<\/b><\/p>\r\n<p>{@post_content}\r\n\t[if temp_description]\r\n\t{@temp_description}\r\n\t[else]\r\n\t[\/if]\t\r\n<br\/><em>{@additional_info}<\/em><\/p>\r\n<br\/>\r\n<h3>Registration<\/h3>\r\n{@registration_button}\r\n<hr\/>",
            "id": 216,
            "_edit_last": "1",
            "_edit_lock": "1667785897:1",
            "_publicize_pending": "1",
            "admin_only": "0",
            "restrict_capability": "0",
            "show_restrict_message": "1",
            "_pods_capability_allowed": [
                ""
            ],
            "pod_reference": {
                "pod": "events"
            }
        }
    ]
}
sc0ttkclark commented 1 year ago

I wonder if one of those other plugins is interfering. Pods doesn't manage the main content editor field itself, only telling WP whether to show it or not.

Based on your feedback, when Pods loads its own assets for the fields it creates, that loads the same assets needed by the content editor field too so now it shows.

Step one would be to check the browser dev tools console to see if there are any 404s or script errors when the content editor field exhibits this broken behavior.

Once you know what the error is, write that down for reference.

Next step would be to try disabling plugins to determine at which point it starts working. Leave Pods on during that process since that's your custom post type provider.

sc0ttkclark commented 1 year ago

I tested this locally but could not reproduce this. Based on that and the last note I left -- I bet this may be one of the other plugins removing the TinyMCE script needed on that page (probably for their own purposes, but it accidentally applied to all other classic editor powered screens).

JoryHogeveen commented 1 year ago

Closing topic due to inactivity. @elskeetro Feel free to reopen and reply to our comments.