[wp-trac] [WordPress Trac] #57237: file_exists(): open_basedir restriction in effect. File(core/post-comments) is not within the allowed path(s)

WordPress Trac noreply at wordpress.org
Wed Nov 30 21:22:36 UTC 2022


#57237: file_exists(): open_basedir restriction in effect. File(core/post-comments)
is not within the allowed path(s)
--------------------------+-----------------------------
 Reporter:  davidki       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  critical      |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello,

 After updating wordpress to version 6.1.1 I see this php warning messages:

 Warning: file_exists(): open_basedir restriction in effect. File(core
 /post-comments) is not within the allowed path(s):
 (/data/web/virtuals/291601/virtual) in
 /data/web/virtuals/291601/virtual/www/wp-includes/blocks.php on line 532

 Warning: Cannot modify header information - headers already sent by
 (output started at /data/web/virtuals/291601/virtual/www/wp-
 includes/blocks.php:532) in /data/web/virtuals/291601/virtual/www/wp-
 includes/pluggable.php on line 1416

 Warning: Cannot modify header information - headers already sent by
 (output started at /data/web/virtuals/291601/virtual/www/wp-
 includes/blocks.php:532) in /data/web/virtuals/291601/virtual/www/wp-
 includes/pluggable.php on line 1419

 I can't get into admin. I use php 8.1.11.

 I try to rename all plugins via FTP, but nothing change.

 On my another testing website I see the same php warning messages, but I
 can reach the wordpress administration. So I tryed to disable all plugins
 and change theme to default "Twenty Twenty-Two" but nothing change.

 I am not the only one who suffer with these errors. Here for examle:
 https://stackoverflow.com/questions/74327979/wp-error-warning-file-exists-
 open-basedir-restriction-in-effect-filecore


 Thank you,

 David

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57237>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list