• I am working on shopping cart for my client, and he accidentally removed the Better WP Security plugin in his WP site, I am new to WP, so was here to get help in this issue.

    Both of us tried to install and activate the plugin, but both got the same error:

    Plugin could not be activated because it triggered a fatal error.

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 111 bytes) in /home/my client panel/public_html/wp-content/plugins/better-wp-security/inc/filecheck.php on line 500

    Hope get any solution here to resolve our problem.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter TwoWords

    (@twowords)

    Hi,
    More information about disk space:

    Disk space usage: 9,733.85
    MySQL Disk Space: 16.96 MB
    PHP version: 5.3.26
    MySQL version: 5.5.32-cll

    Major Breakdown in the Disk Space usage:
    Files in home directory: 3,768.84 MB
    public_html: 4,028.10 MB

    Wp-content: 129.91 MB
    – better-wp-security: 3.55 MB

    Hope this help, any information needed?
    Thank you!

    Thread Starter TwoWords

    (@twowords)

    The codes of the error found in line 500: $data = array_merge( $data, $this->scanfiles( $relname . ‘/’ ) );

    The whole section:
    function scanfiles( $path = ” ) {
    global $bwpsoptions;
    $tz = get_option( ‘gmt_offset’ ) * 60 * 60;
    $data = array();
    if ( $dirHandle = @opendir( ABSPATH . $path ) ) { //get the directory
    while ( ( $item = readdir( $dirHandle ) ) !== false ) { // loop through dirs
    if ( $item != ‘.’ && $item != ‘..’ ) { //don’t scan parent/etc
    $relname = $path . $item;
    $absname = ABSPATH . $relname;
    if ( $this->checkFile( $relname ) == true ) { //make sure the user wants this file scanned
    if ( is_dir( $absname ) && filetype( $absname ) == ‘dir’ ) { //if directory scan it
    $data = array_merge( $data, $this->scanfiles( $relname . ‘/’ ) );
    } else { //is file so add to array
    $data[$relname] = array();
    $data[$relname][‘mod_date’] = @filemtime( $absname ) + $tz;
    $data[$relname][‘hash’] = @md5_file( $absname );
    }
    }
    }
    }
    @closedir( $dirHandle ); //close the directory we’re working with
    }
    return $data; // return the files we found in this dir
    }

    Thanks!

    Thread Starter TwoWords

    (@twowords)

    In the wp admin, if I go to edit plug-in of the better-wp-security, there is a line said “require_once( plugin_dir_path( __FILE__ )”:

    //Require common Bit51 library
    require_once( plugin_dir_path( __FILE__ ) . ‘lib/bit51/bit51.php’ );

    Do I need to add a file name in the bracket to replace the __FILE__ sign?
    Also further scroll down, there are some these signs.

    Thanks!

    The same thing just happened to me, except that it happened after I installed it and customized some of the settings. Also, when I try to delete it, I just get a blank page back! I’m going to approach the developer about this; will post again if I learn anything.

    I have the same Problem with my Blog. Sorry but i cant install ( AKTIVATE ) the Plugin for my Alleinunterhalter Nrw ( Entertainer West germany ) Webseite.
    what should i do ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal Error When Activating Plugin Better WP Security’ is closed to new replies.