Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating 2.7.31 -> Latest Version - Edit Pod has missing fields #7007

Closed
techprogrammer opened this issue Feb 7, 2023 · 7 comments
Closed
Assignees
Milestone

Comments

@techprogrammer
Copy link

Description

Been using Pods 2.7.31. Tried to upgrade to 2.9.11.1 and notice issues concerning specific fields. Isolating it further, we see if you try to Edit Pods on specific Pod - Custom Taxonomy - Table - it shows only 1 field, not 5 fields that exist

Back testing: This issue happens starting with Pods 2.8.

Version

2.7.31

Testing Instructions

Website with Pods 2.7.31 working fine.
Upgrade to Pods 2.8
Edit Pods on Category table
Notice only 1 field shows up even though it has 5

Screenshots / Screencast

messed up
messed up-2
category fields

Possible Workaround

stay with 2.7.31

Site Health Information

No response

Pods Package

{"meta":{"version":"2.7.31","build":1675751043},"pods":{"418":{"id":418,"name":"categories","label":"Categories","description":"","type":"taxonomy","storage":"table","object":"","alias":"","fields":{"category_id":{"id":419,"name":"category_id","label":"Category ID *","description":"","help":"","class":"","type":"number","weight":0,"pick_object":"","pick_val":"","sister_id":"","required":"0","unique":"1","number_format":"9999.99","number_decimals":"0","number_max_length":"12","wysiwyg_max_length":"0","admin_only":"0","restrict_capability":"0","css_class_name":"","input_helper":"","default_value":"","default_value_parameter":"","capability_allowed":"","number_repeatable":0,"number_format_type":"number","number_format_soft":0,"number_step":1,"number_min":0,"number_max":100,"number_placeholder":""},"related_category":{"id":420,"name":"related_category","label":"Related Category","description":"","help":"","class":"","type":"pick","weight":1,"pick_object":"pod","pick_val":"categories","sister_id":"","required":"0","unique":"0","wysiwyg_max_length":"0","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","pick_limit":"0","admin_only":"0","restrict_capability":"0","css_class_name":"","input_helper":"","default_value":"","default_value_parameter":"","capability_allowed":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":"","pick_display_format_multi":"default","pick_display_format_separator":", ","pick_allow_add_new":1,"pick_taggable":0,"pick_show_icon":1,"pick_show_edit_link":1,"pick_show_view_link":1,"pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_user_role":"","pick_post_status":"publish"},"alternate_url":{"id":3812,"name":"alternate_url","label":"Alternate URL","description":"PG Partner URL to display if category contains no active deals","help":"","class":"","type":"website","weight":2,"pick_object":"","pick_val":"","sister_id":"","required":"0","unique":"0","website_format":"normal","website_max_length":"255","website_html5":"0","wysiwyg_max_length":"0","admin_only":"0","restrict_capability":"0","css_class_name":"","input_helper":"","default_value":"","default_value_parameter":"","capability_allowed":"","website_repeatable":0,"website_allow_port":0,"website_clickable":0,"website_new_window":0,"website_placeholder":""},"hide_shipping":{"id":7559,"name":"hide_shipping","label":"Hide Shipping","description":"Hide \"Free Shipping\" in deal titles?","help":"","class":"","type":"boolean","weight":3,"pick_object":"","pick_val":"","sister_id":"","required":"0","unique":"0","wysiwyg_max_length":"0","boolean_format_type":"checkbox","boolean_yes_label":"Yes","boolean_no_label":"No","default_value":"No","admin_only":"0","restrict_capability":"0","css_class_name":"","input_helper":"","default_value_parameter":"","capability_allowed":""},"active":{"id":21087,"name":"active","label":"Active *","description":"","help":"","class":"","type":"boolean","weight":4,"pick_object":"","pick_val":"","sister_id":"","pick_custom":"","required":"0","unique":"0","wysiwyg_max_length":"0","boolean_format_type":"checkbox","boolean_yes_label":"Yes","boolean_no_label":"No","input_helper":"","default_value":"Yes","default_value_parameter":"","admin_only":"0","restrict_capability":"0","capability_allowed":""}},"show_in_menu":1,"label_singular":"category","public":"1","show_ui":"1","show_in_nav_menus":"1","show_tagcloud":"1","hierarchical":"1","rewrite":"1","rewrite_with_front":"1","rewrite_hierarchical":"1","query_var":"0","built_in_post_types_post":"0","built_in_post_types_page":"0","built_in_post_types_deals":"1","sort":"0","show_admin_column":"0","built_in_post_types_safecss":"0","built_in_post_types_feedback":"0","built_in_post_types_attachment":"0","label_add_new":"","label_add_new_item":"","label_new_item":"","label_edit":"","label_edit_item":"","label_update_item":"","label_view":"","label_view_item":"","label_all_items":"","label_search_items":"","label_not_found":"","label_popular_items":"","label_separate_items_with_commas":"","label_add_or_remove_items":"","label_choose_from_the_most_used":"","menu_name":"","menu_icon":"","label_parent_item_colon":"","label_parent":"","rewrite_custom_slug":"","update_count_callback":""}}}
@techprogrammer techprogrammer changed the title Edit Pod has missing fields Updating 2.7.31 -> Latest Version - Edit Pod has missing fields Feb 10, 2023
@sc0ttkclark sc0ttkclark self-assigned this Feb 10, 2023
@sc0ttkclark sc0ttkclark added this to the Pods 2.9.12 milestone Feb 10, 2023
@sc0ttkclark
Copy link
Member

Seems to be resolved when you run the Repair tool as per https://wordpress.org/support/topic/updating-2-7-31-latest-version-edit-pod-has-missing-fields/#post-16463605

We'll need to go over and see if there are any issues in the first 2.8 upgrade process when editing that pod. Also, if we can detect there may be fields not showing on the screen, perhaps we can show a notice on that screen with a link to run the repair for that specific pod.

@techprogrammer
Copy link
Author

Output when selecting repair

Capture

@sc0ttkclark
Copy link
Member

Thanks, this helps us further identify where it may be going wrong in the upgrade process for this specific case.

@techprogrammer
Copy link
Author

techprogrammer commented Feb 15, 2023

I reference the category pods in another pod and notice there is nothing in the Related To field. Works ok with 2.7.31 though. Latest pods wants something in Related To field.
I tried changing Related To from blank to Categories (categories) and noticed it caused issues reading this value from either pods version.

I suggest contacting me directly to debug..

oldpods

@sc0ttkclark
Copy link
Member

I'll load up your package and see if I can find out anything there

@techprogrammer
Copy link
Author

techprogrammer commented Feb 15, 2023

Might be useful:
Working 2.7.31 json data for Deal Pod:
"pick_object": "pod",
"pick_val": "categories",

Messed up staging server json data after trying to set Related to:

				"pick_object": "taxonomy",
				"pick_val": "categories",

I don't see a way to check pick_object back to pod other than editing the wp_options table directly.
If I import the working pods data onto my messed up staging server, should it fix the issue I caused changing Related To: ?

sc0ttkclark added a commit that referenced this issue Feb 20, 2023
Slightly related to #7007 but does not resolve the UI issue there
sc0ttkclark added a commit that referenced this issue Feb 20, 2023
…d' but the real object is a post_type or taxonomy

Fixes #7007
@sc0ttkclark
Copy link
Member

Fixed via 74ba85d and 04bf8ac plus the work done in Pods 2.9.12 which addresses a more comprehensive upgrade process matching what the repair tool does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants