{"action":"closed","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6670","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6670/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6670/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/6670/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/6670","id":343560811,"node_id":"MDU6SXNzdWUzNDM1NjA4MTE=","number":6670,"title":"can't get wordpress plugin to work","user":{"login":"hadifarnoud","id":589808,"node_id":"MDQ6VXNlcjU4OTgwOA==","avatar_url":"https://avatars2.githubusercontent.com/u/589808?v=4","gravatar_id":"","url":"https://api.github.com/users/hadifarnoud","html_url":"https://github.com/hadifarnoud","followers_url":"https://api.github.com/users/hadifarnoud/followers","following_url":"https://api.github.com/users/hadifarnoud/following{/other_user}","gists_url":"https://api.github.com/users/hadifarnoud/gists{/gist_id}","starred_url":"https://api.github.com/users/hadifarnoud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadifarnoud/subscriptions","organizations_url":"https://api.github.com/users/hadifarnoud/orgs","repos_url":"https://api.github.com/users/hadifarnoud/repos","events_url":"https://api.github.com/users/hadifarnoud/events{/privacy}","received_events_url":"https://api.github.com/users/hadifarnoud/received_events","type":"User","site_admin":false},"labels":[{"id":214544677,"node_id":"MDU6TGFiZWwyMTQ1NDQ2Nzc=","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/type:%20question%20or%20discussion","name":"type: question or discussion","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-07-23T09:43:30Z","updated_at":"2018-10-04T10:14:27Z","closed_at":"2018-10-04T10:14:27Z","author_association":"NONE","body":"## Summary\r\nCannot get wordpress plugin to work. I get errors about author, I deleted author section from graphql. then I got error about ACF, deleted that too. anything I do, it seems like there is something else broken. I feel like there is more serious issues. I followed official documentation.\r\n\r\nps: I'm using [gatsby-starter-wordpress](https://github.com/ericwindmill/gatsby-starter-wordpress) but don't believe that is the issue\r\n\r\n## Relevant information\r\nWordpress v4.8.7\r\n\r\n`$ gatsby develop`\r\n```\r\nsuccess delete html and css files from previous builds — 0.014 s\r\nsuccess open and validate gatsby-config — 0.013 s\r\nsuccess copy gatsby files — 0.035 s\r\nsuccess onPreBootstrap — 0.400 s\r\n⠁\r\n=START PLUGIN=====================================\r\n\r\nSite URL: http://blog.kamva.ir\r\nSite hosted on Wordpress.com: false\r\nUsing ACF: false\r\nUsing Auth: undefined undefined\r\nVerbose output: true\r\n\r\nMama Route URL: http://blog.kamva.ir/wp-json\r\n\r\n⠁ source and transform nodesRoute discovered : /\r\nInvalid route.\r\nRoute discovered : /oembed/1.0\r\nInvalid route.\r\nRoute discovered : /oembed/1.0/embed\r\nInvalid route.\r\nRoute discovered : /oembed/1.0/proxy\r\nInvalid route.\r\nRoute discovered : /akismet/v1\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /akismet/v1/key\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /akismet/v1/settings\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /akismet/v1/stats\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /akismet/v1/stats/(?P<interval>[\\w+])\r\nInvalid route.\r\nRoute discovered : /yoast/v1\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /yoast/v1/configurator\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /yoast/v1/reindex_posts\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /yoast/v1/ryte\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /yoast/v1/indexables/(?P<object_type>.*)/(?P<object_id>\\d+)\r\nInvalid route.\r\nRoute discovered : /yoast/v1/statistics\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2\r\nInvalid route.\r\nRoute discovered : /wp/v2/posts\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/posts/(?P<id>[\\d]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/posts/(?P<parent>[\\d]+)/revisions\r\nInvalid route.\r\nRoute discovered : /wp/v2/posts/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/pages\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/pages/(?P<id>[\\d]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/pages/(?P<parent>[\\d]+)/revisions\r\nInvalid route.\r\nRoute discovered : /wp/v2/pages/(?P<parent>[\\d]+)/revisions/(?P<id>[\\d]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/media\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/media/(?P<id>[\\d]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/types\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/types/(?P<type>[\\w-]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/statuses\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/statuses/(?P<status>[\\w-]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/taxonomies\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/taxonomies/(?P<taxonomy>[\\w-]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/categories\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/categories/(?P<id>[\\d]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/tags\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/tags/(?P<id>[\\d]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/users\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/users/(?P<id>[\\d]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/users/me\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/comments\r\nExcluded route from excludedRoutes pattern.\r\nRoute discovered : /wp/v2/comments/(?P<id>[\\d]+)\r\nInvalid route.\r\nRoute discovered : /wp/v2/settings\r\nExcluded route from excludedRoutes pattern.\r\n\r\nFetching the JSON data from 0 valid API Routes...\r\n\r\n=END PLUGIN=====================================: 1545.867ms\r\nwarning The gatsby-source-wordpress plugin has generated no Gatsby nodes. Do you need it?\r\nsuccess source and transform nodes — 1.576 s\r\nsuccess building schema — 0.240 s\r\nsuccess createLayouts — 0.051 s\r\n⠁ [ { GraphQLError: Cannot query field \"allWordpressPage\" on type \"RootQueryType\". Did you mean \"allSitePage\"?\r\n    at Object.Field (/Users/hadifarnoud/playground/new-landing-shop/node_modules/graphql/validation/rules/FieldsOnCorrectType.js:65:31)\r\n    at Object.enter (/Users/hadifarnoud/playground/new-landing-shop/node_modules/graphql/language/visitor.js:295:29)\r\n    at Object.enter (/Users/hadifarnoud/playground/new-landing-shop/node_modules/graphql/language/visitor.js:337:25)\r\n    at visit (/Users/hadifarnoud/playground/new-landing-shop/node_modules/graphql/language/visitor.js:227:26)\r\n    at visitUsingRules (/Users/hadifarnoud/playground/new-landing-shop/node_modules/graphql/validation/validate.js:75:22)\r\n    at validate (/Users/hadifarnoud/playground/new-landing-shop/node_modules/graphql/validation/validate.js:60:10)\r\n    at /Users/hadifarnoud/playground/new-landing-shop/node_modules/graphql/graphql.js:69:51\r\n    at initializePromise (/Users/hadifarnoud/playground/new-landing-shop/node_modules/sw-precache/node_modules/es6-promise/dist/es6-promise.js:458:5)\r\n    at new Promise (/Users/hadifarnoud/playground/new-landing-shop/node_modules/sw-precache/node_modules/es6-promise/dist/es6-promise.js:874:33)\r\n    at graphqlImpl (/Users/hadifarnoud/playground/new-landing-shop/node_modules/graphql/graphql.js:59:10)\r\n    at graphql (/Users/hadifarnoud/playground/new-landing-shop/node_modules/graphql/graphql.js:48:227)\r\n    at graphqlRunner (/Users/hadifarnoud/playground/new-landing-shop/node_modules/gatsby/dist/bootstrap/index.js:368:22)\r\n    at Promise (/Users/hadifarnoud/playground/new-landing-shop/gatsby-node.js:14:5)\r\n    at Promise._execute (/Users/hadifarnoud/playground/new-landing-shop/node_modules/bluebird/js/release/debuggability.js:303:9)\r\n    at Promise._resolveFromExecutor (/Users/hadifarnoud/playground/new-landing-shop/node_modules/bluebird/js/release/promise.js:483:18)\r\n    at new Promise (/Users/hadifarnoud/playground/new-landing-shop/node_modules/bluebird/js/release/promise.js:79:10)\r\n    at Object.exports.createPages (/Users/hadifarnoud/playground/new-landing-shop/gatsby-node.js:12:10)\r\n    at runAPI (/Users/hadifarnoud/playground/new-landing-shop/node_modules/gatsby/dist/utils/api-runner-node.js:110:36)\r\n    at /Users/hadifarnoud/playground/new-landing-shop/node_modules/gatsby/dist/utils/api-runner-node.js:187:33\r\n    at /Users/hadifarnoud/playground/new-landing-shop/node_modules/async/internal/map.js:27:9\r\n    at replenish (/Users/hadifarnoud/playground/new-landing-shop/node_modules/async/internal/eachOfLimit.js:66:17)\r\n    at iterateeCallback (/Users/hadifarnoud/playground/new-landing-shop/node_modules/async/internal/eachOfLimit.js:50:17)\r\n    message: 'Cannot query field \"allWordpressPage\" on type \"RootQueryType\". Did you mean \"allSitePage\"?',\r\n    locations: [ [Object] ],\r\n    path: undefined } ]\r\nsuccess createPages — 0.020 s\r\nsuccess createPagesStatefully — 0.038 s\r\nsuccess onPreExtractQueries — 0.001 s\r\nsuccess update schema — 0.112 s\r\nGraphQL Error Unknown field `allWordpressPost` on type `RootQueryType`\r\n\r\n  file: /Users/hadifarnoud/playground/new-landing-shop/src/pages/index.jsx\r\n\r\n   1 |\r\n   2 |   query IndexQuery {\r\n>  3 |     allWordpressPost {\r\n     |     ^\r\n   4 |       edges {\r\n   5 |         node {\r\n   6 |           featured_media {\r\n   7 |             source_url\r\n   8 |           }\r\n   9 |           author {\r\n  10 |             name\r\n  11 |             avatar_urls {\r\n  12 |               wordpress_24\r\n  13 |               wordpress_48\r\n\r\nsuccess extract queries from components — 0.137 s\r\nsuccess run graphql queries — 0.110 s\r\nsuccess write out page data — 0.010 s\r\nsuccess write out redirect data — 0.001 s\r\nsuccess onPostBootstrap — 0.001 s\r\n\r\ninfo bootstrap finished - 6.802 s\r\n\r\n DONE  Compiled successfully in 4303ms                                                                                                              2:05:35 PM\r\n\r\n\r\nYou can now view gatsby-starter-advanced in the browser.\r\n\r\n  http://localhost:8000/\r\n\r\nView GraphiQL, an in-browser IDE, to explore your site's data and schema\r\n\r\n  http://localhost:8000/___graphql\r\n\r\nNote that the development build is not optimized.\r\nTo create a production build, use gatsby build\r\n```\r\n### Environment\r\n\r\n```\r\n  System:\r\n    OS: macOS High Sierra 10.13.5\r\n    CPU: x64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz\r\n    Shell: 5.3 - /bin/zsh\r\n  Binaries:\r\n    Node: 9.11.1 - /usr/local/bin/node\r\n    Yarn: 1.5.1 - /usr/local/bin/yarn\r\n    npm: 5.6.0 - /usr/local/bin/npm\r\n  Browsers:\r\n    Chrome: 67.0.3396.99\r\n    Safari: 11.1.1\r\n  npmPackages:\r\n    gatsby: ^1.9.149 => 1.9.277 \r\n    gatsby-link: ^1.6.32 => 1.6.46 \r\n    gatsby-plugin-catch-links: ^1.0.14 => 1.0.24 \r\n    gatsby-plugin-feed: ^1.3.15 => 1.3.25 \r\n    gatsby-plugin-google-analytics: ^1.0.14 => 1.0.31 \r\n    gatsby-plugin-manifest: ^1.0.12 => 1.0.27 \r\n    gatsby-plugin-nprogress: ^1.0.9 => 1.0.14 \r\n    gatsby-plugin-offline: ^1.0.12 => 1.0.18 \r\n    gatsby-plugin-react-helmet: ^2.0.3 => 2.0.11 \r\n    gatsby-plugin-sharp: ^1.6.24 => 1.6.48 \r\n    gatsby-plugin-sitemap: ^1.2.9 => 1.2.25 \r\n    gatsby-plugin-styled-components: ^2.0.4 => 2.0.11 \r\n    gatsby-plugin-twitter: ^1.0.14 => 1.0.20 \r\n    gatsby-remark-autolink-headers: ^1.4.11 => 1.4.19 \r\n    gatsby-remark-copy-linked-files: ^1.5.25 => 1.5.37 \r\n    gatsby-remark-images: ^1.5.36 => 1.5.67 \r\n    gatsby-remark-prismjs: ^1.2.11 => 1.2.24 \r\n    gatsby-remark-responsive-iframe: ^1.4.16 => 1.4.20 \r\n    gatsby-source-filesystem: ^1.5.11 => 1.5.39 \r\n    gatsby-source-wordpress: ^2.0.42 => 2.0.93 \r\n    gatsby-transformer-remark: ^1.7.26 => 1.7.44 \r\n  npmGlobalPackages:\r\n    gatsby-cli: 1.1.58\r\n\r\n```\r\n\r\n### File contents (if changed)\r\n\r\n`gatsby-config.js`: \r\n```\r\nconst config = require('./data/SiteConfig')\r\n\r\nconst pathPrefix = config.pathPrefix === '/' ? '' : config.pathPrefix\r\n\r\nmodule.exports = {\r\n  pathPrefix: config.pathPrefix,\r\n  siteMetadata: {\r\n    siteUrl: config.siteUrl + pathPrefix,\r\n    rssMetadata: {\r\n      site_url: config.siteUrl + pathPrefix,\r\n      feed_url: config.siteUrl + pathPrefix + config.siteRss,\r\n      title: config.siteTitle,\r\n      description: config.siteDescription,\r\n      image_url: `${config.siteUrl + pathPrefix}/logos/logo-512.png`,\r\n      author: config.userName,\r\n      copyright: config.copyright\r\n    }\r\n  },\r\n  plugins: [\r\n    'gatsby-plugin-styled-components',\r\n    'gatsby-plugin-react-helmet',\r\n    {\r\n      resolve: 'gatsby-source-wordpress',\r\n      options: {\r\n        // The base url to your WP site.\r\n        baseUrl: 'blog.kamva.ir',\r\n        // WP.com sites set to true, WP.org set to false\r\n        hostingWPCOM: false,\r\n        // The protocol. This can be http or https.\r\n        protocol: 'http',\r\n        // Use 'Advanced Custom Fields' Wordpress plugin\r\n        useACF: false,\r\n        auth: {},\r\n        // Set to true to debug endpoints on 'gatsby build'\r\n        verboseOutput: true,\r\n        perPage: 10,\r\n        concurrentRequests: 10,\r\n        excludedRoutes: [\"/*/*/comments\", \"/yoast/**\", \"/akismet/**\", \"/oembed/**\", \"/wp/v2/**\"],\r\n      }\r\n    },\r\n    {\r\n      resolve: 'gatsby-plugin-nprogress',\r\n      options: {\r\n        color: config.themeColor\r\n      }\r\n    },\r\n    'gatsby-plugin-sharp',\r\n    'gatsby-plugin-catch-links',\r\n    'gatsby-plugin-twitter',\r\n    'gatsby-plugin-sitemap',\r\n    {\r\n      resolve: 'gatsby-plugin-manifest',\r\n      options: {\r\n        name: config.siteTitle,\r\n        short_name: config.siteTitle,\r\n        description: config.siteDescription,\r\n        start_url: config.pathPrefix,\r\n        background_color: config.backgroundColor,\r\n        theme_color: config.themeColor,\r\n        display: 'minimal-ui',\r\n        icons: [\r\n          {\r\n            src: '/logos/logo-192x192.png',\r\n            sizes: '192x192',\r\n            type: 'image/png'\r\n          },\r\n          {\r\n            src: '/logos/logo-512x512.png',\r\n            sizes: '512x512',\r\n            type: 'image/png'\r\n          }\r\n        ]\r\n      }\r\n    },\r\n    'gatsby-plugin-offline'\r\n  ]\r\n}\r\n\r\n```\r\n"}}
{"actor":{"display_login":"chmac"}}