Title: fclose() expects parameter 1 to be resource, boolean given function.php
Last modified: September 29, 2019

---

# fclose() expects parameter 1 to be resource, boolean given function.php

 *  [volume369](https://wordpress.org/support/users/volume369/)
 * (@volume369)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fclose-expects-parameter-1-to-be-resource-boolean-given-function-php/)
 * Hi,
 * Yesterday, I tried to install SSL by cloudfare using wp-rocket during that i 
   installed a plugin but after that my wp-admin page showing error “too many redirects”
   so i’m not able to access wp-admin page. I removed that plugin from hosting but
   problem still there and error_log showing these 3 error:
 * fclose() expects parameter 1 to be resource, boolean given in /home/bu8t06hl9vpa/
   public_html/sandy/wp-includes/functions.php on line 4854
 *  fread() expects parameter 1 to be resource, boolean given in /home/bu8t06hl9vpa/
   public_html/sandy/wp-includes/functions.php on line 4851
 *  fopen(/home/bu8t06hl9vpa/public_html/sandy/wp-content/plugins/wordpress-seo/
   wp-seo.php): failed to open stream: No such file or directory in /home/bu8t06hl9vpa/
   public_html/sandy/wp-includes/functions.php on line 4848
 * can anyone help me to fix this
    Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffclose-expects-parameter-1-to-be-resource-boolean-given-function-php%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [6 years, 8 months ago](https://wordpress.org/support/topic/fclose-expects-parameter-1-to-be-resource-boolean-given-function-php/#post-11979607)
 * Try deleting Yoast seo (wp-content/plugins/wordpress-seo) via FTP or your hosting
   control panel’s file manager app, then reinstalling that plugin.

Viewing 1 replies (of 1 total)

The topic ‘fclose() expects parameter 1 to be resource, boolean given function.php’
is closed to new replies.

## Tags

 * [WordPress Error](https://wordpress.org/support/topic-tag/wordpress-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/fclose-expects-parameter-1-to-be-resource-boolean-given-function-php/#post-11979607)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
