• Resolved Jacob Graf

    (@jacobgraf)


    When I save settings, nothing sticks. When I try to enter my API key, it doesn’t stay either. I’ve verified the folder/files Sucuri writes to are available and writeable but still it’s like nothing I enter actually saves. Any ideas how to troubleshoot/fix this? I am getting too many emails for failed login attempts and can’t make them stop. 🙁

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Are the settings getting reverted back immediately as you change them?

    Let’s try this:

    1. In Settings -> General -> Import & Export Settings, copy the current settings and save them someplace to be imported back later. Search it to see if it includes: “sucuriscan_notify_failed_login”:”enabled”

    2. Find the sucuri-settings.php file (by default in wp-content/uploads/sucuri but this path can be changed by setting SUCURI_DATA_STORAGE). Rename this file to something else so that the plugin will create a new sucuri-settings.php file with default settings next time you access the plugin. If the file wasn’t recreated then it might be a permissions issue after all.

    3. The option to send alerts of failed logins is not enabled by default, so those emails should stop at this point. See if you’re able to change settings now through the plugin interface.

    4. We can restore the original settings manually or through Settings -> General -> Import & Export Settings (replace the content of the text file with your saved settings from step 1, and press Submit). Manually is safer but import is faster.

    5. If the problem wasn’t the file permissions, please also copy the content of the old sucuri-settings.php file here (after obscuring all sensitive information like IPs and email addresses) to help me try to reproduce the issue on my side.

    Thanks!

    Thread Starter Jacob Graf

    (@jacobgraf)

    In the import/export field, sucuriscan_notify_failed_login was set to enabled. I deleted the settings file and when the new one is generated, it’s also set to enabled. I manually changed the setting to disabled and re-imported the settings and it is immediately set back to enabled. I am stumped. It’s like it’s getting its settings from somewhere else, but I don’t know where? Here is the current settings.

    {
       "sucuriscan_addr_header":"HTTP_X_SUCURI_CLIENTIP",
       "sucuriscan_api_protocol":"https",
       "sucuriscan_api_service":"enabled",
       "sucuriscan_cloudproxy_apikey":"",
       "sucuriscan_diff_utility":"disabled",
       "sucuriscan_dns_lookups":"enabled",
       "sucuriscan_email_subject":"Sucuri Alert, :domain, :event, :remoteaddr",
       "sucuriscan_emails_per_hour":5,
       "sucuriscan_ignored_events":"",
       "sucuriscan_lastlogin_redirection":"enabled",
       "sucuriscan_maximum_failed_logins":30,
       "sucuriscan_notify_available_updates":"disabled",
       "sucuriscan_notify_bruteforce_attack":"disabled",
       "sucuriscan_notify_failed_login":"enabled",
       "sucuriscan_notify_plugin_activated":"enabled",
       "sucuriscan_notify_plugin_change":"enabled",
       "sucuriscan_notify_plugin_deactivated":"disabled",
       "sucuriscan_notify_plugin_deleted":"disabled",
       "sucuriscan_notify_plugin_installed":"disabled",
       "sucuriscan_notify_plugin_updated":"disabled",
       "sucuriscan_notify_post_publication":"enabled",
       "sucuriscan_notify_scan_checksums":"disabled",
       "sucuriscan_notify_settings_updated":"enabled",
       "sucuriscan_notify_success_login":"enabled",
       "sucuriscan_notify_theme_activated":"enabled",
       "sucuriscan_notify_theme_deleted":"disabled",
       "sucuriscan_notify_theme_editor":"enabled",
       "sucuriscan_notify_theme_installed":"disabled",
       "sucuriscan_notify_theme_updated":"disabled",
       "sucuriscan_notify_to":"myemail@mydomain.com",
       "sucuriscan_notify_user_registration":"disabled",
       "sucuriscan_notify_website_updated":"disabled",
       "sucuriscan_notify_widget_added":"disabled",
       "sucuriscan_notify_widget_deleted":"disabled",
       "sucuriscan_prettify_mails":"disabled",
       "sucuriscan_revproxy":"disabled",
       "sucuriscan_selfhosting_fpath":"",
       "sucuriscan_selfhosting_monitor":"disabled",
       "sucuriscan_use_wpmail":"enabled",
       "trusted_ips":[
    
       ]
    }

    Thank you very much! I think I see the problem now. We’ll do more testing on our side and then push an update.

    Jacob, please upgrade the plugin to 1.8.18.

    Thread Starter Jacob Graf

    (@jacobgraf)

    Same issue. I even completely uninstalled and re-installed AND deleted all config files so they would be regenerated. Also, in plugin settings it shows it is running v.18 but in the Dashboard, it still shows v.17. 😢

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot Save Settings or Install API Key’ is closed to new replies.