• Anssi Laitila

    (@anssilaitila)


    Hi,

    After installing the plugin (2.8.9) on a new site, using the default settings, the language list is greyed out (all languages) and after clicking a language, there’s an error message:

    File access disallowed
    Access to this file is blocked for security reasons: Access to test-en_US.po is disallowed by the plugin settings

    I haven’t figured out what are those plugin settings that disallow this access.

    After changing to version 2.8.8 everything works normally.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tim W

    (@timwhitlock)

    Version 2.8.8 allowed reading of translation files anywhere on your system that the PHP process allowed. This has been the subject of many security reports and so has been tightened up to avoid this plugin getting closed.

    If your test-en_US.po file is not under the web root (for reading) or wp-content (for writing) then you’ll have to add its location to the list of allowed paths in the plugin settings.

    See the help page and the settings documentation for a full description on the new settings that control file access.

    Thread Starter Anssi Laitila

    (@anssilaitila)

    The location of the file is wp-content/languages/loco/themes/test-en_US.po, but on this hosting provider ABSPATH is /data/wordpress/htdocs/wordpress/ and there is a symbolic link wp-content -> ../wp-content, which possibly causes the issue?

    I’ll have to test some other settings then.

    Plugin Author Tim W

    (@timwhitlock)

    I expect your symlink is the issue. If wp-content is a parallel directory to the web root. I suggest you enter the following as the base directory restriction:

    .
    ../wp-content

    And to disallow writes outside the content directory, you can enter the writeable directories as just ../wp-content

    LeSombre

    (@lesombre)

    Good morning,

    I too had this issue (version 2.8.9 on WordPress.com) and solved it by adding these:

    Restricted base directories:

    /srv/htdocs/

    Restricted writeable directories:

    /srv/htdocs/wp-content/

    On my self-hosted WordPress sites, the default blank and wp-content settings work perfectly.

    Thread Starter Anssi Laitila

    (@anssilaitila)

    I can confirm that with these settings it’s working on my site:

    Restricted base directories:

    /data/wordpress/htdocs/

    Restricted writeable directories:

    /data/wordpress/htdocs/wp-content/
Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.