Cannot redeclare bpsPro_AP_Check()

Home Forums BulletProof Security Pro Cannot redeclare bpsPro_AP_Check()

  • This topic has 7 replies, 3 voices, and was last updated 2 weeks ago by UPR.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #41568
    Andy
    Participant

    Hello,

    The PHP Error log continuously gives the error shown below. What is the cause and what action do we need to take to resolve this?

    Andy

    [05-Mar-2022 17:21:48 UTC] PHP Fatal error: Cannot redeclare bpsPro_AP_Check() (previously declared in /home/mycbcc5/public_html/wp-content/plugins/bulletproof-security/includes/functions.php:43) in /home/mycbcc5/public_html/wp-content/plugins/bulletproof-security/includes/functions.php on line 53
    #41569
    AITpro Admin
    Keymaster

    This php error is always caused by another plugin that you have installed.  You can disregard the php error since it is not correct/valid.  The good news is that I have changed this function in BPS Pro 16.4 in a way that other plugins can no longer cause this problem.  BPS Pro 16.4 will be released sometime tomorrow.

    #41570
    Andy
    Participant

    Hello again,

    I received the automated reply above, asking me “To confirm or eliminate that BPS or BPS Pro is blocking something in another Plugin or Theme click the appropriate troubleshooting link below”. When I click the link, there are not specific instructions on how to confirm or eliminate what BPS Pro is blocking. Can you provide more specific instructions on what actions I need to take?

    Andy

    #41571
    AITpro Admin
    Keymaster

    You don’t need to do anything for this problem. The problem has been fixed in BPS Pro 16.4, which will be released tomorrow.

    #41578
    AITpro Admin
    Keymaster

    BPS Pro 16.4 was released 1.5 hours ago.  Please upgrade to BPS Pro 16.4 and let me know if the php error is no longer occurring.

    #44894
    UPR
    Participant

    It seems this error resurfaced in version 17.4?

    [03-Apr-2025 01:32:24 UTC] PHP Fatal error: Cannot redeclare bpsPro_AP_Check() (previously declared in /home/…/domains/…/public_html/wp-content/plugins/bulletproof-security/includes/functions.php:44) in /home/…/domains/…/public_html/wp-content/plugins/bulletproof-security/includes/functions.php on line 44

    Any suggestions or ignore?
    Many thanks!
    Sash

    #44895
    AITpro Admin
    Keymaster

    Try clearing plugin cache and browser cache. If that does not work then this error could be caused by another plugin or server-side cache. Do you have the WP Edit plugin installed?  See this forum topic for help information:  https://forum.ait-pro.com/forums/topic/php-fatal-error-cannot-redeclare-bpspro_ap_check/page/4/#post-25456 Another possibility could be this issue > https://wordpress.org/support/topic/wordpress-4-7-fatal-error-cannot-redeclare-get_paged_template/

    #44896
    UPR
    Participant

    No WP-Edit and opCache not active as far as I can see. Using WP-Rocket though.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.