PHP message: PHP Warning: file_exists():00 open_basedir restriction in effect.
-
Subject: Persistent Error in error.log File – Need Help!
Dear Support Team and WP Community,
I’ve been noticing a large number of [error] entries in my error.log file. These entries sometimes appear multiple times per second, especially when the site is scanned by various crawlers. As a result, the error.log file has grown quite large. Here’s an example of the error I’m seeing:
2023/08/20 10:15:24 [error] 4069776#4069776: *2705805 FastCGI sent in stderr: "PHP message: PHP Warning: file_exists(): open_basedir restriction in effect. File(core/post-comments) is not within the allowed path(s): (/var/www/clients/client1/web2/web:/var/www/clients/client1/web2/tmp:/var/www/enduro.de/web:/srv/www/enduro.de/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin:/usr/share/php) in /var/www/clients/client1/web2/web/wp-includes/blocks.php on line 576" while reading response header from upstream, client: 66.249.69.99, server: enduro.de, request: "GET /amp/minienduro-jugend-im-endurosport-betritt-zum-ersten-mal-die-europaeische-buehne-83347 HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/web2.sock:", host: "www.enduro.de"
From a Google search, I found the following suggestion:
In the file wp-includes/blocks.php on line 532, change this:
if (is_string( $block_type ) && file_exists( $block_type ) ) {
to this:
if ($block_type != "core/post-comments" && is_string( $block_type ) && file_exists( $block_type ) ) {
However, after a recent WordPress update, the problem has resurfaced. Is there a permanent solution to this issue? I’d greatly appreciate any assistance.
Best regards,
MarkoThe page I need help with: [log in to see the link]
- The topic ‘PHP message: PHP Warning: file_exists():00 open_basedir restriction in effect.’ is closed to new replies.