• Hi,

    We’re observing a VERY STRANGE behavior with the upload folder : /wp-content/uploads/wp_dndcf7_uploads/wpcf7-files…

    If we allow the plugin to auto-delete files by letting the checkbox unchecked, the “wpcf7-files” folder gets deleted and recreated very often, like every seconds or so (maybe every time someone access a page, that’s our guess). Would you have any idea wtf is going on ?

    Sometimes it even gets recreated with an other linux user than www-data as owner (which forbids other deletion/creation, since www-data can’t delete it anymore).

    I’ve never witnessed such a strange behavior… Did you use black magic when coding your plugin ? Is the devil involved ? Should I call an exorcist ?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Glen Don Mongaya

    (@glenwpcoder)

    Hey @clementrectangle,

    That’s very strange I haven’t received any issues related to that before. I also did not experienced that kind of behavior.

    There’s no special code or magic ?? added on the plugin it’s just simply PHP function to delete files. (If it’s deleted from the server there’s no way we can retrieve that files without going to trash and undo the changes)

    Maybe there’s another user that actively uploaded the same file name or something. (not sure though)

    Can you try and deactivate my plugin and use the default upload of contact form 7? and see if you still experience the issue?

    Thank You.
    Please let me know.

    Thread Starter clementrectangle

    (@clementrectangle)

    Yes I know, I can’t warp my head around this neither ??

    When I desactivate the plugin, or check the checkbox to disable automatic files deletion, the problem stops.

    What is bugging me is that it’s not a file that is being deleted and recreated, it’s the “wpcf7-files” folder itself. If it was a file, I would have supposed the same : someone is uploading and deleting a file again and again.

    And the strangest thing in this is when the folder gets recreated wiuth another linux user as owner. The website is run by the www-data user, and all files created by WordPress or plugins are created with www-data as owner, but sometimes, randomly, the “wpcf7-files” folder is recreated but owned by one of our admin users… That particular problem may be with our server configuration, but I’ve never seen that happen.

    Actually, that’s the detail that pointed me to the problem : when the folder is owned by the admin user, it’s not writable anymore by www-data, so file upload stops working on the form.

    I disabled automatic deletion anyway, and I’m now cleaning the “wpcf7-files” folder with a cron job, so this is not urgent, is working like this, but I was very curious to understand what happens ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Very strange behavior with wpcf7-files folder’ is closed to new replies.