DIY मीडिया होम लोगो

अपनी खुद की होम थिएटर और हाय-Fi सेटअप डिजाइन और बनाने के लिए परम साइट.

0Wordpress लोगोवर्डप्रेस अद्यतन प्रगति

I’ve had an issue for a while now where installing word­press updates does­n’t show any mes­sages or pro­gress. The updates gen­er­ally do install but it is tricky to know when the updates have fin­ished. There are a few threads online with pos­sible solu­tions but most of them haven’t been help­ful in my case.

अद्यतन: See solu­tion at the bot­tom of this post

When updat­ing plu­gins the fol­low­ing pro­gress mes­sages should be dis­played. In my case they are not show­ing up.

The update pro­cess is start­ing. This pro­cess may take awhile on some hosts, इसलिए कृपया धैर्य रखें.
Enabling Main­ten­ance mode…
Updat­ing Plu­gin plu­gin-name
Down­load­ing update from plugins.
Unpack­ing the update…
नवीनतम संस्करण स्थापित.
Remov­ing the old ver­sion of the plugin…
Plu­gin upgraded successfully.
Akismet updated suc­cess­fully. दिखाएँ / छुपाएँ विवरण.
Dis­abling Main­ten­ance mode. सभी अद्यतन पूरी हो चुकी हैं.
क्रिया: Return to Plu­gins page | Return to Word­Press Updates.

This applies to all oth­er updates too, जिनमें से पर एक पूरी सूची नहीं है वर्डप्रेस साइट

Prob­ably the most com­mon cause is PHP zlib com­pres­sion as described by kung­fu­josh on the word­press for­ums. Sadly I already have zlib com­pres­sion set to off so that isn’t my issue.

The issue must be a set­ting in word­press, php-एफ पी एम, or nginx some­where but I have been unable to loc­ate it so far.
अद्यतन: I have ruled out causes in php.ini and the php-fpm con­fig file using a full test VM. There appear to be mul­tiple nginx set­tings inter­act­ing that are caus­ing the issue for me.

The first set­tings that seem to be rel­ev­ant are the use of gzip and brotli being turned on. This seems to pre­vent the page load­ing pro­gress­ively. It should be easy enough to turn these off for the updates page using a little cus­tom func­tion in word­press that sets the con­tent-encod­ing such that nginx wont com­press the files

/******************************************\
* अक्षम gzip और अद्यतन पेज के लिए brotli *
\******************************************/
समारोह disable_gzip_brotli() {
हैडर('सामग्री-एन्कोडिंग: पहचान');
}

अगर ( basename($_SERVER["SCRIPT_FILENAME"], '.Php') == "अद्यतन कोर" ) {
ADD_ACTION( 'इस में', 'Disable_gzip_brotli' );
}

Unfor­tu­nately this on it’s own has­n’t proven the solu­tion to my updat­ing issues as some­thing else causes the page to nev­er dis­play any out­put, pro­gress­ive or oth­er­wise. There is anoth­er nginx set­ting that is needed.

After much search­ing I finally iden­ti­fied the issue in my head­ers that are set.

से एक साधारण परिवर्तन add_header X-Frame-Options DENY always; तक add_header X-Frame-Options SAMEORIGIN always;

अपना खुद का कुछ विचारों को समझे? खुद टिप्पणी से नीचे लिप्त! आप सदस्यता के लिए चाहते हैं, तो ऊपर दाईं ओर मेनू पर लिंक का उपयोग करें सदस्यता लें. आप नीचे दिए गए सामाजिक लिंक का उपयोग करके अपने दोस्तों के साथ इस साझा कर सकते हैं. चियर्स.

उत्तर छोड़ दें