Hi

I'm not an advanced Drupal user, but I changed in the admin some settings of the Spamicide Module.
Instead of applying the module to all forms, I only selected the user register form.
After saving this setting I got a bunch of warnings. I looked into the Drupal PHP error log and this message was found:

LOCATION: /admin/config/people/spamicide
REFERRER: /admin/config/people/spamicide
MESSAGE: Warning: rmdir(/x/x/public_html/sites/default/files): Permission denied in drupal_rmdir() (line 2369 of x/x.public_html/includes/file.inc)
SEVERITY: warning

The default/files was completely emptied.

I think this shouldn't happen

I'm not using the module anymore, because I don't what caused this action exactly, somebody any idea (what went / I did wrong)?

Greets

Comments

lipcpro’s picture

Assigned: Unassigned » lipcpro
Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)
okaalto’s picture

Submitting spamicide admin form causes this, since it calls variable_get('spamicide_dir') without default value.
Since the variable is not initially set, it effectively calls file_unmanaged_delete_recursive('public://').

lamp5’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)