• Resolved codyjbennett

    (@codyjbennett)


    An error occurred while installing your license key.

    <scroll down for my fix!>

    I have a site that I’d like to get wordfence up and running on. I thought I had it installed at one point, but today when visiting the dashboard it showed me that I needed to complete the install. Perhaps I haven’t been in the dashboard for a LONG time, and thus changes over time broke my original installation.

    At any rate, I attempted to continue the installation. I opted to install the license, and to get a new free license through the provided link.

    I received (and continue to receive) the following:

    Error Installing License
    An error occurred while installing your license key.

    Please try again. If the problem persists, please contact Wordfence Support.

    [CLOSE]

    I have tried the following (with no change in behavior) after finding other free support forum postings:

    • attempted to uninstall/delete wordfence entirely from my site
    • deactivated ALL other plugins
    • changed themes
    • generated new free license (multiple times)
    • tried in alternative browsers (Arc & Brave)
    • Disabled extensions like ublockorigin, brave blocker, adblock plus
    • verified that my site general settings url is in fact https://https://www.domain.co [redacted domain]

    I did find within diagnostics that these settings are failing:

    | Wordfence Config | |

    | Checking basic config reading/writing | [FAIL] Basic config writing |
    | Checking serialized config reading/writing | [FAIL] Serialized config writing |

    from admin.php?page=WordfenceTools&subpage=diagnostics

    ——-

    WOAH – I just fixed it!

    While I was perusing the diagnostics page, I found the log files section (towards the bottom). Within this, I downloaded my 15MB error log, and opened it in a text viewer app. Scrolling to the bottom (most recent entries), I found several errors that suggested that my database needed to be repaired. I double checked in the wp-config.php file to verify the name of my database, and within my hosting environment I opened the database, made a SQL backup, and then selected all tables and ran a repair. When I reloaded my site again, the error was gone and wordfence was working as expected!!

    So, perhaps this will help someone. I read several other users who had the same error, but didn’t come across a fix that had helped me.

    Best of luck to you!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter codyjbennett

    (@codyjbennett)

    As noted in the original post, I was able to resolve this problem myself. Here’s a copy/paste of my fix:

    While I was perusing the diagnostics page, I found the log files section (towards the bottom). Within this, I downloaded my 15MB error log, and opened it in a text viewer app. Scrolling to the bottom (most recent entries), I found several errors that suggested that my database needed to be repaired. I double checked in the wp-config.php file to verify the name of my database, and within my hosting environment I opened the database, made a SQL backup, and then selected all tables and ran a repair. When I reloaded my site again, the error was gone and wordfence was working as expected!!

    So, perhaps this will help someone. I read several other users who had the same error, but didn’t come across a fix that had helped me.

    Best of luck to you!

    Thanks I don’t know how you ran a repair ? This is not an option in Wordfence and my wordfence is missing tables

    Thread Starter codyjbennett

    (@codyjbennett)

    @startechmarketing, I have bluehost as a hosting provider, and in that environment, here are the steps I followed:

    1. Sign into Bluehost
    2. Open cPanel (a pain to find, but eventually found it at the bottom of the “hosting” page under “quicklinks”)
    3. Open phpMyAdmin (under “databases”)
    4. In the lefthand pane, I found the database that my WP installation uses (if needed you can find this database info in your wp-config.php file at the root of your wordpress installation)
    5. In the ‘structure’ on the right hand side, I scrolled to the bottom, selected all, and then used the dropdown menu to ‘export’ (as a precaution), and then ‘rebuild’ those tables (see this image).
    6. Testing the site again proved that worked for me.

    Good luck.

    Thanks I used wp-optimize to delete the tables it worked fine. I think also the new server had a problem but now it seems to be working

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘An error occurred while installing your license key.’ is closed to new replies.