WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Why do you need mkdir() access?

[Resolved] Why do you need mkdir() access?

  • Colin

    @cmcclure_simplymeasured

    I’m interested in using your plugin, but it looks like you require write access to the server with your use of mkdir(). That’s not somehting we’re willing to allow on our production servers, so I was wondering if you could tell me what your code is actually doing, I might be able to work around it. For instance, if it’s a one time setup, I can load the needed directories from our repo on deployment and then the plugin can work without needing write access.

    https://wordpress.org/plugins/simple-subscribe/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there mate,

    does it really require mkkdir? I don’t use that anywhere in the plugin 🙂
    Could you let me know where do you see that?

    kind regards,
    Mart

    Colin

    @cmcclure_simplymeasured

    Sorry for the delay, I’ve been out of the country for a few weeks. The Nette library you use has it all over the place. Check out this file, /libs/Nette/Nette.min.php

    Yes,

    but we don’t use the whole library now do we, just few bits, so the code never gets excecuted.

    Kind regards,
    Mart

    Colin

    @cmcclure_simplymeasured

    It does actually. On my server, WordPress doesn’t have write permissions to disk. When you try and use your plugin, it fails and says mkdir() was unable to create a directory. I’m trying to get you the exact error message, but I’m having trouble. Now whenever I try and submit an email, it says “Unable to send email: Undefined index: first_name.”

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Why do you need mkdir() access?’ is closed to new replies.