• Resolved frohike

    (@frohike)


    Hello,

    I have a strange issue with the WordFence Firewall.
    I’m not able to activate it.

    When I click on the “ENABLE FIREWALL” button in WordFence/Firewall, nothing appears. The page is reloading, that’s all. And the Firewall is still desactivated. Not any issues in the Logs. Also, the Blocking tab is empty.

    Here is 2 screenshots:
    https://ibb.co/dHaR8b
    https://ibb.co/ki151w

    Some details about my configuration:
    – WordPress 4.9.2
    – WordFence 7.0.1
    – PHP 7.0
    – SSL
    – MYSQL v.5.5
    – Theme: Soledad

    Could you help me on this?

    Thank you in advance 🙂

    • This topic was modified 6 years, 3 months ago by frohike. Reason: title editing
Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi frohike,
    Could you please open the browser console while being on the Firewall page, then click on “ENABLE FIREWALL” button and check if there is any JS error reported in the console?
    You can do the same thing on the Blocking page as well.

    Did you try switching the Firewall status in (Wordfence > Firewall > Manage WAF)?

    Thanks.

    Thread Starter frohike

    (@frohike)

    Hi Wfalaa,

    Thank you for your response.

    Yes, I have JS errors on this page:

    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-menu,moxiejs,plupload&ver=849e8ae52a3ce36ab3abbf9d7cca8aa3:9 JQMIGRATE: Migrate is installed, version 1.4.1
    admin.js?ver=7.0.1:498 Uncaught TypeError: $(...).select2 is not a function
        at Object.init (admin.js?ver=7.0.1:498)
        at HTMLDocument.<anonymous> (admin.js?ver=7.0.1:3341)
        at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-menu,moxiejs,plupload&ver=849e8ae52a3ce36ab3abbf9d7cca8aa3:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-menu,moxiejs,plupload&ver=849e8ae52a3ce36ab3abbf9d7cca8aa3:2)
        at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-menu,moxiejs,plupload&ver=849e8ae52a3ce36ab3abbf9d7cca8aa3:2)
        at HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-menu,moxiejs,plupload&ver=849e8ae52a3ce36ab3abbf9d7cca8aa3:2)
    admin.php Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    

    And in the Blocking tab:

    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-menu,moxiejs,plupload&ver=849e8ae52a3ce36ab3abbf9d7cca8aa3:9 JQMIGRATE: Migrate is installed, version 1.4.1
    admin.js?ver=7.0.1:498 Uncaught TypeError: $(...).select2 is not a function
        at Object.init (admin.js?ver=7.0.1:498)
        at HTMLDocument.<anonymous> (admin.js?ver=7.0.1:3341)
        at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-menu,moxiejs,plupload&ver=849e8ae52a3ce36ab3abbf9d7cca8aa3:2)
        at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-menu,moxiejs,plupload&ver=849e8ae52a3ce36ab3abbf9d7cca8aa3:2)
        at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-menu,moxiejs,plupload&ver=849e8ae52a3ce36ab3abbf9d7cca8aa3:2)
        at HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-widget,jquery-ui-position,jquery-ui-core,jquery-ui-menu,moxiejs,plupload&ver=849e8ae52a3ce36ab3abbf9d7cca8aa3:2)
    /wp-admin/admin.php?page=WordfenceWAF#top#blocking Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    

    I can’t try to do anything on this page Wordfence > Firewall > Manage WAF, there not any way to activate something: https://ibb.co/h3NUdb

    I’ve tried to deactivate the other extensions, to remove and reinstall WordFence, it’s not better.
    I have other WordPress blogs with the same configuration (hosting, etc.) and WordFence works very fine.

    Do you have any idea?

    Thank you,

    Hi,

    I got the same issue. On the firewall page I got following error. Enabling firewall doesn’t work. Other pages are working fine.

    Fatal error
    : Uncaught wfWAFStorageFileConfigException: Error reading Wordfence Firewall config data, configuration file could be corrupted or inaccessible. Path: /homepages/0/d656222789/htdocs/clickandbuilds/RVCGilching/wp-content/wflogs/config.php in /homepages/0/d656222789/htdocs/clickandbuilds/RVCGilching/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:539 Stack trace: #0 /homepages/0/d656222789/htdocs/clickandbuilds/RVCGilching/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(476): wfWAFStorageFile->fetchConfigData() #1 /homepages/0/d656222789/htdocs/clickandbuilds/RVCGilching/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(609): wfWAFStorageFile->getConfig(‘wafStatus’, ”) #2 /homepages/0/d656222789/htdocs/clickandbuilds/RVCGilching/wp-content/plugins/wordfence/models/firewall/wfFirewall.php(338): wfWAFStorageFile->isDisabled() #3 /homepages/0/d656222789/htdocs/clickandbuilds/RVCGilching/wp-content/plugins/wordfence/lib/menu_fire in
    /homepages/0/d656222789/htdocs/clickandbuilds/RVCGilching/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php
    on line
    539

    Thanks

    Hi,
    While reloading this page, check the server error log file, more details regarding this “500 (Internal Server Error)” should be there in that file.

    If you don’t know the location of this file on your server, I recommend getting in contact with your hosting provider regarding that, or you can edit (wp-config.php) file and replace this line:
    define('WP_DEBUG', false);
    with:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    define('WP_DEBUG_DISPLAY', false);

    Now, when you reload this page and get the same error again, you can check this file (/wp-content/debug.log) for any error messages.

    Thanks.

    P.S. Try to clear cache from your website in case you have any caching plugin installed or a plugin that has JS/CSS minify option.

    @jenga987 Please open a new support thread regarding your question as per forums rules, thanks!

    Thread Starter frohike

    (@frohike)

    Hi Wfalaa,

    You can download the server error log file (for yesterday, all day) and the WordPress debug file here (in the logs.zip file):
    Logs

    We can see several errors. I’ve cleaned and deactivated performance extensions like W3 Total Cache, same issue (this configuration works fine with my other websites).

    Thank you for you help 🙂

    Hello @frohike
    Thanks for providing the log files, you can delete them now from your server.

    Most probably there is a permission error preventing the WAF configuration files from being written to the disk, you should see that in (Wordfence > Tools > Diagnostics > Filesystem). For now, could you please delete “wflogs” directory under “wp-content”? then reload Wordfence Firewall page and the “wflogs” directory should be regenerated again.

    Let me know how it goes,
    Thanks.

    Thread Starter frohike

    (@frohike)

    Hi Wfalaa,

    After removing the wflogs folder, the Firewall seems to be working fine.
    I don’t know if this removing solved the issue, it’s only a log directory, right?

    You can see here the status, and here the filesystem diagnostic.

    So, this issue is now solved 🙂 I would be happy to have a confirmation about the solution.

    Thank you again for your precious help.

    Hi @frohike
    Yes, sounds like it has been resolved, it might be a temporary issue related to file permissions on your server.
    This folder contains all necessary configuration files for the firewall, we write the data required for the firewall on the filesystem since the firewall starts before anything else on the server (even before making connections to the database), that’s why we can’t write the firewall data in the database.

    Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Unable to activate Firewall’ is closed to new replies.