I had permalinks set to āPlainā in WordPress. When I changed permalinks to any other setting, e.g. āPost nameā then my Frontity site displayed fine.
wp-source doesnāt have handlers for query URLs like ?p=id or ?tag=slug
So wp-source needs permalinks right now but that can be solved in the future if users ask for it, although as far as I know nobody has requested that so far.
FetchError: invalid json response body at http://tarjomaanwp/wp-json/wp/v2/posts?_embed=true&page=1 reason: Unexpected token < in JSON at position 0
at eval (webpack-internal:///./node_modules/node-fetch/lib/index.mjs:276:32)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
at populate (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/populate.ts:9:12)
at Object.eval (webpack-internal:///./node_modules/@frontity/wp-source/src/libraries/handlers/postTypeArchive.ts:8:13)
at eval (webpack-internal:///./node_modules/@frontity/wp-source/src/actions.ts:18:101)
Unfortunately as this is happening in your local environment, we canāt reproduce the error to help you. In any case if you set-up an online environment we will be happy to help
Hi
I found the issue. It was because of the installed plugins. The plugin is MB Rest API.
the error was:
( ! ) Fatal error: Uncaught Error: Call to undefined function rwmb_get_registry() in C:\wamp64-new\www\tarjomaanwprepo\wp-content\plugins\mb-rest-api\class-mb-rest-api.php on line 94
( ! ) Error: Call to undefined function rwmb_get_registry() in C:\wamp64-new\www\tarjomaanwprepo\wp-content\plugins\mb-rest-api\class-mb-rest-api.php on line 94