Napisano: 21 Avg 2015 12:34
Pre nego sto krenes u bilo kakvo bavljenje programiranjem moras bar nesto znati taj engleski. Ili iskoristi taj google translate.
Neki compresion plugin ti je ostavio neko smece i zato dobijas problem. Problaj da flush-ujes linkove ili da direktno obrises taj plugin ako i dalje postoji u plugin folderu.
Ali pogledaj i ovo :
function compression_test() {
?>
<script type="text/javascript">
var testCompression = {
get : function(test) {
var x;
if ( window.XMLHttpRequest ) {
x = new XMLHttpRequest();
} else {
try{x=new ActiveXObject('Msxml2.XMLHTTP');}catch(e){try{x=new ActiveXObject('Microsoft.XMLHTTP');}catch(e){};}
}
if (x) {
x.onreadystatechange = function() {
var r, h;
if ( x.readyState == 4 ) {
r = x.responseText.substr(0, 18);
h = x.getResponseHeader('Content-Encoding');
testCompression.check(r, h, test);
}
};
x.open('GET', ajaxurl + '?action=wp-compression-test&test='+test+'&'+(new Date()).getTime(), true);
x.send('');
}
},
check : function(r, h, test) {
if ( ! r && ! test )
this.get(1);
if ( 1 == test ) {
if ( h && ( h.match(/deflate/i) || h.match(/gzip/i) ) )
this.get('no');
else
this.get(2);
return;
}
if ( 2 == test ) {
if ( '"wpCompressionTest' == r )
this.get('yes');
else
this.get('no');
}
}
};
testCompression.check();
</script>
<?php
}
Outputs JavaScript that tests if compression from PHP works as expected and sets an option with the result. Has no effect when the current user is not an administrator. To run the test again the option ‘can_compress_scripts’ has to be deleted.
To to je previ wp compression pa ti proveri jel si administrator ili nisi.
Dopuna: 21 Avg 2015 12:35
Jednostavno ako nisi admin onda ces i dobijati ovaj error u debug-u. Ali to je sakriveno od ostalih korisnika. Toliko sto se tice ove akcije
|