Title: Structured Data Image URL Error
Last modified: October 6, 2017

---

# Structured Data Image URL Error

 *  Resolved [mwaxman1](https://wordpress.org/support/users/mwaxman1/)
 * (@mwaxman1)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/structured-data-image-url-error/)
 * On all of my recipes, the Structured Data Test is showing a single error, that
   the Image URL is invalid:
 * /wp-content/uploads/2017/09/IMG_20170921_195335_270-700×525.jpg (The value provided
   for image must be a valid URL.)
 * [https://search.google.com/structured-data/testing-tool/u/0/#url=http%3A%2F%2Fwww.theketowife.com%2Frecipes%2Fketo-pizza%2F](https://search.google.com/structured-data/testing-tool/u/0/#url=http%3A%2F%2Fwww.theketowife.com%2Frecipes%2Fketo-pizza%2F)
 * Any idea what’s causing this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstructured-data-image-url-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Saqib Ameen](https://wordpress.org/support/users/saqibameen/)
 * (@saqibameen)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/structured-data-image-url-error/#post-9562783)
 * The error is because of the relative URL of the image
    `/wp-content/uploads/2017/
   09/IMG_20170921_195335_270-700×525.jpg`
 * I added `www.theketowife.com` in the start of this link and it worked fine. You
   need to replace it with absolute URL.
 *  Thread Starter [mwaxman1](https://wordpress.org/support/users/mwaxman1/)
 * (@mwaxman1)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/structured-data-image-url-error/#post-9562908)
 * How do I do that?
 * Before switching over to Cooked, I had my recipes built manually as Posts. I 
   had a separate structured plugin that was referencing relative image urls and
   it was working fine, so I’m not sure what’s different.
 *  Thread Starter [mwaxman1](https://wordpress.org/support/users/mwaxman1/)
 * (@mwaxman1)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/structured-data-image-url-error/#post-9563010)
 * So for now, I edited the following line in wp-config:
 * define(‘WP_CONTENT_URL’, ‘wp-content’);
    to define(‘WP_CONTENT_URL’, ‘[http://www.theketowife.com/wp-content&#8217](http://www.theketowife.com/wp-content&#8217););
 * That appears to have fixed the issue for now, but I don’t like having it set 
   as absolute. Shouldn’t Cooked be building full URLs for it’s image links in structured
   data, based on the relative URL?
    -  This reply was modified 8 years, 8 months ago by [mwaxman1](https://wordpress.org/support/users/mwaxman1/).
 *  [Saqib Ameen](https://wordpress.org/support/users/saqibameen/)
 * (@saqibameen)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/structured-data-image-url-error/#post-9563060)
 * [@mwaxman1](https://wordpress.org/support/users/mwaxman1/) I am glad you fixed
   it yourself.
 * I’m not sure about whether or not Cooked should be building complete URLs. Probably
   some expert or Cooked Developer might be able to help you.
 * I am a beginner and learning myself. I could see the issue, and I tried to help
   you identify it. I hope it helped you. And I would love to follow this discussion
   to learn about it.
 *  Plugin Contributor [Boxy Studio](https://wordpress.org/support/users/boxystudio/)
 * (@boxystudio)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/structured-data-image-url-error/#post-9563890)
 * [@mwaxman1](https://wordpress.org/support/users/mwaxman1/):
 * It might be something else that is messing with the image URL. If I run a test
   on a recipe from my demo site I’m not seeing this issue:
 * [https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fdemos.boxystudio.com%2Fcooked%2Frecipes%2Fgrilled-tuna-salade-nicoise%2F](https://search.google.com/structured-data/testing-tool#url=https%3A%2F%2Fdemos.boxystudio.com%2Fcooked%2Frecipes%2Fgrilled-tuna-salade-nicoise%2F)
 * Try this:
    1. Remove your custom code to make it break again
    2. If it’s still not working, try to disable all other plugins you have installed,
       besides Cooked of course. Test it again to see if the URL is fixed.
    3. If not, switch the theme to something default like Twenty Seventeen. Test it
       again to see if the URL is fixed.
    4. If any of the above two things DOES fix it, then we know that this is a theme
       or plugin conflict. You will need to re-enable them one at a time (theme & plugins)
       and run your test to see which one messes up the URL.
 * Let me know if you end up narrowing this down and which item was causing the 
   issue.
    -  This reply was modified 8 years, 8 months ago by [Boxy Studio](https://wordpress.org/support/users/boxystudio/).

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Structured Data Image URL Error’ is closed to new replies.

 * ![](https://ps.w.org/cooked/assets/icon-256x256.png?rev=2005204)
 * [Cooked - Recipe Management](https://wordpress.org/plugins/cooked/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cooked/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cooked/)
 * [Active Topics](https://wordpress.org/support/plugin/cooked/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cooked/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cooked/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Boxy Studio](https://wordpress.org/support/users/boxystudio/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/structured-data-image-url-error/#post-9563890)
 * Status: resolved