Support » Plugin: All In One WP Security & Firewall » Fatal error: Call to undefined function is_bbpress()

  • Resolved zabadac


    I would appreciate some help with this.

    This clash happens with the Avada theme, when the WP All In One Security plugin is activated, using a custom URL for login, but the issue does not arise when the plugin is deactivated.

    When visiting the / this error message is displayed.

    Fatal error: Call to undefined function is_bbpress() in /var/sites/s/ on line 136

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor mbrsolution


    Hi, did you install the latest version 4.0.7? This issue is fixed in the latest version. You can read the fix added in 4.0.7 below.

    Added a new action hook “aiopws_before_set_404” which triggers just before the AIOWPS sets a 404. (handy for cases when rename login page is used which affects some themes when accessing “wp-admin” directly)

    Thank you for your reply.

    I did the update to 4.0.7 via the WordPress admin backend, plugin updates.

    I have re-tested, and the error occurs for:


    The does does not occur for:


    Plugin Contributor mbrsolution


    Thank you for sharing your findings. The plugin developers will investigate further your issue.

    Kind regards

    You are welcome, I appreciate the support and trust you can find a solution.

    Kindest regards

    Plugin Author wpsolutions


    The main source of this issue in my opinion is that some themes try to do some admin-specific processing based on whether they see “wp-admin” in the URL.

    The theme assumes that someone is performing an admin type page load and it then tries to use functions/classes which would ordinarily be available in such scenarios, but in this case they are not because “wp-admin” does not exist since we are hiding it.
    I think this is more a case of incorrect theme design rather than an issue with the rename login feature.

    My recommended solution/suggestion is:
    1) Open your theme’s functions.php file

    2) add the following code:

    function redirect_admin_attempts(){
    	wp_redirect( home_url().'/not-found' );

    With the above code, we are basically using the newly added hook which was introduced in the current aiowps release to force the theme to redirect people to a page which does not exist and hence creating a 404 event in the process.
    My investigations have shown that the above is currently the best way to handle the problem you are seeing.
    NOTE 1: you can put whatever you like for the string “not-found” as long as it is a slug which doesn’t exist on your site

    NOTE 2: if you don;t wan’t a 404 event generated, simply remove the following portion of the above code:
    Users will then simply be redirected to your home page when they try to directly reach wp-admin.

    Try the above and let me know how it goes.

    Thankfully I had installed an Avada child theme, so doing this in the child theme’s functions.php file presents no problems with theme upgrades.

    This worked very well, thank you, I really appreciate the help.

    Problem solved.


    I have the same problem with the Divi theme (Elegant Themes). The Divi theme is updated pretty often. I could make a child theme, copy the functions.php and add the extra code, but what happens when the original Divi functions.php is changed by the theme maker?
    Is there another solution?

    Kind regards,


    @tsfkar: This is not your topic & has been resolved by the OP. If you require assistance then, as per the Forum Welcome, please post your own topic.

    Plugin Contributor chesio


    Hi Ruud,

    You don’t have to copy functions.php file from parent theme. In fact, by doing so you can break your site.

    Please, read an article about Child Themes in Codex – it explains the basics of child theme creation.


    @zabadac: sorry, point taken!
    @chesio: thank you!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal error: Call to undefined function is_bbpress()’ is closed to new replies.