PHP aktualizace

36 zhlédnutíRedakční systémy
0

Dobrý den,

poradíte mi prosím s administrací stránky www.126fan.cz? Po přihlášení mi píše toto:

You are running PHP version 5.6.40 that is not supported by Wordfence 8.0.0. Wordfence features will not be available until PHP has been upgraded. We recommend using PHP version 8.1, but Wordfence will run on PHP version 7.0.0 at a minimum.

Nejde mi přidat nový příspěvek a nevím, jak mám provést aktualizaci PHP.

Udělal jsem aktualizaci na php 8.1 a teď mi to píše (všude – na webu i na admin):

Deprecated: Return type of WP_Theme::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/web/virtuals/193688/virtual/www/domains/126fan.cz/wp-includes/class-wp-theme.php on line 505

Deprecated: Return type of WP_Theme::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/web/virtuals/193688/virtual/www/domains/126fan.cz/wp-includes/class-wp-theme.php on line 546

Deprecated: Return type of WP_Theme::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/web/virtuals/193688/virtual/www/domains/126fan.cz/wp-includes/class-wp-theme.php on line 484

Deprecated: Return type of WP_Theme::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /data/web/virtuals/193688/virtual/www/domains/126fan.cz/wp-includes/class-wp-theme.php on line 493

Warning: Private methods cannot be final as they are never overridden by other classes in /data/web/virtuals/193688/virtual/www/domains/126fan.cz/wp-includes/class-wp-session-tokens.php on line 69

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /data/web/virtuals/193688/virtual/www/domains/126fan.cz/wp-includes/script-loader.php on line 706

Děkuji za pomoc, MS

Role: Zákazník
MR394088 Odpověděl na otázku
0
5.93K Odpověď od WEDOS Internet, a.s. 0 Komentář

Dobrý den,

ano, eviduji, že verzi PHP se Vám již podařilo změnit z 5.6 na 8.1.

Dle současné chyby to ale vypadá, že problém není v nastavení PHP, ale v zastaralé verzi WordPressu, případně šablony nebo pluginů, které nejsou kompatibilní s PHP 8.1. Můžete zkusit kupříkladu přejit na PHP 7.4, to by byla střední cesta mezi funkčností a kompatibilitou pro tuto zastaralou verzi WordPressu.

Spíše by bylo ale vhodné celý WordPress přeinstalovat. FTP a Databázi si můžete zálohovat.

Může se také ještě jednat o chybu pluginů. Ty můžete zkusit dočasně deaktivovat, návod k tomu máme zde.

Role: Podpora
MR394088 Odpověděl na otázku
Prohlížíte 1 ze 1 odpovědí, klikněte zde pro zobrazení všech odpovědí.