Acunetix WP Security
Backup Not Working (1 post)

  1. Chris
    Posted 3 years ago #


    I encountered two problems with this plugin when trying to backup the database. I was able to resolve the first myself, so here is my solution:

    Problem: Plugin couldn't find wp-config.php because it was placed in a directory above the WordPress installation.


    In/wp-content/plugins/wp-security-scan/inc/admin/db.php, change this:

    $wsd_wpConfigFile = ABSPATH.'wp-config.php';

    to this:

    if ( file_exists( ABSPATH . 'wp-config.php') ) {
    		$wsd_wpConfigFile = ABSPATH.'wp-config.php';
    	} elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-settings.php' ) ) {
    	/** The config file resides one level above ABSPATH but is not part of another install */
    	$wsd_wpConfigFile = dirname(ABSPATH) . '/wp-config.php';

    The second problem is as follows.

    Problem: Posting the database backup form doesn't backup the database. The "Database Backup Files" box disappears, nothing takes its place, and there is no database file in the /backups/ folder.

    I would appreciate any help toward reaching a solution. Thanks!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Acunetix WP Security
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.