Question

Error establishing database connection (WordPress) after updating php

Posted May 13, 2021 106 views
NginxMySQLPHPWordPress

I update php from 7.0 to 7.4, after the update every hour or so, wp sites go down due to “Error establishing database connection”, and connect back after doing a power cycle. It was working fine before the update. Any suggestions on what to look at to try to figure out this issue. The server is running NGINX. Also I thought it was the theme giving me a memory crash, like you can see in the logs. but I change the theme as a troubleshoot step, but still getting the error. I try to autocorrect wp-db, and it says there is no error.

See logs

2021/05/12 21:22:17 [error] 2052#2052: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/essential-grid/includes/item-skin.class.php on line 1145PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2715PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2719PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3615" while reading response header from upstream, client: 162.158.62.161, server: aftercoffeedesigns.com, request: "GET /wp-admin/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/12 21:22:51 [error] 2052#2052: *11 FastCGI sent in stderr: "PHP message: PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, function 'autoptimize_uninstall' not found or invalid function name in /home/aftercoffeedesigns/public_html/wp-includes/class-wp-hook.php on line 292" while reading response header from upstream, client: 162.158.62.161, server: aftercoffeedesigns.com, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com", referrer: "https://aftercoffeedesigns.com/wp-admin/plugins.php"
2021/05/12 21:47:00 [error] 12441#12441: *23 FastCGI sent in stderr: "PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/essential-grid/includes/item-skin.class.php on line 1145PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2715PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2719PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3615" while reading response header from upstream, client: 162.158.62.193, server: aftercoffeedesigns.com, request: "GET /wp-admin/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/12 21:52:35 [error] 2038#2038: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/essential-grid/includes/item-skin.class.php on line 1145PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2715PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2719PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3615" while reading response header from upstream, client: 162.158.63.86, server: aftercoffeedesigns.com, request: "GET /wp-admin/themes.php?page=EasyWeb-page HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com", referrer: "https://aftercoffeedesigns.com/wp-admin/"
2021/05/12 22:44:07 [error] 2037#2037: *98 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 2324640 bytes) in /home/aftercoffeedesigns/public_html/wp-includes/wp-db.php on line 2056" while reading response header from upstream, client: 162.158.63.26, server: aftercoffeedesigns.com, request: "GET /our-work/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/12 23:23:13 [error] 2049#2049: *9 FastCGI sent in stderr: "PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/essential-grid/includes/item-skin.class.php on line 1145PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2715PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2719PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3615" while reading response header from upstream, client: 108.162.219.212, server: aftercoffeedesigns.com, request: "GET /robots.txt HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 00:24:35 [error] 2050#2050: *81 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 2324640 bytes) in /home/aftercoffeedesigns/public_html/wp-includes/wp-db.php on line 2056" while reading response header from upstream, client: 173.245.52.195, server: aftercoffeedesigns.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 00:24:37 [error] 2050#2050: *83 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 2324640 bytes) in /home/aftercoffeedesigns/public_html/wp-includes/wp-db.php on line 2056" while reading response header from upstream, client: 173.245.52.195, server: aftercoffeedesigns.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 00:24:38 [error] 2050#2050: *85 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 2324640 bytes) in /home/aftercoffeedesigns/public_html/wp-includes/wp-db.php on line 2056" while reading response header from upstream, client: 108.162.219.213, server: aftercoffeedesigns.com, request: "GET /robots.txt HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 00:24:39 [error] 2050#2050: *87 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 2324640 bytes) in /home/aftercoffeedesigns/public_html/wp-includes/wp-db.php on line 2056" while reading response header from upstream, client: 173.245.52.139, server: aftercoffeedesigns.com, request: "GET /services/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 00:24:49 [error] 2050#2050: *89 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 2324640 bytes) in /home/aftercoffeedesigns/public_html/wp-includes/wp-db.php on line 2056" while reading response header from upstream, client: 108.162.219.212, server: aftercoffeedesigns.com, request: "GET /robots.txt HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 00:24:50 [error] 2050#2050: *91 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 458752 bytes) in /home/aftercoffeedesigns/public_html/wp-content/themes/easyweb/css/color-skins.css on line 1PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 798720 bytes) in Unknown on line 0" while reading response header from upstream, client: 162.158.62.171, server: aftercoffeedesigns.com, request: "GET /wp-content/themes/easyweb/css/master-min.php?ver=2.2.8 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 00:24:53 [error] 2050#2050: *93 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 2324640 bytes) in /home/aftercoffeedesigns/public_html/wp-includes/wp-db.php on line 2056" while reading response header from upstream, client: 108.162.219.212, server: aftercoffeedesigns.com, request: "GET /robots.txt HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 00:24:54 [error] 2050#2050: *95 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 2324640 bytes) in /home/aftercoffeedesigns/public_html/wp-includes/wp-db.php on line 2056" while reading response header from upstream, client: 173.245.52.139, server: aftercoffeedesigns.com, request: "GET /brand-development/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 00:25:42 [error] 2033#2033: *3 FastCGI sent in stderr: "PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/essential-grid/includes/item-skin.class.php on line 1145PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2715PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2719PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3615" while reading response header from upstream, client: 108.162.219.228, server: aftercoffeedesigns.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 02:11:43 [error] 2033#2033: *195 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 1257472 bytes) in /home/aftercoffeedesigns/public_html/wp-content/themes/easyweb/css/master-min.php on line 31" while reading response header from upstream, client: 162.158.63.86, server: aftercoffeedesigns.com, request: "GET /wp-content/themes/easyweb/css/master-min.php?ver=2.2.8 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com", referrer: "https://aftercoffeedesigns.com/"
2021/05/13 02:11:43 [error] 2033#2033: *195 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0" while reading upstream, client: 162.158.63.86, server: aftercoffeedesigns.com, request: "GET /wp-content/themes/easyweb/css/master-min.php?ver=2.2.8 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com", referrer: "https://aftercoffeedesigns.com/"
2021/05/13 02:11:47 [error] 2032#2032: *198 open() "/home/aftercoffeedesigns/public_html/favicon.ico" failed (2: No such file or directory), client: 108.162.219.208, server: aftercoffeedesigns.com, request: "GET /favicon.ico HTTP/1.1", host: "aftercoffeedesigns.com", referrer: "https://aftercoffeedesigns.com/"
2021/05/13 02:16:49 [error] 2018#2018: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/essential-grid/includes/item-skin.class.php on line 1145PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2715PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2719PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3615" while reading response header from upstream, client: 162.158.62.77, server: aftercoffeedesigns.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 02:16:49 [error] 2018#2018: *3 FastCGI sent in stderr: "PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/essential-grid/includes/item-skin.class.php on line 1145PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2715PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2719PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3615" while reading response header from upstream, client: 162.158.62.77, server: aftercoffeedesigns.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 02:17:55 [error] 2017#2017: *149 FastCGI sent in stderr: "PHP message: PHP Warning:  mkdir(): No such file or directory in /home/aftercoffeedesigns/public_html/wp-content/mu-plugins/endurance-page-cache.php on line 1372" while reading response header from upstream, client: 162.158.62.77, server: aftercoffeedesigns.com, request: "GET /wp-admin/themes.php?activated=true HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com", referrer: "https://aftercoffeedesigns.com/wp-admin/themes.php?theme=twentytwentyone"
2021/05/13 03:05:22 [error] 2017#2017: *208 open() "/home/aftercoffeedesigns/public_html/favicon.ico" failed (2: No such file or directory), client: 108.162.219.208, server: aftercoffeedesigns.com, request: "GET /favicon.ico HTTP/1.1", host: "aftercoffeedesigns.com", referrer: "http://aftercoffeedesigns.com/favicon.ico"
2021/05/13 03:36:14 [error] 2018#2018: *242 FastCGI sent in stderr: "PHP message: PHP Warning:  preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /home/aftercoffeedesigns/public_html/wp-includes/load.php on line 43" while reading response header from upstream, client: 173.245.52.139, server: aftercoffeedesigns.com, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 03:36:15 [error] 2018#2018: *244 FastCGI sent in stderr: "PHP message: PHP Warning:  preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /home/aftercoffeedesigns/public_html/wp-includes/load.php on line 43" while reading response header from upstream, client: 162.158.63.236, server: aftercoffeedesigns.com, request: "POST /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 04:07:21 [error] 2049#2049: *7 FastCGI sent in stderr: "PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/essential-grid/includes/item-skin.class.php on line 1145PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2715PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2719PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3615" while reading response header from upstream, client: 108.162.219.228, server: aftercoffeedesigns.com, request: "POST /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 05:42:57 [error] 2050#2050: *165 FastCGI sent in stderr: "PHP message: PHP Warning:  preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /home/aftercoffeedesigns/public_html/wp-includes/load.php on line 43" while reading response header from upstream, client: 173.245.52.195, server: aftercoffeedesigns.com, request: "GET /wp-content/plugins/wpdiscuz/readme.txt HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 05:46:54 [error] 2050#2050: *175 FastCGI sent in stderr: "PHP message: PHP Warning:  preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /home/aftercoffeedesigns/public_html/wp-includes/load.php on line 43" while reading response header from upstream, client: 162.158.63.176, server: aftercoffeedesigns.com, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 05:58:43 [error] 2049#2049: *217 FastCGI sent in stderr: "PHP message: PHP Warning:  preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /home/aftercoffeedesigns/public_html/wp-includes/load.php on line 43" while reading response header from upstream, client: 34.227.221.32, server: aftercoffeedesigns.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "68.183.111.94"
2021/05/13 06:21:59 [error] 2050#2050: *260 FastCGI sent in stderr: "PHP message: PHP Warning:  preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /home/aftercoffeedesigns/public_html/wp-includes/load.php on line 43" while reading response header from upstream, client: 162.158.63.26, server: aftercoffeedesigns.com, request: "POST /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 06:34:23 [error] 2050#2050: *282 FastCGI sent in stderr: "PHP message: PHP Warning:  preg_match(): Allocation of JIT memory failed, PCRE JIT will be disabled. This is likely caused by security restrictions. Either grant PHP permission to allocate executable memory, or set pcre.jit=0 in /home/aftercoffeedesigns/public_html/wp-includes/load.php on line 43" while reading response header from upstream, client: 162.158.63.80, server: aftercoffeedesigns.com, request: "POST /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 09:11:27 [error] 2049#2049: *531 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 458752 bytes) in /home/aftercoffeedesigns/public_html/wp-content/themes/easyweb/css/color-skins.css on line 1PHP message: PHP Fatal error:  Out of memory (allocated 2097152) (tried to allocate 798720 bytes) in Unknown on line 0" while reading response header from upstream, client: 173.245.52.83, server: aftercoffeedesigns.com, request: "GET /wp-content/themes/easyweb/css/master-min.php?ver=2.2.8 HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 11:01:49 [error] 2050#2050: *761 open() "/home/aftercoffeedesigns/public_html/favicon.ico" failed (2: No such file or directory), client: 108.162.219.208, server: aftercoffeedesigns.com, request: "GET /favicon.ico HTTP/1.1", host: "aftercoffeedesigns.com", referrer: "https://aftercoffeedesigns.com/"
2021/05/13 11:06:10 [error] 2037#2037: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/essential-grid/includes/item-skin.class.php on line 1145PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2715PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2719PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3615" while reading response header from upstream, client: 162.158.62.171, server: aftercoffeedesigns.com, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"
2021/05/13 11:27:47 [error] 2037#2037: *52 open() "/home/aftercoffeedesigns/public_html/favicon.ico" failed (2: No such file or directory), client: 108.162.219.208, server: aftercoffeedesigns.com, request: "GET /favicon.ico HTTP/1.1", host: "aftercoffeedesigns.com", referrer: "http://aftercoffeedesigns.com/favicon.ico"
2021/05/13 12:16:06 [error] 2037#2037: *154 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 108.162.219.192, server: aftercoffeedesigns.com, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "aftercoffeedesigns.com"
2021/05/13 12:16:43 [error] 2036#2036: *156 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 173.245.52.197, server: aftercoffeedesigns.com, request: "POST /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "aftercoffeedesigns.com"
2021/05/13 12:17:43 [error] 2037#2037: *158 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 173.245.52.197, server: aftercoffeedesigns.com, request: "POST /xmlrpc.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "aftercoffeedesigns.com"
2021/05/13 12:29:12 [error] 2037#2037: *177 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 108.162.219.192, server: aftercoffeedesigns.com, request: "GET /wp-login.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock", host: "aftercoffeedesigns.com"
2021/05/13 13:04:17 [error] 2037#2037: *248 open() "/home/aftercoffeedesigns/public_html/favicon.ico" failed (2: No such file or directory), client: 108.162.219.208, server: aftercoffeedesigns.com, request: "GET /favicon.ico HTTP/1.1", host: "aftercoffeedesigns.com", referrer: "https://aftercoffeedesigns.com/"
2021/05/13 13:05:57 [error] 2048#2048: *1 FastCGI sent in stderr: "PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/essential-grid/includes/item-skin.class.php on line 1145PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2715PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/operations.class.php on line 2719PHP message: PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /home/aftercoffeedesigns/public_html/wp-content/plugins/revslider/includes/output.class.php on line 3615" while reading response header from upstream, client: 162.158.63.81, server: aftercoffeedesigns.com, request: "POST /wp-login.php HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.4-fpm.sock:", host: "aftercoffeedesigns.com"

edited by MattIPv4

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi there @ae3erdion,

It looks like that your memory limit is too low after the update. It is probably because the new PHP version uses a new php.ini file.

You can follow the steps on how to change your PHP settings here:

https://www.digitalocean.com/community/tutorials/how-to-change-your-php-settings-on-ubuntu-14-04

I would recommend setting it to 128MB and if it does not work, then go to 256MB.

Let me know how it goes!
Regards,
Bobby

by Jon Schwenn
PHP is a server side scripting language used by many popular CMS and blog platforms like WordPress and Drupal. It is also part of the popular LAMP and LEMP stacks. Updating the PHP configuration settings is a common task when setting up a PHP-based website. This guide will show how to view the current PHP configuration settings of your web server and how to make updates to the PHP settings.