• Since a few days I have this warning appearing :

    Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(F:\Inetpub\vhosts\[my_domain_folder]\blog/wp-content/plugins/https://[my_domain_url]/wp-content/plugins/lightbox-plus/languages/lightboxplus-fr_FR.mo) is not within the allowed path(s): (F:\Inetpub\vhosts\[my_domain_folder]\blog\) in F:\Inetpub\vhosts\[my_domain_folder]\blog\wp-includes\l10n.php on line 457

    It seems that it concatenates both the physical path of the file and the url.

    Looking into the issue, I fixed it editing the line 143 in file lightboxplus.php :
    Existing :
    load_plugin_textdomain('lightboxplus', false, $path = $g_lightbox_plus_url.'languages');
    New :
    load_plugin_textdomain('lightboxplus', false, dirname( plugin_basename( __FILE__ ) ).'languages');

    Bear in mind that I have no experience in WP development, so I just used the example in WP documentation for load_plugin_textdomain(), so there might be better solutions.

  • The topic ‘Loading language files fails with WP 3.9.1 & IIS’ is closed to new replies.