question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gatsby-source-wordpress content images does not appear in develop

See original GitHub issue

Preliminary Checks

Description

in the example repo if you write /test in the browser the images don’t appear, but if you go to another page and go back, or go there through a link then they appear

Reproduction Link

https://github.com/alexadark/gatsby-wp-sandbox

Steps to Reproduce

1.clone the repo 2.yarn && gatsby develop 3.type the url /test manually …

Expected Result

Images on the page should appear

Actual Result

They don’t appear

Environment

System:
    OS: macOS 11.5.2
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.17.4 - ~/.nvm/versions/node/v14.17.4/bin/node
    Yarn: 1.22.11 - /usr/local/bin/yarn
    npm: 6.14.14 - ~/.nvm/versions/node/v14.17.4/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 95.0.4638.69
    Firefox: 94.0.1
    Safari: 14.1.2
  npmPackages:
    gatsby: ^4.1.5 => 4.1.5 
    gatsby-plugin-image: ^2.1.2 => 2.1.2 
    gatsby-plugin-manifest: ^4.1.3 => 4.1.3 
    gatsby-plugin-offline: ^5.1.3 => 5.1.3 
    gatsby-plugin-react-helmet: ^5.1.0 => 5.1.0 
    gatsby-plugin-sharp: ^4.1.3 => 4.1.3 
    gatsby-source-filesystem: ^4.1.2 => 4.1.2 
    gatsby-source-wordpress: ^6.1.2 => 6.1.2 
    gatsby-transformer-sharp: ^4.1.0 => 4.1.0 
  npmGlobalPackages:
    gatsby-cli: 4.0.0

Config Flags

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mrbjjacksoncommented, Dec 3, 2021

Just FYI I’ve narrowed the issue I was having down to me using Framer Motion to provide page transitions on my site. I’ve created a separate issue here: https://github.com/gatsbyjs/gatsby/issues/34187

Just to check - should this issue be fixed now? Because I’m seeing a very similar error on my site: When I load a page initially (or click refresh on a page) the images are loaded correctly, but if I navigate to a page containing images from another page, the images do not appear. This is only for the inline images in the Wordpress post content.

If this is a separate bug, I can open a new issue.

Any thoughts? Many thanks.

    "gatsby": "^4.2.0",
    "gatsby-plugin-image": "^2.2.0",
    "gatsby-plugin-sharp": "^4.2.0",
    "gatsby-source-wordpress": "^6.2.0",
    "gatsby-transformer-sharp": "^4.2.0",
2reactions
alexadarkcommented, Nov 16, 2021

Thanks, @TylerBarnes and @wardpeet all works fine now 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Post inline images not showing when using gatsby-source ...
Hi there,. I have a new Gatsby site which sources page content from a Wordpress site via gatsby-source-wordpress . It also uses Framer...
Read more >
Adding Images to a WordPress Site - Gatsby
First you'll need to install the gatsby-source-wordpress plugin that has images ready for you to pull into your site. Create a new Gatsby...
Read more >
Missing image prop after update to v4 (Netlify) - Stack Overflow
In case anyone needs an answer: The gatsby-source-graphql doesn't create any nodes (smallest ...
Read more >
gatsby-source-wordpress - npm
If you have custom post types or metadata that are not showing up within the schema, make sure that they are enabled within...
Read more >
Building a Photo Site With GatsbyJS and the WordPress.com ...
We're going to add in our Gatsby Source WordPress plugin to pull content from ... Here's a gist of what the entire gatsby-config.js...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found