Title: PHP Warning:  fclose():
Last modified: August 20, 2016

---

# PHP Warning: fclose():

 *  [dbg1965](https://wordpress.org/support/users/dbg1965/)
 * (@dbg1965)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-warning-fclose/)
 * I can`t install a theme and i keep finding this error in the php log:
 * PHP Warning: fclose(): supplied argument is not a valid stream resource in /home/
   sites/………../public_html/wp-includes/functions.php on line 4290
 * fread(): supplied argument is not a valid stream resource in /home/sites/……………/
   public_html/wp-includes/functions.php on line 4287
 * PLEASE help….

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

 *  [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * (@crondeau)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-warning-fclose/#post-2155149)
 * Can you install any other theme? Perhaps that theme is doing something weird.
 * Otherwise, you could also try re-installing WordPress.
 * You might also want to check this [thread](http://wordpress.org/support/topic/help-installed-theme-getting-3-error-messages-about-fopen-fread-fclose?replies=6)
   and see if it helps.
 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-warning-fclose/#post-2155150)
 * What Theme are you attempting to install?
 * I would be extremely wary of any Theme using `fclose()`, and if you’re on a shared-
   hosting environment, your PHP setup may be configured not even to allow `fopen()`
   and `fclose()`.
 *  [Chip Bennett](https://wordpress.org/support/users/chipbennett/)
 * (@chipbennett)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-warning-fclose/#post-2155151)
 * [@christine](https://wordpress.org/support/users/christine/):
 * Note that I recommend _against_ the recommendation in that linked thread. Enabling`
   allow_url_fopen` and `allow_url_include` introduce potential security exploit
   vectors.
 *  [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * (@crondeau)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/php-warning-fclose/#post-2155175)
 * Thanks for the clarification Chip. I should have pointed out that in that thread,
   the mention of having the zip file was the culprit. I agree with you about editing
   the php.ini

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

The topic ‘PHP Warning: fclose():’ is closed to new replies.

 * 4 replies
 * 3 participants
 * Last reply from: [Christine Rondeau](https://wordpress.org/support/users/crondeau/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/php-warning-fclose/#post-2155175)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
