skip to Main Content

a friend of mine is running a WordPress site and suddenly started getting this error on administrative pages.

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

Hosting provider does not allow disabling open_basedir.

Can anyone help?

2

Answers


  1. this solution work for me.

    In 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 ) ) {

    Then I would recommend to you update all plugins and WP core and reverse the change. I thing it will be ok. 🙂

    Login or Signup to reply.
  2. Thank you very much!

    I addressed this issue on your site and your advice was very helpful.

    Have a nice day.
    Karel Kilian

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search