wp-media / wp-media/backwpup

[BackWPUp Pro] wp-config.php appears twice if "Use one folder above as WordPress install folder" is chosen

Open
#115 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
95
Forks
46
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

wp-config.php appears twice if you choose the options

  • backup wp-config.php, robots.txt, nginx.conf, .htaccess, .htpasswd, favicon.ico, and Web.config from root if it is not included in backup. (default)
  • Use one folder above as WordPress install folder!

To Reproduce

Steps to reproduce the behavior:

  1. Go to "Files" in "Add a new job"
  2. Click on '.Use one folder above as WordPress install folder!'
  3. Open the zip file and check wp-config.php appears twice, once in the top folder and once in the public_html folder (or equivalent like htdocs)

Expected behavior

Since wp-config,php is already included, it shouldn't appear twice.

System

  • Linux (server), Windows (personal computer)
  • Version 4.19.150-76.ELK.el6.x86_64, Windows 10, respectively.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Files section of “Add a new job” and reproduce the backup with both listed options enabled. Inspect the generated ZIP and trace how wp-config.php is selected for the top folder and the WordPress install folder. Done means the archive contains wp-config.php only once while the other root files remain correctly handled.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.