ubuntuusers.de

WordPress Trouble nach Ubuntu Update

Status: Gelöst | Ubuntu-Version: Server 22.04 (Jammy Jellyfish)
Antworten |

gnude

Avatar von gnude

Anmeldungsdatum:
11. Juli 2014

Beiträge: 843

Hallo zu meinen squirrelmail Fehlern kommt dazu das ein WP Blog nicht so möchte wie er soll. Interessanterweise habe ich zwei Blogs auf dem Server, und der händisch installierte zeiget zunächst ne Fehlermeldung im Blog, jetzt ist er völlig weggeschossen. In den Log Dateien steht folgendes..... vielleicht hat jemand eine Idee ob es an PHP liegt, die Version nicht ok ist oder kann die Meldungen besser deuten....

offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /
var/www/html/photoblog/wp-includes/class-wp-theme.php on line 533
[17-Nov-2022 18:55:09 UTC] PHP Deprecated:  Return type of WP_Theme::offsetUnset($offset) should either be compatible with ArrayAccess::offset
Unset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/photo
blog/wp-includes/class-wp-theme.php on line 542
[17-Nov-2022 18:55:09 UTC] PHP Deprecated:  Return type of WP_REST_Request::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 /var/www/h
tml/photoblog/wp-includes/rest-api/class-wp-rest-request.php on line 920
[17-Nov-2022 18:55:09 UTC] PHP Deprecated:  Return type of WP_REST_Request::offsetGet($offset) should either be compatible with ArrayAccess::o
ffsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/p
hotoblog/wp-includes/rest-api/class-wp-rest-request.php on line 940
[17-Nov-2022 18:55:09 UTC] PHP Deprecated:  Return type of WP_REST_Request::offs
etSet($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 /var/www/html/photoblog/wp-includes/rest-api/class-wp-rest-request.php on line 952
[17-Nov-2022 18:55:09 UTC] PHP Deprecated:  Return type of WP_REST_Request::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 /var/www/html/photoblog/wp-includes/rest-api/class-wp-rest-request.php on line 963
[17-Nov-2022 18:55:09 UTC] PHP Fatal error:  Uncaught ArgumentCountError: array_merge() does not accept unknown named parameters in /var/www/html/photoblog/wp-includes/widgets.php:1261
Stack trace:
#0 /var/www/html/photoblog/wp-includes/widgets.php(1261): array_merge()
#1 /var/www/html/photoblog/wp-includes/widgets.php(1216): retrieve_widgets()
#2 /var/www/html/photoblog/wp-includes/class-wp-hook.php(289): _wp_sidebars_changed()
#3 /var/www/html/photoblog/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#4 /var/www/html/photoblog/wp-includes/plugin.php(478): WP_Hook->do_action()
#5 /var/www/html/photoblog/wp-includes/theme.php(2974): do_action()
#6 /var/www/html/photoblog/wp-includes/class-wp-hook.php(287): check_theme_switched()
#7 /var/www/html/photoblog/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
#8 /var/www/html/photoblog/wp-includes/plugin.php(478): WP_Hook->do_action()
#9 /var/www/html/photoblog/wp-settings.php(540): do_action()
#10 /var/www/html/photoblog/wp-config.php(128): require_once('...')
#11 /var/www/html/photoblog/wp-load.php(37): require_once('...')
#12 /var/www/html/photoblog/wp-blog-header.php(13): require_once('...')
#13 /var/www/html/photoblog/index.php(17): require('...')
#14 {main}
  thrown in /var/www/html/photoblog/wp-includes/widgets.php on line 1261

noisefloor Team-Icon

Anmeldungsdatum:
6. Juni 2006

Beiträge: 29567

Hallo,

du hast eine Reihe von Deprecation Warnung (in erster Instanz nicht schlimm) und einen FatalError "09 UTC PHP Fatal error:...".

Ich bin kein PHP Exprerte, aber das sieht so aus, als würde im Code PHP Code benutzt, der so von PHP Interpreter des Systems nicht ausgeführt werden kann. Du müsstest jetzt mal prüfen, welche PHP Version deine Wordpress Installation min / max braucht und was deine Ubuntu Installation nutzt.

Gruß, noisefloor

gnude

(Themenstarter)
Avatar von gnude

Anmeldungsdatum:
11. Juli 2014

Beiträge: 843

Ja es lag an der PHP Version und einer zu alten WordPress installation. Ich habe auf dem Server 2 Wordpress Blogs laufen und der andere lief noch ohne Probleme. Daher hab ich den Fehler woanders vermutet. Habe mich zunächst mit dem Webmeil Problem beschäftigt und auch hier war das PHP zu aktuell. Ich habe von Squirrelmail erst die Beta probiert, ohne Erfolg und dann die Developer-Version die lief. Und das hat mich dazu gebracht eine neue WordPress und Theme Version über das bestehende zu installieren. So ganz im Win95 Style.... drüberinstallieren. Es hat erstaunlicherweise gut geklappt und jetzt funktioniert der Blog wieder. War das WordPress doch zu alt für das neue PHP.

Antworten |