Troubleshooting and Maintenance Flashcards

1
Q

Q: What is the first step in troubleshooting a WordPress issue?

A

A: Identify and isolate the problem by replicating the issue and noting when and where it occurs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Q: Why is it important to use a staging environment for troubleshooting?

A

A: To test changes and fixes without affecting the live site.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Q: What is WP_DEBUG, and how do you enable it?

A

A: WP_DEBUG is a constant in WordPress that displays error messages for debugging. Enable it by adding define(‘WP_DEBUG’, true); to wp-config.php.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Q: How can browser developer tools help in troubleshooting?

A

A: They allow you to inspect code, monitor network requests, and identify errors in the console.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Q: What causes the “Error Establishing a Database Connection”?

A

A: Incorrect database credentials in wp-config.php, database server issues, or a corrupt database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Q: How do you resolve the “White Screen of Death” in WordPress?

A

A: Check for PHP errors, increase memory limits, disable plugins, or switch to the default theme.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Q: What causes the “404 Error” for posts or pages?

A

A: Incorrect permalink settings or missing .htaccess rules.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Q: What does the “500 Internal Server Error” indicate?

A

A: A server-side error caused by corrupt files, plugin conflicts, or server misconfigurations.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Q: How do you troubleshoot plugin conflicts in WordPress?

A

A: Deactivate all plugins, then reactivate them one by one to identify the problematic plugin.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Q: What is the best way to test theme-related issues?

A

A: Switch to a default theme (e.g., Twenty Twenty-Three) and check if the issue persists.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Q: What is the impact of using outdated plugins or themes?

A

A: They can introduce security vulnerabilities, compatibility issues, and performance problems.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Q: How can you resolve plugin installation or update errors?

A

A: Ensure file permissions are correct, clear the cache, and check the server’s PHP version.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Q: What tools can you use to analyze a slow WordPress site?

A

A: Google PageSpeed Insights, GTmetrix, and Pingdom Tools.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Q: What is the most common cause of high server resource usage in WordPress?

A

A: Heavy plugins, unoptimized images, or excessive database queries.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Q: How do you fix high CPU usage caused by WordPress?

A

A: Optimize queries, use caching plugins, and minimize external requests (e.g., API calls).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Q: What is a cron job, and how can it affect performance?

A

A: A cron job schedules tasks in WordPress; excessive or failing tasks can slow down the site.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Q: Why are regular backups important for WordPress maintenance?

A

A: To ensure data recovery in case of site crashes, hacks, or accidental deletions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Q: How can you restore a WordPress site from a backup?

A

A: Use your backup plugin or hosting control panel to restore files and the database.

19
Q

Q: What is a manual WordPress backup?

A

A: Downloading the entire wp-content folder and exporting the database via phpMyAdmin.

20
Q

Q: What is the difference between incremental and full backups?

A

A: Incremental backups save only changes since the last backup, while full backups save the entire site.

21
Q

Q: What is the first step if your WordPress site is hacked?

A

A: Take the site offline to prevent further damage and assess the extent of the breach.

22
Q

Q: How do you remove malware from a WordPress site?

A

A: Scan the site with a security plugin (e.g., Wordfence, Sucuri), remove infected files, and replace core WordPress files.

23
Q

Q: What is a backdoor in WordPress, and how do you detect it?

A

A: A backdoor is malicious code that allows unauthorized access. Detect it by scanning for unusual files or code.

24
Q

Q: How can you recover from a DDoS attack on your WordPress site?

A

A: Use a Web Application Firewall (WAF), enable rate limiting, and implement a CDN like Cloudflare.

25
Q

Q: Why is database optimization important for WordPress?

A

A: It improves site performance by removing unnecessary data like revisions, spam comments, and transient options.

26
Q

Q: How do you optimize the WordPress database?

A

A: Use plugins like WP-Optimize or run SQL queries via phpMyAdmin.

27
Q

Q: What is the role of the wp_options table in WordPress?

A

A: It stores site settings, plugin data, and transient options.

28
Q

Q: How do you repair a corrupt WordPress database?

A

A: Add define(‘WP_ALLOW_REPAIR’, true); to wp-config.php and access the database repair tool.

29
Q

Q: What precautions should you take before updating WordPress core?

A

A: Backup the site, check plugin/theme compatibility, and test updates in a staging environment.

30
Q

Q: What are the risks of not updating WordPress?

A

A: Security vulnerabilities, compatibility issues, and missing out on new features.

31
Q

Q: How do you safely update plugins and themes?

A

A: Update one at a time, check the changelog, and test after each update.

32
Q

Q: What should you do if an update breaks your site?

A

A: Restore the backup, identify the issue, and roll back the update if necessary.

33
Q

Q: What are routine WordPress maintenance tasks?

A

A: Update plugins/themes, optimize the database, review security logs, and test site performance.

34
Q

Q: How often should you audit your WordPress site?

A

A: At least once a quarter or more frequently for high-traffic sites.

35
Q

Q: What is the purpose of uptime monitoring?

A

A: To alert you when your site goes offline and help identify server issues.

36
Q

Q: Why is it important to review your hosting resources periodically?

A

A: To ensure your server can handle traffic growth and avoid performance bottlenecks.

37
Q

Q: What is the Query Monitor plugin?

A

A: A tool to debug database queries, PHP errors, and performance issues.

38
Q

Q: How does the Health Check plugin help with troubleshooting?

A

A: It provides insights into site health, identifies common issues, and enables safe mode for testing.

39
Q

Q: What is the purpose of the WordPress Site Health tool?

A

A: To evaluate your site’s performance, security, and configuration.

40
Q

Q: How do you enable logging for WordPress errors?

A

A: Add define(‘WP_DEBUG_LOG’, true); to wp-config.php, and logs will be saved in the wp-content/debug.log file.

41
Q

Q: How do you troubleshoot a WordPress memory limit issue?

A

A: Increase the memory limit by adding define(‘WP_MEMORY_LIMIT’, ‘256M’); to wp-config.php.

42
Q

Q: What is the purpose of the .htaccess file in troubleshooting?

A

A: It handles permalinks, redirects, and security rules that may cause errors.

43
Q

Q: How can you troubleshoot email delivery issues in WordPress?

A

A: Use an SMTP plugin like WP Mail SMTP to configure proper email sending.

44
Q

Q: What is the purpose of rolling back a plugin or theme?

A

A: To revert to a previous version that was stable and compatible with your site.