• Resolved herculeeees

    (@herculeeees)


    After updating to 1.8.0, when I attempt to change any plugin settings I get the following error:

    Sucuri: Storage is not writable: [path]/wp-content/uploads/sucuri/sucuri-settings.php

    I’ve had the data storage path changed to a folder outside the document root since installing the plugin, so there is no /sucuri/ directory in my uploads folder.

    When I switch back to v1.7.17 I am able to make changes to settings.

    https://wordpress.org/plugins/sucuri-scanner/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Since version 1.7.18 the plugin stopped using the database to store its settings and now it is using a plain text file. The problem here is that you changed the location of the data storage, which is fine, previously the plugin was able to handle this change correctly but now the automatic detection of the new directory is causing an infinite loop so I had to remove it.

    Here is the relevant code [1] as you can see the plugin forces “/uploads/sucuri/” and the only way to modify it is by defining a constant somewhere else in the code with the new location. Supposing that the location you are using is “/home/user/private/” you can define the constant in the “wp-config.php” file like this [2].

    Sorry for the inconvenience.

    [1] https://github.com/Sucuri/sucuri-wordpress-plugin/blob/1960ec9/sucuri.php#L3059-L3071
    [2] define('SUCURI_DATA_STORAGE', '/home/user/private');

    Thread Starter herculeeees

    (@herculeeees)

    Thanks, that worked.

    I’m running a multisite and it looks like even after updating settings, unwanted notification emails are still being sent to site administrators (NOT the email address designated in the network plugin settings). Would it be safe/effective to delete settings from the individual options tables like so:

    DELETE * FROM wp_[sitenumber]_options WHERE option_name LIKE ‘sucuriscan_%’;

    (from https://wordpress.org/support/topic/sucuri-wont-stop-emailing-me-sucuri-alerts?replies=29)

    Sure, feel free to delete all the options stored in the “wp_*options” table that start with “sucuriscan%”. The newest version of the plugin gives priority to the data contained in “sucuri-settings.php” and only reads from the database as a fallback mechanism.

    If deleting the remaining plugin options from the database doesn’t solves the issue with the email alerts let me know so I can investigate more. I wrote a lot of automated tests to make sure that multisite installations work as expected, but the differences between that and a normal installation are significant and I may have missed 1-2 things.

    Marking as unresolved again until we can confirm the fix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to update settings’ is closed to new replies.