Installation Issue WordPress locally – The file ‘wp-config.php’ already exists

I have the issue with installation WordPress locally on my computer, XAMPP environment. In PHPMyAdmin I created an empty database, later I will import database that I downloaded from the live server, and other files and folders also. Apache and MySql modules are started correctly and when I type localhost in my Chrome browser, I … Read more

htaccess and wordpress config files are regularly over written

I have a WordPress site (v5.2.3), and every now and again (possibly monthly) the wp-config.php and .htaccess files are over written with bad information. This results in two problems – first the DB access details in wp-config are changed to something don’t work, and then the ability to access my post-link permalinks are lost as … Read more

Get WP CLI to hide debug warnings and notices in JSON output, same setting as website

Summary: WP CLI can be used to get a JSON output of all the plugins installed on a site, but the output gets corrupted due to warnings although log levels are set to low. Problem Unfortunately, I have a site that runs an outdated plugin producing some warnings. They are not shown on the website, … Read more

Redirect one of two domains on one WordPress installation

I have to domains: mydomain.dk and mydomain.de. Both are showing the same page in danish. I have a plugin that takes care of the languages, but I need to connect the .de domain to the german ‘language layer’. How can I redirect mydomain.de to mydomain.dk/?lang=de. The mydomain.dk must stay as it is. Thanks in advance! … Read more

register_theme_directory somehow “fails” when folder is outside of WP-Folder

This is a simple skeleton for WordPress, that makes it possible to have just “themes” and “plugins” under version control: https://github.com/sourcerer-mike/WordPress-GIT-Skeleton When doing register_theme_directory(__DIR__ . ‘/themes’); with a folder that is outside of WP, the theme is shown in the backend and can be activated. But when viewing the front end the page stays blank. … Read more

No wp-config.php file on local install of wordpress – site still displays

I’ve installed WordPress locally using XAMPP and this step by step guide by Sunny Johal(Fifth post down on that page). The first time I used the step by step and ran all 3 of the SQL codes(UPDATE wp_options/wp_posts), and then deleted the wp_config file(the author of the guide suggested this as the easiest way to … Read more

Prevent WordPress updates from overriding custom language translations?

my site’s language is persian and persian is a right-to-left language. WordPress has a default installation package for this lang but for some cases like very bad translation for dashboard or default rtl style for everything (that is really annoying for theming) i installed original WordPress in English and then use a custom language file … Read more

wp-config.php being deleted

I am helping someone sort out a site, it suddenly wanted to be installed instead of showing the site itself. I found that the wp-config.php file was missing. Fortunately there was a backup and I restored the wp-config, about a week later it was deleted again. This time I extracted the backup zip file to … Read more

What should be disabled to run on an internal network with no access to the Internet?

I am setting up a site on an airgapped (no connection to the Internet) internal network. It is quite slow in loading pages. I have already added define(‘WP_HTTP_BLOCK_EXTERNAL’, true); and define(‘AUTOMATIC_UPDATER_DISABLED’, true)’ in my wp-config.php file. WordPress still appears to be trying to reach gravatar.com and fonts.googleapis.com. Is there something else that I need to … Read more