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

Unchecking Publicly Queryable but checking "Rewrite" results in no permalink #5422

Open jas8522 opened 5 years ago

jas8522 commented 5 years ago

Describe the bug When the Advanced Option of "Rewrite" is checked for a pod, the option "Publicly Queryable" should be auto-checked and disabled as you can't have rewrites without being publicly queryable.

Or at bare minimum there should be a notice near the "Rewrite" checkbox indicating that unexpected behaviour will occur when "Publicly Queryable" is not enabled.

To Reproduce Steps to reproduce the behavior:

  1. Create a CPT pod
  2. Under the "Advanced Options" tab, uncheck the "Publicly Queryable" option, and check the "Rewrite" option
  3. Attempt to view any single post of that post type and it will redirect you to the homepage.

Expected behavior I expected that at step 3, I'd be seeing the post rather than being redirected to the homepage.

Pods Version

2.7.14

WordPress Environment

` ### wp-core ### version: 5.2.2 site_language: en_US user_language: en_US permalink: /%postname%/ https_status: true user_registration: 0 default_comment_status: closed multisite: false user_count: 17 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /var/www/vhosts/snipped_domain.com/devsite.snipped_domain.com wordpress_size: 42.35 MB (44410651 bytes) uploads_path: /var/www/vhosts/snipped_domain.com/devsite.snipped_domain.com/wp-content/uploads uploads_size: 434.95 MB (456077241 bytes) themes_path: /var/www/vhosts/snipped_domain.com/devsite.snipped_domain.com/wp-content/themes themes_size: 7.26 MB (7614856 bytes) plugins_path: /var/www/vhosts/snipped_domain.com/devsite.snipped_domain.com/wp-content/plugins plugins_size: 269.25 MB (282334076 bytes) database_size: 32.03 MB (33581153 bytes) total_size: 785.84 MB (824017977 bytes) ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: Beaver Builder Child Theme version: 1.0 author: The Beaver Builder Team author_website: http://www.fastlinemedia.com parent_theme: Beaver Builder Theme theme_features: fl-theme-builder-headers, fl-theme-builder-footers, fl-theme-builder-parts, automatic-feed-links, title-tag, post-thumbnails, woocommerce, align-wide, wp-block-styles, menus, wc-product-gallery-zoom, wc-product-gallery-lightbox, wc-product-gallery-slider, widgets, editor-style theme_path: /var/www/vhosts/snipped_domain.com/devsite.snipped_domain.com/wp-content/themes/bb-theme ### wp-themes (3) ### Astra: version: 1.8.7, author: Brainstorm Force Beaver Builder Theme: version: 1.7.3, author: The Beaver Builder Team Oyster Fest: version: 1.0.0, author: Brainstorm Force ### wp-mu-plugins (1) ### ManageWP - Worker Loader: author: ManageWP, version: (undefined) ### wp-plugins-active (36) ### Advanced Ads: version: 1.14.1, author: Thomas Maier Assistant: version: 0.2.2, author: The Beaver Builder Team Beaver Builder Plugin (Pro Version): version: 2.2.3.3, author: The Beaver Builder Team Beaver Themer: version: 1.2.3.4, author: The Beaver Builder Team CF Page or Post Duplicator: version: 1.1, author: Carlos Fazenda Convert Pro: version: 1.3.7, author: Brainstorm Force Convert Pro - Addon: version: 1.2.1, author: Brainstorm Force Duplicate Menu: version: 0.2.1, author: Jonathan Christopher Easy Registration Forms: version: 1.7.9, author: EasyRegistrationForms Import / Export Customizer Settings: version: 1.0.0, author: Brainstorm Force Insert Headers and Footers: version: 1.4.4, author: WPBeginner Instagram Feed Pro Developer: version: 4.1.5, author: Smash Balloon LayerSlider WP: version: 6.8.4, author: Kreatura Media Limit Login Attempts: version: 1.7.1, author: Johan Eenfeldt Loginizer: version: 1.4.2, author: Raj Kothari Mailchimp for WordPress: version: 4.5.2, author: ibericode ManageWP - Worker: version: 4.8.1, author: GoDaddy Microthemer: version: 5.8.0.3, author: Themeover Pods - Custom Content Types and Fields: version: 2.7.14, author: Pods Framework Team Pods Beaver Themer Add-On: version: 1.3.2, author: Quasel, Pods Framework Team Popup Builder: version: 3.42, author: Sygnoos PowerPack for Beaver Builder: version: 2.7.1, author: IdeaBox Creations SeedProd Coming Soon Page Pro: version: 5.12.1, author: SeedProd Shortcake (Shortcode UI): version: 0.7.4, author: Fusion Engineering and community ShortPixel Image Optimizer: version: 4.14.2, author: ShortPixel SSL Insecure Content Fixer: version: 2.7.2, author: WebAware Sticky Menu (or Anything!) on Scroll: version: 2.1.1, author: Mark Senff Ultimate Addons for Beaver Builder: version: 1.18.2, author: Brainstorm Force VFB Pro: version: 3.4, author: Matthew Muro VFB Pro - Form Designer: version: 2.0.5, author: Matthew Muro Wallace Inline: version: 2.1.0, author: Bradley Kirby WordPress Importer: version: 0.6.4, author: wordpressdotorg WP Google Maps: version: 7.11.37, author: WP Google Maps WP Logo Showcase Responsive Slider: version: 2.2.3, author: WP OnlineSupport WP Portfolio: version: 1.7.2, author: Brainstorm Force WPS Hide Login: version: 1.5.2.2, author: WPServeur, NicolasKulka, tabrisrp ### wp-plugins-inactive (22) ### ARVE Advanced Responsive Video Embedder: version: 8.10.4, author: Nicolas Jonas Astra Pro: version: 1.8.7, author: Brainstorm Force Clicky for WordPress: version: 1.8, author: Team Yoast Client Portal by Laura Elizabeth: version: 4.7.0, author: Laura Elizabeth ContentStudio: version: 1.1.0, author: ContentStudio Enable Media Replace: version: 3.3.1, author: ShortPixel Envato WordPress Toolkit: version: 1.7.2, author: Envato Jetpack by WordPress.com: version: 7.5.2, author: Automattic Media Cleaner: version: 5.4.0, author: Jordy Meow PDF Image Generator: version: 1.5.6, author: Mizuho Ogino Photo Gallery by Supsystic: version: 1.13.7, author: supsystic.com Qode Instagram Widget: version: 1.1, author: Qode Themes Qode Twitter Feed: version: 1.0, author: Qode Themes Slider Revolution: version: 5.1, author: ThemePunch Social Warfare: version: 3.6.1, author: Warfare Plugins Story Chief: version: 1.0.10, author: Story Chief Sucuri Security - Auditing, Malware Scanner and Hardening: version: 1.8.21, author: Sucuri Inc. Visual Form Builder: version: 3.0.1, author: Matthew Muro Wordfence Security: version: 7.3.4, author: Wordfence WPBakery Visual Composer: version: 5.0.1, author: Michael M - WPBakery.com WP Rocket: version: 3.3.5.2, author: WP Media Yoast SEO: version: 11.6, author: Team Yoast ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1656 imagemagick_version: ImageMagick 6.7.8-9 2019-02-01 Q16 http://www.imagemagick.org imagick_limits: imagick::RESOURCETYPE_AREA: 8 GB imagick::RESOURCETYPE_DISK: -1 imagick::RESOURCETYPE_FILE: 6144 imagick::RESOURCETYPE_MAP: 8 GB imagick::RESOURCETYPE_MEMORY: 4 GB imagick::RESOURCETYPE_THREAD: not available gd_version: bundled (2.1.0 compatible) ghostscript_version: 9.07 ### wp-server ### server_architecture: Linux 3.10.0-957.12.2.vz7.86.2 x86_64 httpd_software: Apache php_version: 7.3.7 64bit php_sapi: fpm-fcgi max_input_variables: 1000 time_limit: 30 memory_limit: 256M max_input_time: 60 upload_max_size: 128M php_post_max_size: 128M curl_version: 7.29.0 NSS/3.36 suhosin: false imagick_availability: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.5.60-MariaDB client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /var/www/vhosts/snipped_domain.com/devsite.snipped_domain.com/wp-content WP_PLUGIN_DIR: /var/www/vhosts/snipped_domain.com/devsite.snipped_domain.com/wp-content/plugins 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 ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable ### pods ### pods-server-software: Apache pods-user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15 pods-session-save-path: /var/lib/php/session 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: No pods-opcode-cache-redis: No pods-object-cache-apc: No pods-object-cache-apcu: No pods-object-cache-memcache: No pods-object-cache-memcached: No pods-object-cache-redis: Yes pods-memory-current-usage: 74.527M pods-memory-current-usage-real: 32.000M pods-network-wide: No pods-install-location: /var/www/vhosts/snipped_domain.com/devsite.snipped_domain.com/wp-content/plugins/pods/ pods-developer: No pods-tableless-mode: No pods-light-mode: No pods-strict: No pods-allow-deprecated: Yes pods-api-cache: Yes `

Possible Workaround It's easy enough to fix -- just uncheck "Publicly Queryable" but it's not obvious that this is the solution unless you've been through it before. This is probably because there's no tooltip describing how "publicly queryable" works and especially not how it ties into permalinks in any way.

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.89. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

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