• Resolved Peter

    (@reywob)


    After activating the plugin, and before I can move onto “Step 5” I get a screen of errors:
    Errors

    Digging into the code, I see the plugin is trying to write to one of its folders (which is forbidden on my system). In desperation I have run chmod -R 777 plugins/cf7-polylang/languages, but no change.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    Hello Peter

    sorry to read of your troubles. Is this on a local machine or a remote server? Seems like a configuration issue with your Apache server, which is really beyond the scope of this plugin support.

    In desperation I have run chmod -R 777 plugins/cf7-polylang/languages, but no change.

    So you have access to the file system, in which case you can manually install the missing locales for the languages you have configured in Polylang. Please follow the instructions in the 2nd question of the FAQ section to remedy this issue.

    Thread Starter Peter

    (@reywob)

    Hi Aurovrata,

    sorry to read of your troubles. Is this on a local machine or a remote server?

    It’s occurring on both my local Vagrant machine and my remote server.

    Seems like a configuration issue with your Apache server, which is really beyond the scope of this plugin support.

    I respectfully disagree, as a plugin should not assume it can write to its directory. Instead, it can use wp-content/uploads or the Filesystem API. For security we run PHP as a different user to the file-owner, and only keep the uploads directory writable by PHP.

    Please follow the instructions in the 2nd question of the FAQ section to remedy this issue.

    Thank you, I will do so and confirm that it’s worked tomorrow.

    Best regards,
    Peter

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I respectfully disagree, as a plugin should not assume it can write to its directory.

    mmhh… so how does WP update the plugins themselves? I think you will find many do write to folders other that the uploads.

    Instead, it can use wp-content/uploads or the Filesystem API.

    The next release will write the language files to the wp-content/languages/plugin/ folder as was discussed in this thread.

    For security we run PHP as a different user to the file-owner, and only keep the uploads directory writable by PHP.

    So I assume even your WP upgrades must done manually…

    Thread Starter Peter

    (@reywob)

    mmhh… so how does WP update the plugins themselves? I think you will find many do write to folders other that the uploads.

    Out of the 30+ plugins we use, none need to write to their folder in plugins. ACF writes to a folder in the current theme.

    WP doesn’t update the plugins. Our updates are either managed via wp-cli or, where we need to test plugin updates do not cause regressions before putting live, by updating the site’s composer.json and redeploying (we use https://roots.io/bedrock/). The latter is becoming our usual procedure.

    So I assume even your WP upgrades must done manually…

    Yes. Minor upgrades are done via wp-cli run regularly via cron; major ones are manually done and tested before putting live.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Errors trying to fetch and write language files’ is closed to new replies.