Eu tive um problema por um tempo agora, onde a instalação de atualizações wordpress não mostra quaisquer mensagens ou progresso. As atualizações geralmente fazem instalar, mas é complicado saber quando as atualizações terminar. Existem alguns tópicos online com possíveis soluções, mas a maioria deles não têm sido úteis no meu caso.
Atualizar: See solution at the bottom of this post
When updating plugins the following progress messages should be displayed. In my case they are not showing up.
The update process is starting. This process may take awhile on some hosts, por favor seja paciente.
Enabling Maintenance mode…
Updating Plugin plugin-name
Downloading update from plugins.
Unpacking the update…
Instalar a versão mais recente.
Removing the old version of the plugin…
Plugin upgraded successfully.
Akismet updated successfully. Show / Hide Detalhes.
Disabling Maintenance mode. Todas as atualizações foram concluídas.
Ações: Return to Plugins page | Return to WordPress Updates.
This applies to all other updates too, dos quais há uma lista completa no wordpress local
Probably the most common cause is PHP zlib compression as described by kungfujosh on the wordpress forums. Sadly I already have zlib compression set to off so that isn’t my issue.
The issue must be a setting in wordpress, php-fpm, or nginx somewhere but I have been unable to locate it so far.
Atualizar: I have ruled out causes in php.ini and the php-fpm config file using a full test VM. There appear to be multiple nginx settings interacting that are causing the issue for me.
The first settings that seem to be relevant are the use of gzip and brotli being turned on. This seems to prevent the page loading progressively. It should be easy enough to turn these off for the updates page using a little custom function in wordpress that sets the content-encoding such that nginx wont compress the files
/******************************************\ * gzip Desativar e brotli para página de atualizações * \******************************************/ disable_gzip_brotli função() { cabeçalho('Content-Encoding: identidade'); } se ( basename($_SERVIDOR["SCRIPT_FILENAME"], '.Php') == "update-core" ) { add_action( 'iniciar', 'Disable_gzip_brotli' ); }
Unfortunately this on it’s own hasn’t proven the solution to my updating issues as something else causes the page to never display any output, progressive or otherwise. There is another nginx setting that is needed.
After much searching I finally identified the issue in my headers that are set.
Uma simples mudança de add_header X-Frame-Options DENY always;
para add_header X-Frame-Options SAMEORIGIN always;
“Hi James I realise it has been a long while, but I just checked this on windows 11 (build 23H2)…”