Title: Upgraded &#8211; WSOD &#8211; timeout errors (CSF?)
Last modified: August 30, 2016

---

# Upgraded – WSOD – timeout errors (CSF?)

 *  [codewordcreative](https://wordpress.org/support/users/lingocode/)
 * (@lingocode)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/upgraded-wsod-timeout-errors-csf/)
 * Hi,
 * Background:
    I’ve had a fair bit of trouble with slowloris attacks on my server
   so recently installed CSF firewall, which stopped the attacks. I *did* notice
   that the WP admin panel seemed to be running a bit slowly, but no other problems.
 * Main problem:
    I performed a manual upgrade of my new-ish site because it kept
   saying on the dashboard that it was up-to-date, but I knew it wasn’t. (I am now
   worrying the problem was actually due to port blocking on CSF – I have CT-Limit
   set to 60 and certain countries can only access port 80, and a few other things…)
   The first upgrade seemed to not work properly, because I kept getting errors 
   on the lines of “/htdocs/wp-includes/functions.php on line 1282” – relating to
   wp_cache. It turned out that file had not been replaced for some reason… so I
   renamed admin and includes and re-uploaded fresh copies. I also deactivated the
   plug-ins and switched the theme via phpmyadmin.
 * That allowed me to get to the dashboard, but I still have a white screen of death
   on the main site and a load of errors are now showing up in the admin panel (
   I guess also because I enabled them to show).
 * I tried to install a plugin to trace the problem, but got the following load 
   of errors:
 * > **Warning: stream_socket_client(): unable to connect to ssl://api.wordpress.
   > org:443 (Connection timed out) in /var/www/vhosts/(mysite)/htdocs/wp-includes/
   > class-http.php on line 1021**
   > Warning: An unexpected error occurred. Something may be wrong with WordPress.
   > org or this server’s configuration. If you continue to have problems, please
   > try the support forums. (WordPress could not establish a secure connection 
   > to WordPress.org. Please contact your server administrator.) in /var/www/vhosts/(
   > mysite)/htdocs/wp-includes/update.php on line 302
   > Warning: stream_socket_client(): unable to connect to tcp://api.wordpress.org:
   > 80 (Connection timed out) in /var/www/vhosts/(mysite)/htdocs/wp-includes/class-
   > http.php on line 1021
   > Warning: stream_socket_client(): unable to connect to ssl://api.wordpress.org:
   > 443 (Connection timed out) in /var/www/vhosts/(mysite)/htdocs/wp-includes/class-
   > http.php on line 1021
   > Warning: An unexpected error occurred. Something may be wrong with WordPress.
   > org or this server’s configuration. If you continue to have problems, please
   > try the support forums. (WordPress could not establish a secure connection 
   > to WordPress.org. Please contact your server administrator.) in /var/www/vhosts/(
   > mysite)/htdocs/wp-admin/includes/plugin-install.php on line 83
   > Warning: stream_socket_client(): unable to connect to tcp://api.wordpress.org:
   > 80 (Connection timed out) in /var/www/vhosts/(mysite)/htdocs/wp-includes/class-
   > http.php on line 1021
   > An unexpected error occurred. Something may be wrong with WordPress.org or 
   > this server’s configuration. If you continue to have problems, please try the
   > support forums.
 * I do have a recent backup of the database – but the probably not the entire file
   structure, although that’s less of an issue. But I’d still be left with the problem
   of not being able to upgrade. The wp-content part has not been messed with.
 * Any hints? Don’t like asking for help but I’m wondering if this has something
   to do with CSF configurations (perhaps I need to whitelist something?), and now
   also confused as to what I need to do to get the main site working again…
 * Thanks in advance…
 * Site is “rose newell dot co dot uk”, by the way.

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

 *  Thread Starter [codewordcreative](https://wordpress.org/support/users/lingocode/)
 * (@lingocode)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/upgraded-wsod-timeout-errors-csf/#post-6658024)
 * I also tried a fresh install with the same database – as modified by the installation.
   Is it possible it got messed up? Or CSF got in the way? I also tried deactivating
   CSF but if WP-related IPs got blocked…
 *  Thread Starter [codewordcreative](https://wordpress.org/support/users/lingocode/)
 * (@lingocode)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/upgraded-wsod-timeout-errors-csf/#post-6658052)
 * Okay – I worked out the problem – it’s CSF.
 * It’s not a huge problem for me to deactivate CSF for the few minutes when I’m
   making major changes to the site. It seems to have fallen out with WordPress.
   I could flush the IP tables or something but for now, I think temporary deactivation
   is the best solution.
 * Another weird symptom: I was able to click to change my theme, but it would not
   actually confirm. It also stopped FTP from working.
 * It will have to do with the port and country blocking setup I had on CSF. I had
   blocked ports for a number of countries because I thought me and my server won’t
   be there – but of course, sometimes there is a legitimate reason why a US-based
   server, for example, will be accessing something other than port 80. 🙂
 * I’d still like to hear about any better explanations and solutions people may
   have, though!

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

The topic ‘Upgraded – WSOD – timeout errors (CSF?)’ is closed to new replies.

## Tags

 * [CSF](https://wordpress.org/support/topic-tag/csf/)
 * [firewall](https://wordpress.org/support/topic-tag/firewall/)
 * [timeout](https://wordpress.org/support/topic-tag/timeout/)
 * [upgrade](https://wordpress.org/support/topic-tag/upgrade/)
 * [white screen](https://wordpress.org/support/topic-tag/white-screen/)
 * [white screen of death](https://wordpress.org/support/topic-tag/white-screen-of-death/)
 * [WSOD](https://wordpress.org/support/topic-tag/wsod/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [codewordcreative](https://wordpress.org/support/users/lingocode/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/upgraded-wsod-timeout-errors-csf/#post-6658052)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
