rizal72
Forum Replies Created
-
Update:
version 4.0.23: issue still present.
Forum: Plugins
In reply to: [WordPress Backup to Dropbox] DropBox backup directory structureI have the EXACT same issue!
Is there a fix for it? I have the last version of the plugin and it still creates the whole wp-content folder outside my wordpress folder then another instance of it inside with just the backup log file.Thanks
Hello Gerroald!
Bad luck! 🙂 i’ve intalled the latest version today before writing the solution tweak. The issue is still present in v. 4.0.21
Thanks for replyingPS Wonderful plugin!
That is definitely NOT a solution! 🙂
Here is the solution:
in the file better-wp-security/core/class-itsec-lib.php
in the function (see the line in bold):
public static function get_module_path( $file, $with_sub = false ) {
$directory = dirname( $file );
$path_info = parse_url( get_bloginfo( ‘url’ ) );
$path = trailingslashit( ‘/’ . ltrim( str_replace( ‘\\’, ‘/’, str_replace( rtrim( ABSPATH, ‘\\\/’ ), ”, $directory ) ), ‘\\\/’ ) );
if ( $with_sub === true && isset( $path_info[‘path’] ) ) {
$path = $path_info[‘path’] . $path;
}
return $path;
}has to become:
$path_info = parse_url( get_bloginfo( ‘wpurl’ ) );in this way the plugins get the correct url to the REAL wordpress folder (this happens when someone installs wp inside a custom folder, like me).
Cheers
Same here! I had to put the redminus.png url in the whitelist…
I think this issue happens to people who have wp installation inside a folder (es. wordpress) like me. The plugin panel goes looking for that image in “/wp-content/plugins/better-wp-security/modules/free/file-change/images/redminus.png” instead of lookin for it in “/wordpress/wp-content/plugins/better-wp-security/modules/free/file-change/images/redminus.png”.
In the file “class-itsec-file-change-admin.php” I found that the variable $path is used to generate the url of that image.Cheers.