Title: WordPress leaves image source attribute empty
Last modified: October 2, 2017

---

# WordPress leaves image source attribute empty

 *  [sseebart](https://wordpress.org/support/users/sseebart/)
 * (@sseebart)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wordpress-leaves-image-source-attribute-empty/)
 * I maintain a wordpress site for a fiber artist at susanelaine.com. It’s a basic
   install with a custom theme (Hero, by Theme Trust). The site sat with no modifications
   for about a year. During that time, it auto-updated regularly. It is running 
   4.8.2, and all the plugins are up to date.
 * When I came back to the site to add new content yesterday, it was as if my account
   had no privileges. I couldn’t create pages, upload images or modify users. With
   the help of my hosting company, the problem was traced to a database corruption,
   which was fixed.
 * Today, I could upload content, but when I upload images, they appear as blank
   tiles in the media library. When added to the page, WordPress leaves the image
   source attribute empty (src=””). Of course, the images do not display on the 
   page or the editor. I can find the url for the image in the database and paste
   it into the page, but it’s not a good workaround. (The theme, for one, still 
   doesn’t know where the images are.)
 * I’ve disabled plugins, cleared the cache, checked filesystem privileges, checked
   the upload file path, and had the hosting company look at the .htaccess file.
   None of these make any difference.
 * It sounds like there’s an uninitiated variable somewhere in the code, but I have
   no idea where to look. Scratching my head over this one.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-leaves-image-source-attribute-empty%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wordpress-leaves-image-source-attribute-empty/#post-9547419)
 * > The site sat with no modifications for about a year.
 * WordPress added src set 11/2015. Please discuss these dates with your client.
 *  Thread Starter [sseebart](https://wordpress.org/support/users/sseebart/)
 * (@sseebart)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wordpress-leaves-image-source-attribute-empty/#post-9548998)
 * What does src set do?
 *  Thread Starter [sseebart](https://wordpress.org/support/users/sseebart/)
 * (@sseebart)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wordpress-leaves-image-source-attribute-empty/#post-9549028)
 * Update on this: I updated the theme to the most recent version and tried uploading
   images with the default theme active. Both attempts failed to resolve the issue.
 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/wordpress-leaves-image-source-attribute-empty/#post-9550577)
 * You are using JetPack’s Photon Module. It handles the images. See:
 * [https://jetpack.com/support/photon/](https://jetpack.com/support/photon/)

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

The topic ‘WordPress leaves image source attribute empty’ is closed to new replies.

## Tags

 * [image attribute](https://wordpress.org/support/topic-tag/image-attribute/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/wordpress-leaves-image-source-attribute-empty/#post-9550577)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
