Title: media.php line 267
Last modified: October 14, 2020

---

# media.php line 267

 *  Resolved [Lars Nygaard](https://wordpress.org/support/users/larsnygaard/)
 * (@larsnygaard)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/)
 * Good evening!
 * My site got the white screen. I can’t log in. Using FileZilla I entered the debug
   true mode. Now I see what is wrong, but I don’t know how to fix it. I guess it
   has something to do with image size. This has not happened during maintenance.
   I have downloaded the media.php file.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmedia-php-line-267%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13534370)
 * It may be that the file is corrupt. Please replace all WP core files: [https://wordpress.org/support/article/updating-wordpress/#step-1-replace-wordpress-files](https://wordpress.org/support/article/updating-wordpress/#step-1-replace-wordpress-files)
 *  Thread Starter [Lars Nygaard](https://wordpress.org/support/users/larsnygaard/)
 * (@larsnygaard)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13534728)
 * That you, I will try to do this. How do I deactivate all plugins when I have 
   white screen and can not log in?
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13534825)
 * You can skip that step for now.
 *  Thread Starter [Lars Nygaard](https://wordpress.org/support/users/larsnygaard/)
 * (@larsnygaard)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13534991)
 * Ok. I had the site up for a moment. Now it is white screen and this: [php][/php]
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13535143)
 * I see
 *     ```
       Warning: require(/home/1/l/larsnygaard/www/scooterlars/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php): failed to open stream: No such file or directory in /home/1/l/larsnygaard/www/scooterlars/wp-settings.php on line 256
   
       Fatal error: require(): Failed opening required '/home/1/l/larsnygaard/www/scooterlars/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php' (include_path='.:/usr/share/php') in /home/1/l/larsnygaard/www/scooterlars/wp-settings.php on line 256
       ```
   
 * Are you sure you uploaded all the files?
 *  Thread Starter [Lars Nygaard](https://wordpress.org/support/users/larsnygaard/)
 * (@larsnygaard)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13535148)
 * I’ll try to do the procedure again.
 *  Thread Starter [Lars Nygaard](https://wordpress.org/support/users/larsnygaard/)
 * (@larsnygaard)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13535160)
 * If I stop the procedure after point 5 (uploading wp-content and wp-admin folders)
   it seems to work.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13535164)
 * The only thing you had to do was the one step of replacing the files. 🙂 Glad
   it’s working now.
 *  Thread Starter [Lars Nygaard](https://wordpress.org/support/users/larsnygaard/)
 * (@larsnygaard)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13535175)
 * Thank you for your help!
 *  Thread Starter [Lars Nygaard](https://wordpress.org/support/users/larsnygaard/)
 * (@larsnygaard)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13535176)
 * Resolved

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

The topic ‘media.php line 267’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 2 participants
 * Last reply from: [Lars Nygaard](https://wordpress.org/support/users/larsnygaard/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/media-php-line-267/#post-13535176)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
