Make WordPress Core

Opened 7 years ago

Closed 3 years ago

Last modified 3 years ago

#42067 closed defect (bug) (invalid)

Language Warning

Reported by: eatonz's profile EatonZ Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8.2
Component: I18N Keywords:
Focuses: Cc:


When using an open_basedir PHP restriction, I am receiving a PHP warning from WordPress:

[03-Oct-2017 02:07:04 UTC] PHP Warning:  is_readable(): open_basedir restriction in effect. File(/languages// is not within the allowed path(s): (C:\inetpub\wwwroot) in C:\inetpub\wwwroot\wp-includes\l10n.php on line 583

Looks like a bug. This is a Windows/IIS server, and it looks like it's trying to reference a Linux path possibly, instead of something relative.

Change History (7)

#1 @EatonZ
7 years ago

I have tried fixing this by adding various forms of that path to open_basedir:


None of which have solved the issue. I'd rather not remove this security feature, so hopefully something can be done by the next maintenance release to address this.

#2 @ocean90
7 years ago

  • Keywords reporter-feedback added

Hello @EatonZ, thanks for your report. Does it still happen with all plugins disabled and a default theme (Twenty Seventeen) activated? Which locale are you using? Do you have a custom WP_LANG_DIR defined?

#3 @EatonZ
7 years ago

Sorry for the delay in responding. I couldn't reproduce it on a clean install, and I do not have a WP_LANG_DIR defined.

I found that open_basedir incurs a huge performance impact, so I got rid of it. I will try and reproduce again on a clean install when I have some free time and try to narrow it down further for you.

#4 @hellofromTonya
4 years ago

  • Keywords close added

Hello @EatonZ,

Where you able to reproduce the problem? Does the problem persist today?

I'm marking this ticket as a close worksforme candidate. Why? I'm not finding other reports of the same problem. On a clean install, you note that you could not reproduce it. I was not able to reproduce it either. And it's been over 3 years since first reported.

However, if the problem persists, please provide the steps and set up to reproduce. This extra information will help us to investigate.

#5 @EatonZ
3 years ago

@hellofromTonya I will check this again soon.

#6 @EatonZ
3 years ago

  • Keywords reporter-feedback close removed
  • Resolution set to invalid
  • Status changed from new to closed

I was able to reproduce again when setting open_basedir on my prod site. However, on a clean site, it doesn't seem to occur. My conclusion is that it must be some plugin/theme combination on my site that is causing this, and not WordPress itself.

I am closing this now as it seems it would be more appropriate to report this to the respective plugins' authors, whatever those plugins may be...

#7 @SergeyBiryukov
3 years ago

  • Milestone Awaiting Review deleted

Thanks for the follow-up!

Note: See TracTickets for help on using tickets.