• Hi,
    I got a simple page, where I wanted to test this plugin. In Guternberg I selected the shortcode blog and inserted:
    [print-me title=”Print Form”/] (with and without the /)
    When I Updated the page, I got the Error:
    ?Updating failed. The response is not a valid JSON response.?

    How comes, and what do I need to do to get this to work?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor twinpictures

    (@twinpictures)

    This sounds like the shortcode is being entered using a WordPress block or page builder element correct? Also the example shortcode used above is not using proper quotes (") but rather ‘curly quotes’ (”). Please verify that either standard double quotes or single quotes are being used. This is a common problem when copy/pasting into visual editors.

    Please provide more details on exactly how and where the shortcode is being used, as well as an example of the shortcode using the inline code feature here on the forms.

    Thread Starter Frank Spade

    (@spade)

    Thanks for your reply!

    This is, how it looks behind the curtain:
    [/] Shortcode
    [print-me title=’Print Form’]

    Since I can’t save it, it makes no sense to provide an URL.

    Plugin Contributor twinpictures

    (@twinpictures)

    so again, the quotes being used in the example above are not standard single quote marks, but rather stylized single quote marks.

    Try using this instead:
    [print-me title='Print Form'/]

    Thread Starter Frank Spade

    (@spade)

    Thanks, but it makes no difference. I tried ” and ‘, but that makes no difference.

    They look styled, but they are not inserted styled.

    Plugin Contributor twinpictures

    (@twinpictures)

    Hmm. OK, we just released version 2.1.9 that should address this issue.
    Let us us know if the update works on your end as well.
    Thank you for the feedback.

    Thread Starter Frank Spade

    (@spade)

    Thanks for the update, but there is no difference in this regard.

    Plugin Contributor twinpictures

    (@twinpictures)

    Then there is some other factor at play here. Do you have a development or staging area where testing can be done or only the live site?
    Regardless, try using basic WordPress troubleshooting to see if there is another plugin/theme causing the issue. If you don’t know what is meant by basic WordPress troubleshooting, then you might want to google that first.

    Also, you might try providing the shortcode with a target attribute:

    [print-me target=".my_class" title='Print Form'/]
    Thread Starter Frank Spade

    (@spade)

    Okay, thanks.

    I now disabled all other plugins and had only Print-O-Matic enabled. This is what I got:

    Plugin Contributor twinpictures

    (@twinpictures)

    Frank, the WordPress forums are also using the block editor. If you wish to post code, there is a code block that will format the code

    Like so

    Please re-post your findings using the code block so they can be properly viewed.

    Thread Starter Frank Spade

    (@spade)

    I found this in ?Site Health?:

    REST API Endpoint: https://test.spade.de/wp-json/wp/v2/types/post?context=edit
    REST API Response: (404) Not Found

    Changing the ?Permalink Settings? from ?Post name? to ?Custom Structure? fixed it.

    Who knows how that works.
    BTW: The Permalink Settings switched back by itself, since I hadn’t changed /%postname%/

    Thread Starter Frank Spade

    (@spade)

    Thanks for this nice plugin and keep up the good work!

    Plugin Contributor twinpictures

    (@twinpictures)

    Alright, sounds like you have some strange behavior on your setup. Regardless, glad to hear you were able to find a work-around.
    Can we mark this issue resolved, or do you still need assistance?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Updating failed. The response is not a valid JSON response.’ is closed to new replies.