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

Add 'Detect orphan fields' link/button somewhere in Pods Edit area #6384

Closed Luxamman closed 2 years ago

Luxamman commented 2 years ago

Description

After the update to 2.8.x some pods fields are not showing in some pods, but they still work in fronted and are (sometimes) shown in the pods admin overview with the correct number of fields.

--

In the first case, we extend Woo Commerce products, we have one group with 9 fields. Fields are counted right in the pods admin overview, but no fields when try to edit the pod. But they work in front-end via short code and when editing products.

Second case is a simple pod with 3 fields also shown in products, but as a own pod connected via relationship. The fields number count is not shown in the pods admin overview anymore, but are still working to show stuff at front end. But no more pod editing in pods admin and also no editing in the pod own WP menu.

Note: I exported the pods package, but at fields it seems to be completely empty. So not sure if you can import them.

So it seems that the already existing fields are still existing in the DB and information is loaded correctly. But it seems that the pods admin does forget about the building information of some of the pods, or, even if he still can count the fields right, he cannot edit the fields anymore.

--

Downgraded from 2.8.8.1 to 2.8.8 after error: https://github.com/pods-framework/pods/issues/6363

Version

2.8.8

Testing Instructions

No response

Screenshots / Screencast

Pods admin: Fields count for extended product is correct, fields count in custom post knstler are gone:

Pods1

No fields in custom artist post type, but fields are still working in front end via shortcode [pods] with {@artist.text.de}:

Pods2

No more fields in extended product:

Pods3

Possible Workaround

No workaround as far as we know.

Site Health Information

`
### wp-core ###

version: 5.8.2
site_language: de_DE
user_language: de_DE
timezone: Europe/Vienna
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 1
default_comment_status: open
environment_type: production
user_count: 4
dotorg_communication: true

### wp-paths-sizes ###

### wp-active-theme ###

name: Hello Elementor Child (hello-elementor-child)
version: undefined
author: Anonymous
author_website: (undefined)
parent_theme: Hello Elementor (hello-elementor)
theme_features: core-block-patterns, widgets-block-editor, post-thumbnails, menus, automatic-feed-links, title-tag, html5, custom-logo, editor-style, align-wide, woocommerce, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider
theme_path: /var/www/####com/htdocs/wp-content/themes/hello-elementor-child
auto_update: Deaktiviert

### wp-parent-theme ###

name: Hello Elementor (hello-elementor)
version: 2.4.2
author: Elementor Team
author_website: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
theme_path: /var/www/####.com/htdocs/wp-content/themes/hello-elementor
auto_update: Deaktiviert

### wp-themes-inactive (3) ###

Astra: version: 3.7.6, author: Brainstorm Force, Automatische Aktualisierungen deaktiviert
Shophistic Lite: version: 1.0.25, author: Quema Labs, Automatische Aktualisierungen deaktiviert
Storefront: version: 3.9.1, author: Automattic, Automatische Aktualisierungen deaktiviert

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

buffer.php: author: (undefined), version: (undefined)

### wp-plugins-active (32) ###

AJAX-ZOOM: version: 1.1.32, author: AJAX-ZOOM, Automatische Aktualisierungen deaktiviert
Autoptimize: version: 2.9.3, author: Frank Goossens (futtta), Automatische Aktualisierungen deaktiviert
Borlabs Cookie - Cookie Opt-in: version: 2.2.42, author: Benjamin A. Bornschein, Borlabs, Automatische Aktualisierungen deaktiviert
Code Snippets: version: 2.14.3, author: Code Snippets Pro, Automatische Aktualisierungen deaktiviert
dflip: version: 1.7.9, author: DearHive, Automatische Aktualisierungen deaktiviert
Disable Comments: version: 2.3.2, author: WPDeveloper, Automatische Aktualisierungen deaktiviert
Duplicator Pro: version: 4.0.5.3, author: Snap Creek, Automatische Aktualisierungen deaktiviert
DynamicConditions: version: 1.5.1, author: RTO GmbH, Automatische Aktualisierungen deaktiviert
Elementor: version: 3.4.7, author: Elementor.com (latest version: 3.5.2), Automatische Aktualisierungen deaktiviert
Elementor Pro: version: 3.4.2, author: Elementor.com (latest version: 3.5.2), Automatische Aktualisierungen deaktiviert
EWWW Image Optimizer: version: 6.3.0, author: Exactly WWW, Automatische Aktualisierungen deaktiviert
Extras for Elementor: version: 2.2.51, author: Namogo, Automatische Aktualisierungen deaktiviert
JetElements For Elementor: version: 2.6.1, author: Crocoblock, Automatische Aktualisierungen deaktiviert
Modulint Simplify Menu: author: (undefined), version: 1.0.2, Automatische Aktualisierungen deaktiviert
Multilang Popups: version: 1.0.0, author: Oliver Sulzer, Automatische Aktualisierungen deaktiviert
Password Protected: version: 2.5, author: Ben Huson, Automatische Aktualisierungen deaktiviert
Pods - Custom Content Types and Fields: version: 2.8.8, author: Pods Framework Team (latest version: 2.8.8.1), Automatische Aktualisierungen deaktiviert
Redux: version: 4.3.5, author: Extendify, Automatische Aktualisierungen deaktiviert
Shortcoder: version: 5.6, author: Aakash Chakravarthy, Automatische Aktualisierungen deaktiviert
Site Kit by Google: version: 1.48.1, author: Google, Automatische Aktualisierungen deaktiviert
Varnish Caching: version: 1.8.3, author: Razvan Stanga, Automatische Aktualisierungen deaktiviert
WooCommerce: version: 5.7.1, author: Automattic (latest version: 6.0.0), Automatische Aktualisierungen deaktiviert
WooCommerce Multilingual: version: 4.12.1, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert
WooCommerce Print Products: version: 1.7.6, author: weLaunch, Automatische Aktualisierungen deaktiviert
WP Media folder: version: 5.3.23, author: Joomunited, Automatische Aktualisierungen deaktiviert
WPML Media: version: 2.6.5, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert
WPML Multilingual CMS: version: 4.4.12, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert
WPML SEO: version: 2.0.1, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert
WPML String Translation: version: 3.1.10, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert
WPML Translation Management: version: 2.10.8, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert
XforWooCommerce: version: 1.7.0, author: XforWooCommerce, Automatische Aktualisierungen deaktiviert
Yoast SEO: version: 17.8, author: Team Yoast, Automatische Aktualisierungen deaktiviert

### wp-plugins-inactive (18) ###

BBQ Firewall: version: 20210719, author: Jeff Starr, Automatische Aktualisierungen deaktiviert
Better WordPress Google XML Sitemaps: version: 1.4.1, author: Khang Minh, Automatische Aktualisierungen deaktiviert
Broken Link Checker: version: 1.11.16, author: WPMU DEV, Automatische Aktualisierungen deaktiviert
Disable REST API: version: 1.7, author: Dave McHale, Automatische Aktualisierungen deaktiviert
Enable jQuery Migrate Helper: version: 1.3.0, author: The WordPress Team, Automatische Aktualisierungen deaktiviert
Essential Addons for Elementor: version: 4.9.7, author: WPDeveloper, Automatische Aktualisierungen deaktiviert
Essential Addons for Elementor - Pro: version: 4.4.10, author: WPDeveloper, Automatische Aktualisierungen deaktiviert
Extras for Elementor: version: 2.2.35, author: Namogo, Automatische Aktualisierungen deaktiviert
JetMenu: version: 2.1.3, author: Crocoblock, Automatische Aktualisierungen deaktiviert
Redis Object Cache: version: 2.0.22, author: Till Krüss, Automatische Aktualisierungen deaktiviert
Regenerate Thumbnails: version: 3.1.5, author: Alex Mills (Viper007Bond), Automatische Aktualisierungen deaktiviert
Sold Out Badge for WooCommerce: version: 2.1.0, author: Charlie Etienne, Automatische Aktualisierungen deaktiviert
WooCommerce Bulk Editor: version: 2.0.5.1, author: realmag777, Automatische Aktualisierungen deaktiviert
WooCommerce Shipping & Tax: version: 1.25.20, author: WooCommerce, Automatische Aktualisierungen deaktiviert
WP-Sweep: version: 1.1.5, author: Lester 'GaMerZ' Chan, Automatische Aktualisierungen deaktiviert
WP All Import - WooCommerce Add-On Pro: version: 3.2.4, author: Soflyy, Automatische Aktualisierungen deaktiviert
WP All Import Pro: version: 4.6.1, author: Soflyy, Automatische Aktualisierungen deaktiviert
WPML All Import: version: 2.2.0, author: OnTheGoSystems, Automatische Aktualisierungen deaktiviert

### wp-media ###

image_editor: EWWWIO_GD_Editor
imagick_module_version: Nicht verfügbar
imagemagick_version: Nicht verfügbar
imagick_version: Nicht verfügbar
file_uploads: File uploads is turned off
post_max_size: 164M
upload_max_filesize: 164M
max_effective_size: 164 MB
max_file_uploads: 20
gd_version: 2.2.5
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: not available

### wp-server ###

server_architecture: Linux 5.4.78-1-pve x86_64
httpd_software: Apache/2.4.38 (Debian)
php_version: 7.3.28-1+0~20210503.84+debian10~1.gbp6819da 64bit
php_sapi: fpm-fcgi
max_input_variables: 10000
time_limit: 120
memory_limit: 256M
max_input_time: 120
upload_max_filesize: 164M
php_post_max_size: 164M
curl_version: 7.64.0 OpenSSL/1.1.1d
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 10.3.17-MariaDB
client_version: mysqlnd 5.0.12-dev - 20150407 - $Id:  $

### wp-constants ###

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/####.com/htdocs/wp-content
WP_PLUGIN_DIR: /var/www/####.com/htdocs/wp-content/plugins
WP_MEMORY_LIMIT: 256M
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_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
0: Writable

### redux-framework ###

version: 4.3.5
installation: plugin
data directory: /var/www/####.com/htdocs/wp-content/plugins/redux-framework/redux-core/
browser: 
    Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36
    Browser: Chrome
    Version: 96.0.4664.110
    Platform: Windows

### redux-instance-woocommerce_print_products_options ###

opt_name: woocommerce_print_products_options
global_variable: woocommerce_print_products_options
dev_mode: false
ajax_save: true
page_slug: woocommerce_print_products_options_options
page_permissions: manage_options
menu_type: submenu
page_parent: woocommerce
compiler: true
output: true
output_tag: true
templates_path: undefined
extensions: 
    Customizer: 4.0.0
    Import Export: 4.0.0
    Metaboxes: 4.0.0
    Options Object: 4.0.0
    Search: 3.4.5
    Shortcodes: 4.3.5

### google-site-kit ###

version: 1.48.1
php_version: 7.3.28-1+0~20210503.84+debian10~1.gbp6819da
wp_version: 5.8.2
reference_url: https://####.com
amp_mode: no
site_status: connected-site
user_status: not authenticated
verification_status: not-verified
connected_user_count: 1
active_modules: site-verification, search-console, analytics, analytics-4, tagmanager
required_scopes: 
    openid: ⭕
    https://www.googleapis.com/auth/userinfo.profile: ⭕
    https://www.googleapis.com/auth/userinfo.email: ⭕
    https://www.googleapis.com/auth/siteverification: ⭕
    https://www.googleapis.com/auth/webmasters: ⭕
    https://www.googleapis.com/auth/analytics.readonly: ⭕
    https://www.googleapis.com/auth/tagmanager.readonly: ⭕
capabilities: 
    googlesitekit_authenticate: ✅
    googlesitekit_setup: ✅
    googlesitekit_view_posts_insights: ⭕
    googlesitekit_view_dashboard: ⭕
    googlesitekit_view_module_details: ⭕
    googlesitekit_manage_options: ⭕
enabled_features: 
    dashboardSharing: ⭕
    ideaHubModule: ⭕
    serviceSetupV2: ⭕
    swgModule: ⭕
    userInput: ⭕
    unifiedDashboard: ⭕
search_console_property: https://####.com/
analytics_account_id: 2022•••••
analytics_property_id: UA-2022•••••••
analytics_profile_id: 2470•••••
analytics_use_snippet: yes
analytics_4_property_id: 2793664••
analytics_4_web_data_stream_id: 2699••••••
analytics_4_measurement_id: G-2N••••••••
analytics_4_use_snippet: yes
tagmanager_account_id: 6004••••••
tagmanager_container_id: GTM-TXG••••
tagmanager_amp_container_id: none
tagmanager_use_snippet: yes

### pods ###

pods-server-software: Apache/2.4.38 (Debian)
pods-user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 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: Yes
pods-object-cache-memcache: No
pods-object-cache-memcached: No
pods-object-cache-redis: No
pods-memory-current-usage: 60,290M
pods-memory-current-usage-real: 4,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",
        "build": 1640263364
    },
    "pods": [
        {
            "name": "knstler",
            "id": 10342,
            "label": "K\u00fcnstler",
            "description": "",
            "label_singular": "K\u00fcnstler",
            "public": "0",
            "show_ui": "1",
            "supports_title": "1",
            "supports_editor": "0",
            "type": "post_type",
            "storage": "meta",
            "publicly_queryable": "0",
            "exclude_from_search": "0",
            "capability_type": "post",
            "capability_type_custom": "knstler",
            "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_elementor_font_type": "0",
            "built_in_taxonomies_elementor_library_category": "0",
            "built_in_taxonomies_elementor_library_type": "0",
            "built_in_taxonomies_jahr": "0",
            "built_in_taxonomies_link_category": "0",
            "built_in_taxonomies_pa_epoche": "0",
            "built_in_taxonomies_pa_zeitraum": "0",
            "built_in_taxonomies_post_tag": "0",
            "built_in_taxonomies_product_cat": "0",
            "built_in_taxonomies_product_shipping_class": "0",
            "built_in_taxonomies_product_tag": "0",
            "built_in_taxonomies_product_type": "0",
            "built_in_taxonomies_product_visibility": "0",
            "built_in_taxonomies_sc_tag": "0",
            "built_in_taxonomies_translation_priority": "0",
            "built_in_taxonomies_wpmf-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",
            "_migrated_28": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 19504,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": []
                }
            ]
        },
        {
            "name": "product",
            "id": 648,
            "label": "Product",
            "description": "",
            "type": "post_type",
            "storage": "meta",
            "object": "product",
            "pfat_enable": "0",
            "pfat_run_outside_loop": "0",
            "pfat_append_single": "append",
            "pfat_filter_single": "the_content",
            "pfat_append_archive": "append",
            "pfat_filter_archive": "custom",
            "rest_enable": "0",
            "read_all": "0",
            "write_all": "0",
            "pfat_filter_archive_custom": "the_content",
            "_migrated_28": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 19500,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": []
                }
            ]
        }
    ]
}
JoryHogeveen commented 2 years ago

Hi @Luxamman

Can you find a procedure we can follow to reproduce this issue?

Luxamman commented 2 years ago

Not sure, the only procedure I can think about is to create several pods and fields in Pods 2.7.x and update it to 2.8.x.

This site uses 8 custom post types and extends the products in WooCommerce. So maybe its also because we use about 57 fields in those 9 pods? Is there a routine migrating the pods or searching for existing pods?

--

I could export the two pods from a older version of the site, using Pods 2.7.30 - hopefully the import works now:

{"meta":{"version":"2.7.30","build":1640685157},"pods":{"10342":{"id":10342,"name":"knstler","label":"Künstler","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"text_de":{"id":10352,"name":"text_de","label":"Text DE","description":"","help":"","class":"","type":"wysiwyg","weight":0,"pick_object":"","pick_val":"","sister_id":"","required":"0","wysiwyg_editor":"tinymce","wysiwyg_media_buttons":"1","wysiwyg_oembed":"0","wysiwyg_wptexturize":"1","wysiwyg_convert_chars":"1","wysiwyg_wpautop":"1","wysiwyg_allow_shortcode":"0","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_hulucom":"0","oembed_enabled_providers_instagramcom":"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","wysiwyg_repeatable":0,"wysiwyg_editor_height":"","wysiwyg_allowed_html_tags":""},"text_en":{"id":10353,"name":"text_en","label":"Text EN","description":"","help":"","class":"","type":"wysiwyg","weight":1,"pick_object":"","pick_val":"","sister_id":"","required":"0","wysiwyg_editor":"tinymce","wysiwyg_media_buttons":"1","wysiwyg_oembed":"0","wysiwyg_wptexturize":"1","wysiwyg_convert_chars":"1","wysiwyg_wpautop":"1","wysiwyg_allow_shortcode":"0","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_hulucom":"0","oembed_enabled_providers_instagramcom":"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","wysiwyg_repeatable":0,"wysiwyg_editor_height":"","wysiwyg_allowed_html_tags":""},"text_fr":{"id":10354,"name":"text_fr","label":"Text FR","description":"","help":"","class":"","type":"wysiwyg","weight":2,"pick_object":"","pick_val":"","sister_id":"","required":"0","wysiwyg_editor":"tinymce","wysiwyg_media_buttons":"1","wysiwyg_oembed":"0","wysiwyg_wptexturize":"1","wysiwyg_convert_chars":"1","wysiwyg_wpautop":"1","wysiwyg_allow_shortcode":"0","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_hulucom":"0","oembed_enabled_providers_instagramcom":"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","wysiwyg_repeatable":0,"wysiwyg_editor_height":"","wysiwyg_allowed_html_tags":""}},"show_in_menu":"1","label_singular":"Künstler","public":"0","show_ui":"1","supports_title":"1","supports_editor":"0","publicly_queryable":"0","exclude_from_search":"0","capability_type":"post","capability_type_custom":"knstler","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_elementor_font_type":"0","built_in_taxonomies_elementor_library_category":"0","built_in_taxonomies_elementor_library_type":"0","built_in_taxonomies_jahr":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_pa_epoche":"0","built_in_taxonomies_pa_zeitraum":"0","built_in_taxonomies_post_tag":"0","built_in_taxonomies_product_cat":"0","built_in_taxonomies_product_shipping_class":"0","built_in_taxonomies_product_tag":"0","built_in_taxonomies_product_type":"0","built_in_taxonomies_product_visibility":"0","built_in_taxonomies_sc_tag":"0","built_in_taxonomies_translation_priority":"0","built_in_taxonomies_wpmf-category":"0","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"},"648":{"id":648,"name":"product","label":"Product","description":"","type":"post_type","storage":"meta","object":"product","alias":"","fields":{"date_from":{"id":1609,"name":"date_from","label":"Date from","description":"","help":"","class":"","type":"number","weight":0,"pick_object":"","pick_val":"","sister_id":"","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":"4","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_hulucom":"0","oembed_enabled_providers_instagramcom":"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","number_repeatable":"0","number_placeholder":""},"date_to":{"id":1610,"name":"date_to","label":"Date to","description":"Leer lassen wenn nur ein Datum","help":"","class":"","type":"number","weight":1,"pick_object":"","pick_val":"","sister_id":"","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":"4","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_hulucom":"0","oembed_enabled_providers_instagramcom":"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","number_repeatable":"0","number_placeholder":""},"expertise":{"id":1885,"name":"expertise","label":"Expertise","description":"","help":"","class":"","type":"paragraph","weight":2,"pick_object":"","pick_val":"","sister_id":"","required":"0","paragraph_allow_html":"1","paragraph_oembed":"0","paragraph_wptexturize":"1","paragraph_convert_chars":"1","paragraph_wpautop":"1","paragraph_allow_shortcode":"0","paragraph_allowed_html_tags":"strong em a ul ol li b i","paragraph_max_length":"0","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_hulucom":"0","oembed_enabled_providers_instagramcom":"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","paragraph_repeatable":"0","paragraph_placeholder":""},"technique":{"id":1969,"name":"technique","label":"Technique","description":"","help":"","class":"","type":"text","weight":3,"pick_object":"","pick_val":"","sister_id":"","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","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_hulucom":"0","oembed_enabled_providers_instagramcom":"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","text_repeatable":"0","text_placeholder":""},"artist":{"id":651,"name":"artist","label":"Künstler","description":"","help":"","class":"","type":"pick","weight":4,"pick_object":"post_type","pick_val":"knstler","sister_id":"","required":"0","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_hulucom":"0","oembed_enabled_providers_instagramcom":"0","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","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":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"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_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"ausfhrung":{"id":10379,"name":"ausfhrung","label":"Ausführung","description":"","help":"","class":"","type":"pick","weight":5,"pick_object":"post_type","pick_val":"ausfhrung","sister_id":"","required":"0","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_hulucom":"0","oembed_enabled_providers_instagramcom":"0","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","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":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"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_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"kunstgeschichte":{"id":10380,"name":"kunstgeschichte","label":"Kunstgeschichte","description":"","help":"","class":"","type":"pick","weight":6,"pick_object":"post_type","pick_val":"kunstgeschichte","sister_id":"","required":"0","oembed_enabled_providers_facebookcom":"0","oembed_enabled_providers_hulucom":"0","oembed_enabled_providers_instagramcom":"0","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","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":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"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_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""}},"show_in_menu":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"}}}

JoryHogeveen commented 2 years ago

Hi @Luxamman

Can you reproduce the same issue on a fresh install with only Pods active? If you do not have the possibility to create a test installation you can install Local from Flywheel: https://localwp.com/

Luxamman commented 2 years ago

Tried it in localwp (prepared a ZIP file as base to try it again), but everything seems to be okay after updating. Installed as much plugins as possible like on the live site (at least the non pro plugins...) and imported lot of content and products. Do you think it could be a plugin making problems?

Can we go back to 2.7.31 or is this maybe making problems? Or is there a function to make pods search for fields again?

JoryHogeveen commented 2 years ago

Hi @Luxamman

This indeed sounds like a plugin conflict. Please recreate your live site in full (including all plugins and the full database) to try and reproduce the issue.

Codesign8 commented 2 years ago

Same issue here. Pod showing field quantity correct but no fields in the edit box in Pods.

I'm on Pods v2.8.8.1 and WordPress v5.8.3. All plugins except Pods deactivated and default WordPress Twenty Twenty One active. (Was using Bricks builder/theme to build the page at the time). Only Updraft Backup and Happyfiles were installed at any time in this install. No WooCommerce and no extending another post type.

The issue seemed to arise after either or both of the following:

  1. I renamed fields that were used for a relationship, though that only broke the ability to add content as far as I can tell.

  2. I also duplicated pods. An original Pod is fine, but it creates a problem blank duplicate with the correct 9 field count. A duplicate of the problem pod shows 0 fields. I can add new fields to the problem pod that work fine and the original invisible (in the Pods editor) fields show up OK in WordPress and the REST API JSON output.

From what I can see, all duplicated Pods now have this issue. Original is good... Copy shows correct field count, but when you click on it, it's empty inside. A copy of that copy shows 0 field count.

Luxamman commented 2 years ago

Haven't been able to reproduce the problem so far. Have a local installation with all plugins running, the update seemed to run normally.

The old fields are no longer available in the "pods editor", but if I want to create a field with the same name as before: "Field not added, it already exists."

So till now I have no idea how to fix that problem...

Luxamman commented 2 years ago

Could it be that we have double entries in the DB which then cause problems? Here are some entries from the DB: different IDs and names, but exactly the same content or just a few characters differ in option_value:

Two times exactly the same character number: image

Two times exactly the same character number in ID 1062974 and 1063290, the ID 1063230 entry has a few characters less: image

As you can see the option_value of those entries starts with exactly the same characters. Is that normal to have multiple entries in options?

sc0ttkclark commented 2 years ago

@Luxamman Those transients are all related to cached datasets. They all start the same and may even have the same results but they are actually different queries (based on the unique MD5 key generated for that unique cache key).

sc0ttkclark commented 2 years ago

It sounds like there may have been a number of fields "orphaned" by the upgrade process due to an unknown factor.

To recover orphaned fields, you can go edit that pod in question and add this to the URL: &pods_debug_find_orphan_fields=1 and it will run an orphan check. If it finds orphaned fields, it will automatically assign them to the first group.

Let us know if that doesn't immediately resolve your problem here.

Luxamman commented 2 years ago

Thanks for your answers, after running the orphaned fields check, the fields are back again!

Thanks a lot, this saves a lot of time. Seems the update to 2.8 has made problems here... maybe in combination with other plugins. Maybe it would be nice to have a button for that function in the settings next to "Clear Pods Cache" or so if those problems will appear again.

Thanks again!

sc0ttkclark commented 2 years ago

I'll look at adding a button or link somewhere in the edit pod screen, will see what makes sense there

Codesign8 commented 2 years ago

I can't say if that would have worked in my case, as I deleted the entire Pods and restarted building fields in them. I'm afraid to run that check in case it creates problems. Is there a way to just check if orphan fields exist without changing anything?

As for adding a button, I wonder if an automatic check and a warning or prompt might be better than having a button. Adding a button would presume that a user knows an issue is due to orphan fields. I'm assuming orphan fields are not a feature.

sc0ttkclark commented 2 years ago

@Codesign8 The orphan fields check is non-destructive, it will only modify fields that literally have no group assigned to them yet.

It's a process that normally happens on the first pod edit after upgrading to Pods 2.8+, but that special query string added to the URL will re-run that step.

I wanted to avoid an extra query on every edit pod screen page load, but it might be unavoidable if we only want to show the orphan field check button in those cases.

sc0ttkclark commented 2 years ago

Just updating here -- I added a check in Pods 2.8.9 which will auto-detect a field count mismatch, it should cover almost every remaining case which will reduce/remove the need for adding a link/button.

Luxamman commented 2 years ago

Thanks, hope this helps in the future!

What I also found out just yesterday - are the settings of an Pod also checked with this check? Seems like the settings are sometimes also not transfered from 2.7 to 2.8.

Two screenshots of settings of an Pod before and after the update: Before in 2.7: settings before

After in 2.8: settings after

As you can see, most of the settings are just gone. We have some weird problems with translating with WPML (because we can not reach the fields in other languages than the main language) and that's why I found out about the settings...

sc0ttkclark commented 2 years ago

@Luxamman I wasn't able to reproduce this with your 2.7.x package you posted earlier. Can you post a new issue about it with any other details you can?

I went to 2.7.31 and imported the package. Then I updated to 2.8.8.1 (and the new 2.8.9 version) but didn't see the values not showing up as set correctly.