TwoWords
Forum Replies Created
-
Forum: Plugins
In reply to: Fatal Error When Activating Plugin Better WP SecurityIn 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!
Forum: Plugins
In reply to: Fatal Error When Activating Plugin Better WP SecurityThe 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!
Forum: Plugins
In reply to: Fatal Error When Activating Plugin Better WP SecurityHi,
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-cllMajor Breakdown in the Disk Space usage:
Files in home directory: 3,768.84 MB
public_html: 4,028.10 MBWp-content: 129.91 MB
– better-wp-security: 3.55 MBHope this help, any information needed?
Thank you!