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.06k stars 264 forks source link

More Fields box missing in second language post editor in Pods 2.8 and after #7079

Open c-davidson opened 1 year ago

c-davidson commented 1 year ago

Description

I'm using Pods to create job postings on a bilingual site that uses WPML. Each job posting has 2 fields (job # and close date), and each post has an English and French version. English is the default language and French is the secondary. After the update to Pods 2.8, the More Fields box in the post editor is missing for the French posts.

Related: https://github.com/pods-framework/pods/issues/7078

@JoryHogeveen

Version

2.9.13 (but issue started with 2.8)

Testing Instructions

See https://github.com/pods-framework/pods/issues/7078

Screenshots / Screencast

Screenshot 2023-05-26 161012 Screenshot 2023-05-26 161050

Possible Workaround

No response

Site Health Information

`
### wp-core ###

version: 6.2.2
site_language: en_US
user_language: en_US
timezone: America/Toronto
permalink: /%postname%/
https_status: true
multisite: false
user_registration: 0
blog_public: 0
default_comment_status: closed
environment_type: production
user_count: 4
dotorg_communication: true

### wp-paths-sizes ###

wordpress_path: /home/customer/www/comnet.conniedavidson.ca/public_html
wordpress_size: 184.83 MB (193808040 bytes)
uploads_path: /home/customer/www/comnet.conniedavidson.ca/public_html/wp-content/uploads
uploads_size: 33.97 MB (35618646 bytes)
themes_path: /home/customer/www/comnet.conniedavidson.ca/public_html/wp-content/themes
themes_size: 23.53 MB (24676249 bytes)
plugins_path: /home/customer/www/comnet.conniedavidson.ca/public_html/wp-content/plugins
plugins_size: 213.54 MB (223917397 bytes)
database_size: 56.19 MB (58916864 bytes)
total_size: 512.06 MB (536937196 bytes)

### wp-active-theme ###

name: Total (Total)
version: 5.7.1
author: WPExplorer
author_website: https://www.wpexplorer.com/
parent_theme: none
theme_features: core-block-patterns, widgets-block-editor, editor-style, automatic-feed-links, post-thumbnails, title-tag, customize-selective-refresh-widgets, align-wide, responsive-embeds, post-formats, html5, menus, widgets
theme_path: /home/customer/www/comnet.conniedavidson.ca/public_html/wp-content/themes/Total
auto_update: Disabled

### wp-themes-inactive (2) ###

Twenty Twenty-Three: version: 1.1, author: the WordPress team, Auto-updates disabled
Twenty Twenty-Two: version: 1.4, author: the WordPress team, Auto-updates disabled

### wp-plugins-active (8) ###

Pods - Custom Content Types and Fields: version: 2.9.13, author: Pods Framework Team, Auto-updates disabled
Posts Table Pro: version: 3.0.6, author: Barn2 Plugins, Auto-updates disabled
SiteGround Optimizer: version: 7.3.1, author: SiteGround, Auto-updates disabled
Total Theme Core: version: 1.6.1, author: WPExplorer, Auto-updates disabled
WPBakery Page Builder: version: 6.9.0, author: Michael M - WPBakery.com, Auto-updates disabled
WPML Media: version: 2.7.2, author: OnTheGoSystems, Auto-updates disabled
WPML Multilingual CMS: version: 4.6.3, author: OnTheGoSystems, Auto-updates disabled
WPML String Translation: version: 3.2.5, author: OnTheGoSystems, Auto-updates disabled

### wp-plugins-inactive (12) ###

Classic Widgets: version: 0.3, author: WordPress Contributors, Auto-updates disabled
iubenda | All-in-one Compliance for GDPR / CCPA Cookie Consent + more: version: 3.7.1, author: iubenda, Auto-updates disabled
LayerSlider: version: 7.7.5, author: Kreatura Media, Auto-updates disabled
PublishPress Future: version: 2.9.2, author: PublishPress, Auto-updates disabled
Redirection: version: 5.3.10, author: John Godley, Auto-updates disabled
SiteGround Security: version: 1.4.5, author: SiteGround, Auto-updates disabled
Templatera: version: 2.0.5, author: WPBakery, Auto-updates disabled
UberMenu 3 - The Ultimate WordPress Mega Menu: version: 3.8.1, author: Chris Mavricos, SevenSpark, Auto-updates disabled
UpdraftPlus - Backup/Restore: version: 2.23.4.26, author: UpdraftPlus.Com, DavidAnderson, Auto-updates disabled
Wordfence Security: version: 7.9.2, author: Wordfence, Auto-updates disabled
WP Accessibility: version: 2.0.1, author: Joe Dolson, Auto-updates disabled
Yoast SEO: version: 20.8, author: Team Yoast, 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.3.3
gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM
ghostscript_version: 9.56.1

### 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.85.0 OpenSSL/3.0.8
suhosin: false
imagick_availability: false
pretty_permalinks: true
htaccess_extra_rules: true

### wp-database ###

extension: mysqli
server_version: 5.7.39-42-log
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/comnet.conniedavidson.ca/public_html/wp-content
WP_PLUGIN_DIR: /home/customer/www/comnet.conniedavidson.ca/public_html/wp-content/plugins
WP_MEMORY_LIMIT: 256M
WP_MAX_MEMORY_LIMIT: 768M
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
DB_CHARSET: utf8
DB_COLLATE: undefined

### wp-filesystem ###

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: 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/113.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: 96.605M
pods-memory-current-usage-real: 98.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: 0

`

Pods Package

{
    "@meta": {
        "version": "2.9.13",
        "build": 1685131990
    },
    "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": "job",
            "id": 1373,
            "label": "Jobs",
            "description": "",
            "label_singular": "Job",
            "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": "job",
            "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_link_category": "0",
            "built_in_taxonomies_portfolio_category": "0",
            "built_in_taxonomies_portfolio_tag": "0",
            "built_in_taxonomies_post_series": "0",
            "built_in_taxonomies_post_tag": "0",
            "built_in_taxonomies_staff_category": "0",
            "built_in_taxonomies_staff_tag": "0",
            "built_in_taxonomies_testimonials_category": "0",
            "built_in_taxonomies_translation_priority": "0",
            "show_in_menu": "1",
            "menu_position": "0",
            "show_in_nav_menus": "1",
            "show_in_admin_bar": "1",
            "pfat_enable": "0",
            "pfat_append_single": "append",
            "pfat_filter_single": "the_content",
            "pfat_append_archive": "append",
            "pfat_filter_archive": "the_excerpt",
            "pfat_run_outside_loop": "0",
            "rest_enable": "0",
            "read_all": "0",
            "write_all": "0",
            "built_in_taxonomies_region": "1",
            "label_fr_FR": "Emplois",
            "label_singular_fr_FR": "Emplois",
            "enable_i18n": {
                "fr_FR": "1"
            },
            "_wpml_location_migration_done": "1",
            "_migrated_28": "1",
            "_wpml_word_count": "{\"total\":2,\"to_translate\":{\"fr\":2}}",
            "label_i18n": "Jobs",
            "label_i18n_default": "Jobs",
            "label_singular_i18n": "Job",
            "label_singular_i18n_default": "Job",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 1867,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "_wpml_location_migration_done": "1",
                    "_wpml_word_count": "{\"total\":4,\"to_translate\":{\"fr\":4}}",
                    "fields": [
                        {
                            "name": "job_num",
                            "id": 1374,
                            "label": "Job #",
                            "description": "",
                            "weight": 0,
                            "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",
                            "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": "1",
                            "unique": "0",
                            "text_repeatable": "0",
                            "_wpml_location_migration_done": "1",
                            "_wpml_word_count": "{\"total\":4,\"to_translate\":{\"fr\":4}}",
                            "sister_id": "-- Select One --",
                            "required_help_boolean": "0",
                            "repeatable": "0",
                            "repeatable_format": "default",
                            "label_fr_FR": "No. d\u2019emploi"
                        },
                        {
                            "name": "close_date",
                            "id": 1375,
                            "label": "Close date",
                            "description": "",
                            "weight": 1,
                            "type": "date",
                            "required": "0",
                            "date_type": "custom",
                            "date_format": "mdy",
                            "date_allow_empty": "1",
                            "date_html5": "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": "1",
                            "unique": "0",
                            "date_repeatable": "0",
                            "date_format_custom": "j F Y",
                            "_wpml_location_migration_done": "1",
                            "_wpml_word_count": "{\"total\":4,\"to_translate\":{\"fr\":4}}",
                            "sister_id": "-- Select One --",
                            "required_help_boolean": "0",
                            "repeatable": "0",
                            "repeatable_format": "default",
                            "label_fr_FR": "Date limite"
                        }
                    ]
                }
            ]
        },
        {
            "name": "region",
            "id": 1376,
            "label": "Regions",
            "description": "",
            "label_singular": "Region",
            "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": "region",
            "query_var": "0",
            "sort": "0",
            "built_in_post_types_custom_css": "0",
            "built_in_post_types_customize_changeset": "0",
            "built_in_post_types_job": "1",
            "built_in_post_types_oembed_cache": "0",
            "built_in_post_types_page": "0",
            "built_in_post_types_portfolio": "0",
            "built_in_post_types_post": "0",
            "built_in_post_types_staff": "0",
            "built_in_post_types_templatera": "0",
            "built_in_post_types_testimonials": "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_block": "0",
            "built_in_post_types_wpex_color_palette": "0",
            "built_in_post_types_wpex_font": "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_append_single": "append",
            "pfat_filter_single": "get_the_archive_description",
            "rest_enable": "0",
            "read_all": "0",
            "write_all": "0",
            "label_fr_FR": "R\u00e9gions",
            "label_singular_fr_FR": "R\u00e9gion",
            "enable_i18n": {
                "fr_FR": "1"
            },
            "_wpml_location_migration_done": "1",
            "groups": [
                {
                    "name": "more_fields",
                    "label": "More Fields",
                    "fields": []
                }
            ]
        }
    ]
}
JoryHogeveen commented 10 months ago

@sc0ttkclark @c-davidson Unfortunately I cannot reproduce this issue with Pods 3.0 so I guess this might be fixed in the meantime!

c-davidson commented 10 months ago

Hi @JoryHogeveen,

I'm still having the issue with Pods 2.9.19. I've tried some different WPML settings but just can't get the More Fields box to reappear on the French post editor screen. This site is a development site which is a duplicate of the production site. On the production site, I tried updating Pods from 2.7.31 to 2.9.19 again. On that site, the More Fields box is there on the French post editor, but when I edit a custom field and Update, the change is not saved. (I'm really confused about why the More Fields box displays on the production site but not the dev site.)

I can open a new ticket if necessary.

When will Pods 3.0 be available?

Connie

JoryHogeveen commented 10 months ago

Hi @c-davidson

You can download 3.0 from this link: https://github.com/pods-framework/pods/tree/release/3.0 Let me know if this works for you, if not, we'll need to dive into this a lot more so my local tests are equal to yours.

Cheers, Jory

c-davidson commented 9 months ago

Thank you. I will give this a try and let you know.

c-davidson commented 8 months ago

Hi @JoryHogeveen,

I've tried updating to the current version of Pods (3.0.8), and unfortunately the problem is still there.

Just to remind you, the problem is only on the French side. The More Fields box is showing in the French post editor now (good), but if I try to make any changes to the data in the fields (text or date) and click the Update button, the changes don't save (not good). I've tried switching to the 2024 theme. I've also deactivated all plugins that aren't necessary. All plugins, themes, and WP are up to date.

I really appreciate your help in tracking this down.

Connie

c-davidson commented 5 months ago

Hi @JoryHogeveen,

I'm checking in to see if there is any progress on fixing the issue of the More Fields data not saving on secondary language posts.

Connie