Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: failed to open stream

Parašė adh· 2011 Sau. 22 16:01:44
#1

Naudoju WordPress TVS. Uzsidejau template'a ir man meta error'a:


PHP Error Message
 
 
Warning: fopen(/home/xxx/xxx/wp-content/themes/thewhatsup/cache/style_custom.css) [function.fopen]: failed to open stream: Permission denied in /home/xxx/xxx/wp-content/themes/thewhatsup/lib/class/Cache.php on line 45


Gal kas galit isverst i zmoniu kalba, nes nelabai gaudaus tame PHP. Failo vieta, kur randa klaida:


                 42: function stop($id) {
	     43:    $s = ob_get_clean();
	     44:    $filename = $this->dir.$id;
	     45:    $fp = fopen($filename, 'w+');
	     46:    if ($fp) {
	     47:                 write($fp, $s);
	     48:                 fclose($fp);
	     49:    }
	     50:    return $s;
	     51: }