{"record":{"id":"8c91f796f541fada","repo":"gatsbyjs/gatsby","slug":"the-url-set-in-plugin-options-has-a-different-pro","errorCode":null,"errorMessage":"\nThe Url set in plugin options has a different protocol than the Url saved in WordPress general settings.\n\noptions.url: ${pluginOptions.url}\nWordPress settings: ${wpUrl}\n\nThis may cause subtle bugs, or it may be fine.\nPlease consider addressing this issue by changing your WordPress settings or plugin options accordingly.\n","messagePattern":"\nThe Url set in plugin options has a different protocol than the Url saved in WordPress general settings\\.\n\noptions\\.url: (.+?)\nWordPress settings: (.+?)\n\nThis may cause subtle bugs, or it may be fine\\.\nPlease consider addressing this issue by changing your WordPress settings or plugin options accordingly\\.\n","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/steps/ingest-remote-schema/diff-schemas.js","lineNumber":56,"sourceCode":"      {\n        schemaMd5\n        # also get the wpUrl to save on # of requests\n        # @todo maybe there's a better place for this\n        generalSettings {\n          url\n        }\n      }\n    `,\n  })\n\n  const {\n    schemaMd5,\n    generalSettings: { url: wpUrl },\n  } = data\n\n  if (url.parse(wpUrl).protocol !== url.parse(pluginOptions.url).protocol) {\n    helpers.reporter.log(``)\n    helpers.reporter.warn(\n      formatLogMessage(`\n\nThe Url set in plugin options has a different protocol than the Url saved in WordPress general settings.\n\noptions.url: ${pluginOptions.url}\nWordPress settings: ${wpUrl}\n\nThis may cause subtle bugs, or it may be fine.\nPlease consider addressing this issue by changing your WordPress settings or plugin options accordingly.\n\n`)\n    )\n  }\n\n  let cachedSchemaMd5 = await helpers.cache.get(withPluginKey(MD5_CACHE_KEY))\n\n  let foundUsableHardCachedData\n","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-source-wordpress/src/steps/ingest-remote-schema/diff-schemas.js#L38-L74","documentation":"In checkIfSchemaHasChanged, the plugin compares the protocol of pluginOptions.url with the generalSettings.url returned by WordPress. When they differ (http vs https), the warning fires because requests may be redirected or served differently than the site's canonical URL, which can cause mixed-content or inconsistent data issues. Sourcing continues; this is a configuration-consistency advisory.","triggerScenarios":"Thrown at packages/gatsby-source-wordpress/src/steps/ingest-remote-schema/diff-schemas.js:56 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Update the WordPress Site URL (Settings > General or wp-cli option update home/siteurl) to use the same protocol as pluginOptions.url.","Or change the plugin options url in gatsby-config.js to match WordPress's protocol.","Prefer https on both sides; ensure TLS is correctly terminated before WordPress."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}