Title: Fatal Error When Activating Plugin Better WP Security
Last modified: August 21, 2016

---

# Fatal Error When Activating Plugin Better WP Security

 *  [TwoWords](https://wordpress.org/support/users/twowords/)
 * (@twowords)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-better-wp-security/)
 * 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](https://wordpress.org/support/users/twowords/)
 * (@twowords)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-better-wp-security/#post-4030674)
 * 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](https://wordpress.org/support/users/twowords/)
 * (@twowords)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-better-wp-security/#post-4030675)
 * 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](https://wordpress.org/support/users/twowords/)
 * (@twowords)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-better-wp-security/#post-4030676)
 * 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!
 *  [firefly2000](https://wordpress.org/support/users/firefly2000/)
 * (@firefly2000)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-better-wp-security/#post-4030937)
 * 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.
 *  [Alleinunterhalter](https://wordpress.org/support/users/alleinunterhalter/)
 * (@alleinunterhalter)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-better-wp-security/#post-4030944)
 * 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 ?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-better-wp-security/#post-4030945)
 * **[@alleinunterhalter](https://wordpress.org/support/users/alleinunterhalter/)**:
   As per the [Forum Welcome](http://codex.wordpress.org/Forum_Welcome#Where_To_Post),
   please post your own topic.
    [http://wordpress.org/support/plugin/better-wp-security](http://wordpress.org/support/plugin/better-wp-security)

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Fatal Error When Activating Plugin Better WP Security’ is closed to new
replies.

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 6 replies
 * 4 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-activating-plugin-better-wp-security/#post-4030945)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
