ubuntuusers.de

nginx mit WordPress und php8.1: Type Error Thrown, explode(): Argument #2 ($string) must be of type

Status: Ungelöst | Ubuntu-Version: Ubuntu 22.10 (Kinetic Kudu)
Antworten |

caiusjuliuscaesar

Anmeldungsdatum:
20. Januar 2009

Beiträge: 307

Hallo,

ich habe folgende Fehlermeldung bei einer Wordpressisnstallation:

Type Error Thrown, explode(): Argument #2 ($string) must be of type string, array given

Überraschend ist, daß der Fehler nach einer gewissen Zeit (60s?) oder nach mehrmaligem Aufruf verschwindet und sich der korrekte Aufbau der Seite zeigt.

Dahinter verbirgt sich im error.log:

1
2
3
sudo cat  /var/log/nginx/wp_error.log.1
[sudo] Passwort für**********:
2023/01/11 06:32:25 [error] 1289#1289: *66391 FastCGI sent in stderr: "PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php on line 5648PHP message: PHP Warning:  Trying to access array offset on value of type bool in /var/www/html/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_data/package.module.nextgen_data.php on line 5648" while reading upstream, client: 192.168.0.225, server: 192.168.0.100, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "192.168.0.100"

In Zeile 5648 befindet sich folgender Code:

1
2
3
        if (isset($params['crop_frame'])) {
                    $size_meta['crop_frame'] = $params['crop_frame'];
                }

Woran könnte das liegen? Gibt es eine Abhilfe?

Freundlichen Grüße,

CJC

Antworten |