Support » Plugin: Pods - Custom Content Types and Fields » Pods shortcode error causes page to be uneditable

  • Resolved bryanhiggs

    (@bryanhiggs)


    I had entered a post in this forum (https://wordpress.org/support/topic/how-to-display-pods-items-dated-after-a-certain-date-time/), and it was answered quickly and authoritatively. I got it to work after one or two hiccups. This is about one of those hiccups.

    I did try to use the MySQL ‘<=’ operator, but as Jim True warned me, it caused problems The error indicated that it couldn’t find the pod, even though it was definitely there, so I suspect the ‘<=’ operator was confused with the HTML ‘<‘, and it messed up the resulting query. As suggested, I ended up using the MySQL BETWEEN operator.

    What I did find that, once I had an error-producing [pods] shortcode on my page, I could no longer edit the page to change the shortcode. It kept displaying the database error, and refused to let me into the editor. I ended up having to delete the page and recreate it (fortunately, the page only had a page title and the shortcode, so I didn’t lose much).

    I’m not sure whether this behavior is pods-specific, or a more general WordPress page behavior. Nor whether there is a better solution than deleting the page and recreating it.

    It was on WordPress 5, in the native (Gutenberg/Blocks) editor; I have no idea whether that’s relevant or not.

    Any wisdom you have to share would be most appreciated…

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    This sounds related to the new editor in WP 5.0+, a workaround would be to use the Classic Editor plugin to edit the page to resolve the issue. Then go back to edit the page in the normal editor once done. We will look into the issue and find a better way to deal with this problem that prevents editing in cases where the shortcode itself has an error.

    bryanhiggs

    (@bryanhiggs)

    Thanks for the very fast and useful response. I’ll bear that solution in mind next time.

    Plugin Author Jim True

    (@jimtrue)

    Created a Bug Report for this one:
    https://github.com/pods-framework/pods/issues/5279

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pods shortcode error causes page to be uneditable’ is closed to new replies.