• Resolved SJNBham

    (@sjnbham)


    Hi – when we have WP REST API Controller enabled, our Envira Gallery plugin gives the following error:

    “Your site doesn’t include support for the “envira/envira-gallery” block….”

    Also, the Envira Gallery bock isn’t present in the page block inserter list of blocks.

    When we disable WP REST API Controller, the error goes away and the block is displayed in the blocks list.

    We’ve tried enabling all post types and taxonomies then clearing the REST API cache. It didn’t seem to have an effect.

    Environment:

    WP CORE 6.0.2
    WP REST API Controller 2.1.2
    Envira Gallery Lite 1.8.4.6 (we’re using the pro version, but we tested with the lite and it appears to have the same issue).

    Thanks for any help you can send our way.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter SJNBham

    (@sjnbham)

    Hi – checking back to see if there’s been any progress in resolving this plugin conflict. Thanks!

    Thread Starter SJNBham

    (@sjnbham)

    OK – I think we have this sorted now. This was a similar issue as the Media endpoint being created as “attachments” by default. When this plugin creates the default endpoint for the Envira Gallery “Gallery” post type, it names the endpoint “envira”. After inspecting what calls were being made while editing a page with an Envira Gallery gallery block inserted, we saw the following:

    https://mysite.com/wp-json/wp/v2/envira-gallery/1292781?_locale=user

    Once we renamed the endpoint from “envira” to “envira-gallery” it resolved this issue.

    It might be worth updating the support documentation or on-screen help for the plugin config pages to note the endpoints may not be accurate and to verify those as part of troubleshooting steps.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Envira Gallery plugin not working’ is closed to new replies.