Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Naprawa Serializer.php


flatron12
Przejdź do rozwiązania Rozwiązane przez Macsch15,

Rekomendowane odpowiedzi

Witam

 

Od jakiegoś czasu pojawiają się u mnie na forum problemy z dodaniem tekstu html

Po wysłaniu posta wyświetla mi takie błędy

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Warning: Base directory HTML_PURIFIER_PATHcache/tmp does not exist, please create or change using %Cache.SerializerPath in /home/puacz/domains/gocs.pl/public_html/forum/ips_kernel/HTMLPurifier/HTMLPurifier/DefinitionCache/Serializer.php on line 133

Orientuje się ktoś co można z tym zrobić ?

Odnośnik do komentarza
Udostępnij na innych stronach


E_USER_WARNING);


private function _prepareDir($config) {

$directory = $this->generateDirectoryPath($config);

$chmod = $config->get('Cache.SerializerPermissions');

if (!$chmod) {

$chmod = 0755; // invalid config or simpletest

}

if (!is_dir($directory)) {

$base = $this->generateBaseDirectoryPath($config);

if (!is_dir($base)) {

trigger_error('Base directory '.$base.' does not exist,

please create or change using %Cache.SerializerPath',

E_USER_WARNING);

return false;

} elseif (!$this->_testPermissions($base, $chmod)) {

return false;

}

$old = umask(0000);

mkdir($directory, $chmod);

umask($old);

} elseif (!$this->_testPermissions($directory, $chmod)) {

return false;

}

return true;

}

Odnośnik do komentarza
Udostępnij na innych stronach

  • Rozwiązanie

Masz w ogóle tą stałą HTML_PURIFIER_PATH zdefiniowaną?

 

W pliku ipsRegistry.php PO:

		define( 'IPS_CACHE_PATH', ( ! empty( ipsRegistry::$settings['ipb_cache_path'] ) ) ? ipsRegistry::$settings['ipb_cache_path'] : DOC_IPS_ROOT_PATH );

Powinieneś mieć:

		if( !defined( 'HTML_PURIFIER_PATH' ) )
		{
			define( 'HTML_PURIFIER_PATH', IPS_CACHE_PATH );
		}
  • Lubię to 1
Odnośnik do komentarza
Udostępnij na innych stronach

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.