Wordpress update error

Hi, today i got an error when i went to update my wordpress on to the latest version. its a sub-directory multi-site setup by the way.

when i click on update, after some time i get the following error on browser is currently unable to handle this request.

and this is what i got from error log

user@mysite:~$ sudo tail -50 /var/log/nginx/error.log
2017/03/28 09:52:34 [error] 3559#3559: *2 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function get_user_locale() in /var/www/html/wp-admin/about.php:22
Stack trace:
#0 /var/www/html/wp-admin/network/about.php(13): require()
#1 {main}
thrown in /var/www/html/wp-admin/about.php on line 22" while reading response header from upstream, client:, server:, request: "GET /wp-admin/network/about.php?updated HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "", referrer: ""

but when i again access to wp-admin i found the wordpress is updated. but i am worried that i got a broken update and that might occur issues in future. anyone got any idea whats could be the reason?

this is what i got inside location php by the way

        location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
                include fastcgi_params;
                fastcgi_param REQUEST_METHOD $request_method;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_cache MYAPP;
                fastcgi_cache_valid 200 60m;
                fastcgi_cache_bypass $no_cache;
                fastcgi_no_cache $no_cache;

thanks in advance.


i just noticed another thing, the site, which is installed under sub-directory, fasctcgi is caching the wp-admin area for that site.

this is my cache ignore settings inside server block. do i have to add anything else for sub-directory multi-site?

        #Cache everything by default
       set $no_cache 0;

        #Don't cache POST requests
       if ($request_method = POST) {
               set $no_cache 1;

        #Don't cache if the URL contains a query string
       if ($query_string != "") {
               set $no_cache 1;

        #Don't cache the following URLs
       if ($request_uri ~* "/wp-admin/|/xmlrpc.php|wp-.*.php|/feed/|index.php|sitemap(_index)?.xml") {
               set $no_cache 1;

        #Don't cache if there is a cookie called PHPSESSID
       if ($http_cookie ~* "comment_author|wordpress_[a-f0-9]+|wp-postpass|wordpress_no_cache|wordpress_logged_in") {
               set $no_cache 1;

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


Please post the entire server block, top to bottom, so that we can take a look at the full configuration as well as order and location.

Seems like it actually updated, since the error comes from the about.php?updated page, which is the “welcome to the new version”. Something went wrong, but that could be several things involving cache, like you’ve already pointed out. Besides FastCGI cache, there’s also PHP opcache. And if you’re running memcached/Redis, then that might mess up something. EDIT: What version did you upgrade from and to?