• Resolved nobu1

    (@nobu1)


    Warning error after I uploaded!

    I am PHP 8.2

    The upload replacement is successful, and this error message appears on the Thanks page.

    Warning: is_dir(): open_basedir restriction in effect. File((file name)) is not within the allowed path(s): ((pass)/usr/local/php82/lib/php/) in (pass)/wp-content/plugins/enable-media-replace/build/shortpixel/replacer/src/Replacer.php on line 87

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Gerard Blanco

    (@sixaxis)

    Hi nobu1,

    Please have a look at this thread, we already talked about this: https://www.ads-software.com/support/topic/warning-is_dir-open_basedir-restriction-in-effect-3/

    Thanks!

    Thread Starter nobu1

    (@nobu1)

    Hello.

    I saw the page, thank you.
    Specifically, where part of where file should I rewrite?

    I will wait the update.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi nobu1,

    I’m sorry, I don’t understand your question. Could you please elaborate?

    Thank you

    Thread Starter nobu1

    (@nobu1)

    Hello,

    I want to remove this error message.

    Plugin Support Gerard Blanco

    (@sixaxis)

    Hi nobu1,

    As you can read in the link I already sent you, when the plugin replaces the path of the old images with the new path, several things need to be checked. For a faulty website, it’s possible that the end result of the source image path is a directory (i.e. the image metadata is empty, corrupted or something else caused by other plugins). Let’s imagine the source was?/var/www/site/wp-content/uploads/2024/05, in which case all images in that directory would be replaced with the new image, and that would corrupt a lot of post content.

    To prevent this, we check if something exists that shouldn’t exist, and if that’s the case, we abort the process. On?basedir-sensitive websites, however, this leads to a?basedir?warning, because the correct input here should be a relative and not a full path. In any case, don’t worry, it’s just a warning and not an error.

    In other words, if you really need this warning message to be gone, please reach out to your hosting provider with the above information so they can help you out.

    Best,

    Thread Starter nobu1

    (@nobu1)

    All right.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.