• Resolved foujax

    (@foujax)


    Hi,

    There seems to be an issue when attempting to load language files on the metagallery and extendify-sdk modules, especially when using IIS while open_basedir is restricted. Here is an example :

    Warning: is_readable(): open_basedir restriction in effect. File(C:\inetpub\wwwroot/wp-content/plugins/C:\inetpub\wwwroot\wp-content\plugins\ml-slider/metagallery/languages/metagallery-fr_FR.mo) is not within the allowed path(s): (C:\webtemp;C:\inetpub\wwwroot;C:\inetpub\webroot;C:\apps) in C:\inetpub\wwwroot\wp-includes\l10n.php on line 741

    For the metagallery module, the issue is in line 45 of metagallery/bootstrap.php. The use of METAGALLERY_PATH seems to cause an issue in this particular situation. I was able to fix it temporarily by doing this instead :

    \load_plugin_textdomain(‘metagallery’, false, basename( dirname( __FILE__ ) ) . ‘/languages/’);

    But it might not be the best way and any update to the plugin might overwrite this fix. Is there something that can be done?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with IIS Server + open_basedir (metagallery + extendify-sdk)’ is closed to new replies.