• Hi,

    I moved a website to another server and suddenly I could no longer change anything in the Wordfence settings. I could not uninstall the plugin either:
    Browser console: Cannot read properties of undefined (reading ‘__’) at wfglobal.1687359289.js

    I have now deactivated the plugin manually, deleted all files and removed the database tables. When I wanted to activate Wordfence again, I got stuck after the first step of activating the licence key.

    I discovered the following error in the error log:

    WordPress database error Table ‘db.su_wfls_settings’ doesn’t exist for query SELECT name, value, autoload FROM su_wfls_settings WHERE name = ‘require-2fa.administrator’ made by require_once(‘wp-admin/admin.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), include_once(‘/plugins/wordfence/wordfence.php’), require_once(‘/plugins/wordfence/lib/wordfenceClass.php’), require(‘/plugins/wordfence/modules/login-security/wordfence-login-security.php’), WordfenceLS\Controller_WordfenceLS->init, WordfenceLS\Controller_WordfenceLS->_init_actions, WordfenceLS\Controller_Settings::shared, WordfenceLS\Controller_Settings->__construct, WordfenceLS\Controller_Settings->_migrate_admin_2fa_requirements_to_roles, WordfenceLS\Controller_Settings->get_bool, WordfenceLS\Controller_Settings->get, WordfenceLS\Settings\Model_DB->get, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection_QueryCaching->query, W3TC\_CallUnderlying->query, W3TC\DbCache_WpdbNew->query, W3TC\DbCache_WpdbInjection->query, W3TC\DbCache_WpdbNew->default_query

    Unfortunately, I have not found a similar entry in the forum. What could be the problem?

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support wfpeter

    (@wfpeter)

    Hi @falkemediawy, thanks for your question.

    That error could happen if a database backup was restored to the point before those tables were created, or if the user doesn’t have database privileges to create the tables in this database anymore. Are you still using the db.su_ prefix or is that from the structure of the site before migration?

    Usually, reactivating the plugin will create those tables if they don’t exist, unless something like permissions is stopping it. You could also try ensuring everything was completely cleared using the Wordfence Assistant plugin to, “Remove all Wordfence Data in the Database and elsewhere“. Then try the plugin reinstallation.

    Let me know how you get on!
    Peter.

    Thread Starter falkemediawy

    (@falkemediawy)

    Hi Peter, thanks for your quick response.

    I am already using the assistant and removed all data in the database.
    I checked again, the wfls_settings table is now shown in the database. Maybe this database issue is resolved now because I no longer get a critical error.

    The problem that prevents me from activating the licence is still the error in the browser console: Cannot read properties of undefined (reading ‘__’) at wfglobal.1687359289.js
    I can’t activate the licence or uninstall the plugin (unless with the assistant). Where can this error come from?

    Regards,
    Hannah

    Plugin Support wfpeter

    (@wfpeter)

    Hi @falkemediawy,

    Positive progress in the database tables being seemingly restored, although I’m wondering why the browser console error might be showing as I can’t find reference to this specific one in our license flow before. Have you tried another browser to your default choice and get the same result?

    If so, or another browser doesn’t help, you should still have access to the Wordfence > Tools menu to send us a diagnostic report so we can take a closer look at why you might be getting a 403 response. You can send that to us at wftest @ wordfence . com. Click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    NOTE: It should look as follows – Screenshot of Tools > Diagnostic > Send by Email

    Thanks again,
    Peter.

    Thread Starter falkemediawy

    (@falkemediawy)

    Hi @wfpeter,

    unfortunately I wasn’t able to send my report via Wordfence > Tools. I can’t click anything in the Wordfence settings, maybe because I couldn’t activate the licence yet.

    I have just sent the report to the following email address.
    Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can’t activate Wordfence license’ is closed to new replies.