Title: Function error with old media
Last modified: August 22, 2016

---

# Function error with old media

 *  [candreu](https://wordpress.org/support/users/candreu/)
 * (@candreu)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/function-error-with-old-media/)
 * I noticed that several images don’t show its preview in the media list. And when
   I press “Edit”, I get this messatge at the right of the screen, under the button“
   Update”:
 * Warning: file_exists() [function.file-exists]: open_basedir restriction in effect.
   File(/home/distrito/public_html/wp-content/uploads/2008/04/cartell-indicador-
   df-urba-taronja.jpg) is not within the allowed path(s): (/var/www/vhosts/distritofallas.
   com/httpdocs:/tmp) in /var/www/vhosts/distritofallas.com/httpdocs/wp-admin/includes/
   media.php on line 2750
 * Is it any bug of WordPress 4.0?

The topic ‘Function error with old media’ is closed to new replies.

## Tags

 * [file_exists](https://wordpress.org/support/topic-tag/file_exists/)
 * [media](https://wordpress.org/support/topic-tag/media/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [candreu](https://wordpress.org/support/users/candreu/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/function-error-with-old-media/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
