Checked on my WordPress site today to find an HTTP 500 error.
2022/04/12 02:12:05 [error] 878#878: *5 FastCGI sent in stderr: "PHP message: PHP Parse error: syntax error, unexpected integer "1" in /var/www/domain.net/htdocs/wp-includes/pomo/mo.php on line 105PHP message: PHP Parse error: syntax error, unexpected integer "1" in /var/www/domain.net/htdocs/wp-includes/pomo/mo.php on line 105" while reading response header from upstream, client: 162.158.62.41, server: domain.net, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php8.0-fpm.sock:", host: "domain.net"
Line 105 in that WordPress file is:
$total = count( $entries ) 1; // All the headers are one entry.
WordPress version 5.9.3
PHP version 8.0.3
Advertisement
Answer
My local wordrpess has this as that line…
$total = count( $entries ) + 1; // All the headers are one entry.
I think your file has been tampered with