{"record":{"id":"8251bf5e1a8a826d","repo":"gatsbyjs/gatsby","slug":"failed-to-process-inline-html-links-in-node-ty","errorCode":null,"errorMessage":"Failed to process inline html links in ${node.__typename} ${node.id}","messagePattern":"Failed to process inline html links in (.+?) (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/process-node.js","lineNumber":881,"sourceCode":"        try {\n          // remove \\, \" and ' characters from match\n          const normalizedMatch = match\n            .replace(/['\"\\\\]/g, ``)\n            // ensure that query params are properly quoted\n            .replace(/\\?/, `\\\\?`)\n\n          const normalizedPath = path.replace(/\\\\/g, ``)\n\n          // replace normalized match with relative path\n          const thisMatchRegex = new RegExp(\n            normalizedMatch + `(?!/?wp-content|/?wp-admin|/?wp-includes)`,\n            `g`\n          )\n\n          nodeString = nodeString.replace(thisMatchRegex, normalizedPath)\n        } catch (e) {\n          console.error(e)\n          console.warn(\n            formatLogMessage(\n              `Failed to process inline html links in ${node.__typename} ${node.id}`\n            )\n          )\n        }\n      }\n    })\n  }\n\n  return nodeString\n}\n\n// replaces specific string or regex with a given string from the plugin options config\nexport const searchAndReplaceNodeStrings = ({\n  nodeString,\n  node,\n  pluginOptions,\n}) => {","sourceCodeStart":863,"sourceCodeEnd":899,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/process-node.js#L863-L899","documentation":"Warns that rewriting one inline HTML link inside a WordPress node's content failed. During processing, each matched <a href> string is normalized (quotes/backslashes stripped, query params escaped) and replaced with a RegExp; if constructing or applying that regex throws, the original link is left unreplaced and only a warning is logged — the node is still created.","triggerScenarios":"Thrown at packages/gatsby-source-wordpress/src/steps/source-nodes/create-nodes/process-node.js:881 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the node's HTML content for unusual or escaped link markup","Ensure searchAndReplace and URL replacements produce valid patterns","Report the node content if the failure looks like a plugin bug"],"exampleFix":null,"handlingStrategy":"try-catch","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"}