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

Migrate Packages component errors when attempting to import a pod that extends pages. #5476

Closed regnskygge closed 5 years ago

regnskygge commented 5 years ago

Issue Overview

Migrate Packages component gives the following error when attempting to import a pod that extends pages.

"Error: page is reserved for internal WordPress or Pods usage, please try a different name"

Expected Behavior

Previously, when I imported this pod extension to pages it would just do it and add my additional fields to the pages content type.

Current Behavior

Now it gives the error described above.

Steps to Reproduce (for bugs)

  1. Extend pages with Pods.
  2. Export the Pod using Migrate Packages to a json file.
  3. On a different site, attempt to use Migrate Packages to import that json file to extend pages.
  4. Sigh.

WordPress Environment

It will soon be 5.2.3. For this incident, 5.1.1.

``` Debug Information WordPress Version: 5.1.1 PHP Version: 7.0.7 MySQL Version: 5.5.5 Server Software: Apache/2.4.23 (Linux/SUSE) Your User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36 Session Save Path: /var/lib/php7 Session Save Path Exists: Yes Session Save Path Writeable: Yes Session Max Lifetime: 1440 Opcode Cache: Apc: No Memcached: No OPcache: No Redis: No Object Cache: APC: No APCu: No Memcache: No Memcached: No Redis: No WPDB Prefix: wp_80_ WP Multisite Mode: Yes WP Memory Limit: 64M Current Memory Usage: 64.667M Current Memory Usage (real): 16.000M Pods Network-Wide Activated: Yes Pods Install Location: ••••••••• Pods Tableless Mode Activated: No Pods Light Mode Activated: No Currently Active Theme: UILibraries Currently Active Plugins: Active Directory Integration: 1.1.8 Add Categories to Pages.: 1.1 Add URL Slugs as Body Classes: 1.3 Admin Columns Pro: 4.7.2 Admin Columns Pro - Pods: 1.4.4 Classic Editor: 1.5 Clear Floats Button: 1.1.5 Crop Thumbnails: 1.2.4 Enable Media Replace: 3.3.6 Feedzy RSS Feeds Lite: 3.3.10 Gravity Forms: 2.4.12 Gravity Forms Editor Capabilities: 1.0.1 Gravity Forms Quiz Add-On: 3.2 Gravity Forms Survey Add-On: 3.4 Gutenberg Ramp: 1.1.0 Improved Include Page: 1.2 Members: 2.2.0 Nested Pages: 3.1.4 OpenBook: 3.5.2 Outerbridge Nested Shortcodes: 1.3 Page Links To: 3.1.2 Plugin Activation Status: 1.0.2.1 Pods - Custom Content Types and Fields: 2.7.15 Radio Buttons for Taxonomies: 2.0.0 Shortcoder: 4.6 ShortPixel Image Optimizer: 4.14.5 Simple Lightbox: 2.7.1 TinyMCE Advanced: 5.1.0 WordPress MU Domain Mapping: 0.5.5.1 WP Super Cache: 1.7.0 Zotpress: 7.1.4 ```

Pods Package Export (helpful!)

{"meta":{"version":"2.6.7","build":1481739611},"pods":{"556":{"id":556,"name":"page","label":"Page","description":"","type":"post_type","storage":"meta","object":"page","alias":"","fields":{"content-layout":{"id":557,"name":"content-layout","label":"Layout","description":"Content layout. Defaults to Air. <a href=\"http:\/\/site.com\/fred\/barney\/\">See the other options here<\/a>.","help":"","class":"","type":"pick","weight":0,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","pick_taggable":"0","pick_limit":"0","pick_allow_html":"0","pick_user_role":[],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"unique":"0","pick_custom":"air | Air\nstone | Stone\nstone-flipped | Stone (flipped)\nstone-2 | Stone 2\nstone-2-flipped | Stone 2 (flipped)\ngrass | Grass\ngrass-flipped | Grass (flipped)\ngrass-2 | Grass 2\ngrass-2-flipped | Grass 2 (flipped)\ndirt | Dirt\ndirt-flipped | Dirt (flipped)\ncobblestone | Cobblestone\ncobblestone-2 | Cobblestone 2\ncobblestone-3 | Cobblestone 3\nbedrock | Bedrock\nclay | Clay","rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","pick_post_status":[],"pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"pods_package_version":{"id":708,"name":"pods_package_version","label":"Pods package version","description":"20161214_1219","help":"","class":"","type":"text","weight":1,"pick_object":"","pick_val":"","sister_id":"","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","pick_post_status":[],"text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","text_repeatable":"0"}},"show_in_menu":1,"pfat_enable":"0","pfat_append_single":"append","pfat_append_archive":"append","pfat_single":"Timeline event (standard)","rest_enable":"0","rest_base":"page","read_all":"0","write_all":"0","pfat_filter_single":"the_content","pfat_filter_archive":"the_content"}}}

Workaround or Alternate Solution Until Bug is Addressed

Related Issues and/or PRs

issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label Type: Bug to this issue, with a confidence of 0.87. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

regnskygge commented 5 years ago

Now running WP 5.2.3 and the issue persists.