• Resolved gsownsby

    (@gsownsby)


    I’m very new to BPS and have it installed on a couple of WP sites and it seems to be working great other than this error message:

    “Your Root .htaccess file is NOT backed up either because you have not done a Backup yet, an .htaccess file did NOT already exist in your root folder or because of a file copy error. Read the “Current Backed Up .htaccess Files Status Read Me” button for more specific information.

    Your wp-admin .htaccess file is NOT backed up either because you have not done a Backup yet, an .htaccess file did NOT already exist in your /wp-admin folder or because of a file copy error. Read the “Current Backed Up .htaccess Files Status Read Me” button for more specific information”

    My websites are configured so that WP is in a subfolder off of the root level (PublicHtmL).

    I would appreciate any guidance about how to resolve this situation.

    Thank you.

    https://www.ads-software.com/plugins/bulletproof-security/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author AITpro

    (@aitpro)

    The whole backup thing in BPS is pretty dated and is now obsolete as things have changed with newer versions of BPS. To get rid of those annoying obsolete backup messages.

    1. Go to the Backup & Restore tab page.
    2. Select the Backup htaccess Files Radio button.
    3. Click the Backup Files button.

    Actually I use Backup and Restore all the time for testing things, but most folks would probably not be using Backup and Restore in that way. In any case it is still useful so what should be changed is the backup messages themselves. ??

    Thread Starter gsownsby

    (@gsownsby)

    Thank you for your super fast reply.

    Unfortunately unless I’m missing the boat..I’ve done that before but I tried it again with the same results. Did I miss something?

    See screenshot movie: https://screencast.com/t/z7sntNQD

    Thanks.

    Gary

    Plugin Author AITpro

    (@aitpro)

    Do you have a DSO or a CGI configured Server? Did you have any problems with using the AutoMagic buttons and activating BulletProof Modes. Such as having to manually change folder or file permissions?

    Thread Starter gsownsby

    (@gsownsby)

    I’m not sure I know how to answer your first question. This is a fresh install at A2hosting.com. I had no problems with the leftmost AutoMagic buttons and I did not have to manually change the folder or file permissions.

    Thank you.

    Plugin Author AITpro

    (@aitpro)

    ok just checking. when you click the Backup Files button do you see an error message or a success message or no message displayed at all?

    Does this folder exist: /wp-content/bps-backup/master-backups/

    This is the folder where BPS is trying to copy the files too.

    Plugin Author AITpro

    (@aitpro)

    Never mind on the last question. the master-backups folder exists because the other files were backed up successfully to that folder.

    go to the Security Status page and copy and paste the permissions info for this folder.

    wp-content/bps-backup/ ../wp-content/bps-backup 755 0755

    Plugin Author AITpro

    (@aitpro)

    And if you have a caching plugin then clear that plugins cache and also clear your Browser cache and refresh the Backup & Restore page.

    Thread Starter gsownsby

    (@gsownsby)

    wp-content/bps-backup/ ../wp-content/bps-backup 755 0755

    Plugin Author AITpro

    (@aitpro)

    Actually i found the problem. This check in the /bulletproof-security/includes/functions.php file at code line 633 and 634 is wrong. We made a change to the folder structure and this checking code is not looking in the correct new folder path.

    // Backup and Restore page - Backed up Root and wp-admin .htaccess file checks
    function backup_restore_checks() {
    $bp_root_back = WP_CONTENT_DIR . '/bps-backup/root.htaccess';
    $bp_wpadmin_back = WP_CONTENT_DIR . '/bps-backup/wpadmin.htaccess';

    The variables should have this folder path below. this will be corrected in the next BPS version release so you can either just ignore this check or you can add the path correction as shown below in the functions.php file.

    $bp_root_back = WP_CONTENT_DIR . '/bps-backup/master-backups/root.htaccess';
    $bp_wpadmin_back = WP_CONTENT_DIR . '/bps-backup/master-backups/wpadmin.htaccess';
    Plugin Author AITpro

    (@aitpro)

    The backup form is backing up the root and wp-admin files and putting them in the correct new folder /bps-backup/master-backups/ so just the check on the Backup & Restore page is wrong since it is still looking for the files in the old folder path.

    Thread Starter gsownsby

    (@gsownsby)

    I hardly ever use this phrase…”fantastic service”!!

    That fixed it. Everything reports “green” so all is well.

    Thank you. An impressive, thorough, and on-target response!

    Gary
    Chattanooga, TN

    Plugin Author AITpro

    (@aitpro)

    Thanks for catching and reporting this mistake and the Kudos. Much appreciated. ??

    Thread Starter gsownsby

    (@gsownsby)

    You’re welcome. Well-deserved kudos.

    Gary

    Changing those locations in the functions.php file worked like a charm for me, too. Thanks for sharing that AITpro!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘wp-admin htaccess backup’ is closed to new replies.