Title: A PHP Warning
Last modified: December 8, 2025

---

# A PHP Warning

 *  [serloo](https://wordpress.org/support/users/serloo/)
 * (@serloo)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/a-php-warning/)
 * <span style=”color: rgb(28, 24, 25); font-family: Inter, sans-serif; font-size:
   14px; white-space-collapse: collapse; background-color: rgb(245, 237, 233);”>
   FastCGI sent in stderr: “PHP message: PHP Warning: is_dir(): open_basedir restriction
   in effect. File(/wp-content/uploads/2025/12/anime-keycap-lake-blue-warrior-artisan-
   gallery-7) is not within the allowed path(s):</span>
 * Host replied they do not modify the `open_basedir` restrictions due to security
   best practices. We can modify it in some cases, but we can not add a relative
   path, only absolute paths to it.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Pedro](https://wordpress.org/support/users/petredobrescu/)
 * (@petredobrescu)
 * [5 months, 3 weeks ago](https://wordpress.org/support/topic/a-php-warning/#post-18747209)
 * Hello [@serloo](https://wordpress.org/support/users/serloo/), this could happen
   for a number of reasons, depending on how the image information is stored in 
   your DB, as well as how the paths are defined in WordPress.
 * Can you please:
    - Tell us when you get this warning? Is it when you replace an image with our
      plugin, or does it just show up in the logs?
    - Tell us if the image replacement is done correctly?
    - Send us your WordPress system health data related to the paths defined in 
      WordPress?
 * If you consider that’s too sensitive data to post here, please [contact us](https://shortpixel.com/contact)
   and mention this thread, and we’ll continue the discussion in private, posting
   the solution here.
 * Thanks!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fa-php-warning%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/enable-media-replace/assets/icon-256x256.png?rev=1940728)
 * [Enable Media Replace](https://wordpress.org/plugins/enable-media-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/enable-media-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/enable-media-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/enable-media-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/enable-media-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/enable-media-replace/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Pedro](https://wordpress.org/support/users/petredobrescu/)
 * Last activity: [5 months, 3 weeks ago](https://wordpress.org/support/topic/a-php-warning/#post-18747209)
 * Status: not resolved