Title: [Plugin: Relative Image URLs] Error when activating
Last modified: August 19, 2016

---

# [Plugin: Relative Image URLs] Error when activating

 *  [furio](https://wordpress.org/support/users/furio/)
 * (@furio)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-relative-image-urls-error-when-activating/)
 * This seems like a great idea for a plugin (something that has definitely been
   bugging me for a while). However, after installing the plugin and attempting 
   to activate it – I get the following error message:
 * > The plugin does not have a valid header.
 * I got my friend to try it as well and received the same error. Has anyone else
   had any problems activating?
 * [http://wordpress.org/extend/plugins/relative-image-urls/](http://wordpress.org/extend/plugins/relative-image-urls/)

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

 *  [masterqz](https://wordpress.org/support/users/masterqz/)
 * (@masterqz)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/plugin-relative-image-urls-error-when-activating/#post-1460271)
 * Yes, the same problem for me – the same error message.
    And it does not even 
   show up in the plugin list, so i could not deactivate it via backend.
 *  [waffen](https://wordpress.org/support/users/waffen/)
 * (@waffen)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-relative-image-urls-error-when-activating/#post-1460301)
 * I got it to work on localhost (WP 3.0.1) however on the live site it won’t do
   anything. No error message, it just won’t convert the urls. I don’t believe this,
   such a great plugin but apparently needs some rework.
 *  [roji](https://wordpress.org/support/users/roji/)
 * (@roji)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/plugin-relative-image-urls-error-when-activating/#post-1460324)
 * Just in case anyone still has this problem, the plugin appears to be simply badly
   packaged… The actual PHP file (relativeimage.php) is inside a subdirectory (relative-
   image-urls), whereas it should be at the root of the plugin directory. If you
   have access to the plugin files, simply move this file out of its subdirectory
   and the plugin will work fine.
 *  [cpier](https://wordpress.org/support/users/cpier/)
 * (@cpier)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-relative-image-urls-error-when-activating/#post-1460332)
 * Please fix. Thank you very much.
 *  [ciscfs](https://wordpress.org/support/users/ciscfs/)
 * (@ciscfs)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-relative-image-urls-error-when-activating/#post-1460341)
 * The fix above does make the plugin visible, but does not work very well for me.
   It won’t apply this edit to existing pages. When putting in a new image, it does
   work on the src= link, but it does not change href= links from the thumbnail 
   to the larger version of the file.
 * There’s another plugin, [http://wordpress.org/extend/plugins/relative-site-url-on-content-save/](http://wordpress.org/extend/plugins/relative-site-url-on-content-save/),
   that does the job better for me since it fixes both those problems. However it
   has the disadvantage that if you are editing the page in Visual mode, the preview
   does not show the image, since the editor does not understand the [url] shortcode.

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

The topic ‘[Plugin: Relative Image URLs] Error when activating’ is closed to new
replies.

 * 5 replies
 * 6 participants
 * Last reply from: [ciscfs](https://wordpress.org/support/users/ciscfs/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-relative-image-urls-error-when-activating/#post-1460341)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
