I want to edit any Archive template existing or new with Gutenberg it shows nothing (with new) or the block error (editing existing template).
Using elimination I found it is JWT plugin that causes this. Something with REST Authentication, it seems.
I found a post where somebody also determined this and wrote he would investigate the reason, but no further post there.
Hi,
Thank you for contacting us and I'd be happy to assist.
I was able to reproduce this on my test website too. When the "JWT Auth" plugin is active, it is not possible to edit the blocks based, Toolset content templates, views, or WordPress archives.
Since these items use REST API endpoints and the "JWT Auth" plugin seems to block all but a few default endpoints, this conflict arises.
I've shared these findings with the concerned team for further review and will keep you updated through this ticket.
regards,
Waqar
Thank you, Waqar for the prompt response. I am really glad, you could reproduce this. 🙂
Since JWT is quite a useful simple authorisation solution which is required to work with REST it would be useful to have a solution.
Thank you for waiting.
I've received a reply from the concerned team and during further testing, we were not able to whitelist Toolset related REST API endpoints using the "jwt_auth_whitelist" filter from the plugin's documentation:
add_filter( 'jwt_auth_whitelist', function ( $endpoints ) {
return array(
'/wp-json/ToolsetBlocks/Rest/API/v1',
'/wp-json/toolset-views/v1',
'/wp-json/toolset-dynamic-sources/v1',
'/wp-json/otgs/installer/v1'
);
} );
We'll recommend getting in touch with the "JWT Auth" plugin's author to share some more insights on why this whitelisting is not working.
If the plugin author needs any other information from Toolset's side, please do let us know.