Questions tagged [wp-config]

wp-config.php is the configuration file of WordPress, one of few that is not overridden during upgrades. It is essential for running WordPress, as it contains the information needed to connect to the database

Filter by
Sorted by
Tagged with
0
votes
2answers
28 views

Multiple Address In WP-Option Value

I've tried to setup my wordpress using 1 domain name and 1 ip address, after this, all the css is missing, but the site still can be accessible using both domain and ip address. Then I tried to ...
0
votes
1answer
16 views

Changes not being reflected on new server

I'm migrating a wordpress site from one server to another. I just finished setting up NGIX, PHP, MySQL, etc... however I still haven't restored the old DB on this new server. I can see the site goes ...
0
votes
0answers
13 views

Is it possible to have many Wordpress sites running by different wp-config files?

So basically, I’m Going to have the same install Files but Replacing wp-config For each site. What should be considered to do this trick? And how could I deal with uploads directory?
0
votes
0answers
17 views

Unexpected: Wordpress redirects to the WP_HOME/WP_SITEURL value

Hello Wordpress colleagues, I'm working on existing WP instance (5.2.5) having an issue with WP_SITEURL and WP_HOME defined in wp-config.php. Expected Result: I expect WP_SITEURL and WP_HOME to ...
0
votes
0answers
54 views

WordPress wp get_temp_dir return non exiting folder, thus failing plugin & themes update

Problem: All pluging & themes updates fail on folder does not exist or unavialble (WP. 5.3.2) After research I found that in wp-admin/file.php in function: download_url the call to wp_tempnam() ...
0
votes
0answers
41 views

Download failed. cURL error 6: name lookup timed out

The problem is that I get Download failed. cURL error 6: name lookup timed out when getting a parent theme on wordpress.
0
votes
2answers
77 views

My Site keeps crashing due to the wp-confg file being deleted

The wp-config.php file keeps on getting deleted. Before this started to happen, extra characters would automatically appear in my database username and password which would take my website down, I'd ...
0
votes
0answers
54 views

Should I prevent access to .htaccess and wp-config.php files?

Someone at stackoverflow suggested I should deny access to the two files by doing below in .htaccess. <files ~ "^.*\.([Hh][Tt][Aa])"> order allow,deny deny from all satisfy all </files&...
0
votes
0answers
12 views

Wordpress Multisite Domain Mapping getting index of

I set up Wordpress Multisite Network. I set up website and I used Wordpress to map the site with a new domain. Added a A record in dns settings for mapped domain. Site works and new url is pointing to ...
0
votes
1answer
25 views

Are the wordpress settings (abspath, disable core updates) added by SiteGround of any use after I've migrated to a different host?

I had started my wordpress site with the host SiteGround. Later I moved to another host. I now see that in my wp-config.php file the following settings are present near the end of the file: /* That'...
0
votes
0answers
40 views

Can't get cookie free domain working for my WordPress page

I'm trying hard to get my cookie free domain working for my WordPress installation. I've followed a lot of tutorials but I still get no content over the new cookie free subdomain. These are my steps: ...
0
votes
2answers
33 views

Is my way to change WordPress server is correct?

I'm in the process of changing my web host. I'm wondering about the cleanest way to migrate my WordPress blog. I'm far from being a WordPress expert, I only use it to publish a few posts. Could you ...
0
votes
1answer
30 views

Need help re-connecting local WP-config file to local database

When uploading my site to the remote Bluehost server (using FileZilla), I mistakenly changed the local (rather than remote) wp-config.php file and can no longer log into my localhost /wp-admin. I ...
0
votes
0answers
38 views

Getting file errors in a Wordpress Multisite ADMIN

This is for a multisite that has 3 levels of organization: main site - regions (subsites) and locations (sub-subsites). So you would be able to visit and administrate these urls: domain.com --> main ...
0
votes
0answers
22 views

the temporary save folder is wrong

when i try to upload image or add plugin to my wordpress website i get this errer the temporary save folder is wrong i try to fix this by creating temp folder in wp-content and fixing wp-config....
0
votes
0answers
47 views

Force SSL using FORCE_SSL_ADMIN

I followed this advice from the official docs to force SSL: define('FORCE_SSL_ADMIN', true); if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS']='on'; Wordpress runs ...
1
vote
1answer
23 views

Why edits to wp-config.php must come before “That's all” comment

Every time I read about making changes to wp-config.php, the advice given is to make changes before this line: /* That's all, stop editing! Happy publishing. */ Why? What is special about that ...
0
votes
0answers
20 views

Two installations same DB

I have two wordpress installations using the same DB All files and directories in wordpress B is symlinked from wordpress A except the wp-config.php which is a regular file. In nginx, I added the ...
1
vote
1answer
462 views

Fatal error: Allowed memory size of 41943040 bytes exhausted (tried to allocate 20480 bytes)

I have made wordpress pages on divi builder on m localhost and they were working fine without any problem but when i installed divi on my online website its giving me the error Fatal error: Allowed ...
0
votes
0answers
25 views

Domain not redirected correctly with Wordpress Multisite

My Wordpress multisite installation uses two sites: Site 1: www.myexample.com Site 2: blog.myexample.com In addition, I own a second domain myexample2.com, which I would like to redirect to the ...
0
votes
1answer
26 views

Disable globally “Crop thumbnail to exact dimensions (normally thumbnails are proportional)” with Multisite

I would like to disable the "Crop thumbnail to exact dimensions (normally thumbnails are proportional)" function for all blogs in my WordPress Multisite setup. This function is available in Dashboard,...
2
votes
2answers
50 views

Best practice differences in DB options and wp-config between live, staging and local WordPress environments?

I've been using staging sites for years. So I'm not asking about the necessary difference to setup a working staging site such as search replacing URLs, dev version control branches, changing table ...
2
votes
1answer
37 views

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 ...
0
votes
0answers
18 views

Git post-receive hook overwriting wp-config

I'm new to thi workflow, so excuse this if it's a dumb question. I set up a post-receive hook for my wordpress website. It's a great way to make deployments - although it overwrites the wp-config.php ...
0
votes
2answers
79 views

plugings request url is the old url

I have changed my WordPress site url in wp-config.php by adding this two lines: define( 'WP_HOME', 'http:// $new url' ); define( 'WP_SITEURL', 'http:// $new url' ); almost everything working fine, ...
0
votes
1answer
216 views

What is the purpose of WP_CONTENT_URL?

While trying to move the wp-content to new folder, there is constant called WP_CONTENT_URL. Why do we need this one? Does WP_CONTENT_DIR and WP_CONTENT_URL needs to be same? Bcoz there are several ...
0
votes
0answers
91 views

wp-config.php keeps being reset to default

A few months ago, I migrated a wordpress website from a Unix instance to a Windows Server running ISS. The migration was pretty rocky but it ended up working fine. About a week after the migration, I ...
0
votes
1answer
65 views

local wordpress multisite not working on AWS development server “error establishing database connection”

I have a composer WP starter installation on my local mac using mamp. It works as expected. I'm using phpdotenv to hide my wp-config.php settings and I have the wordpress directory moved into a sub-...
0
votes
0answers
21 views

Identifying DB_HOST location

The wp-config.php file lists DB_HOST as $_SERVER['DB_HOST'] -- how can I determine where $_SERVER['DB_HOST'] points? I must not be stumbling on the proper way to phrase this question, as I've ...
0
votes
1answer
26 views

Change of “home” results in timeouts (only on index.php)

So this question is probably a result of me not completely understanding the inner workings of Wordpress - especially the home variable. So here is what I did, and after that I will ask my question. ...
0
votes
2answers
144 views

FTP + Unable to locate WordPress content directory (wp-content)

When I try to upload a theme in my Wordpress website I need to fill in FTP credentials. I've installed vsftpd on my Ubuntu 18.04 server. When I connect with the credentials in my FTP client (ex. ...
3
votes
2answers
342 views

Safe to store SMTP password in wp-config.php?

I am using SMTP to send email through WordPress, however this requires using plain text password. What if this password is stored in wp-config.php? Very similar to this. Why this topic differs from ...
0
votes
1answer
108 views

Define option outside wp-config.php (on WordPress.com)

Using the PODS plugin. I need to add nested shortcode support which normally would be in the wp-config.php, but wordpress.com does not allow editing the core WordPress files. The change is: define('...
0
votes
0answers
27 views

wp-config.php randomly will reset to wp-config-sample.php

It seems every few months my wp-config.php is being overwritten to the wp-config-sample.php. Nothing else is corrupted or changed, just that. It started to do this early 2019. The host is Inmotion. I ...
1
vote
1answer
32 views

When clicking on “home” page from any other page, it goes to IP address and my website doesn’t load

I recently set up my WordPress website and just noticed that if I click the home page from any other page, it points to the IP of my instance and the website won’t load. I have checked the URL(s) from ...
1
vote
2answers
31 views

WordPress - Promoting A Dev Build In A Subdirectory To Production / Root Directory

I recently took over a WordPress site with the following directory structure inside of /public_html: wp_config.php /wp-admin /wp-content /wp-includes ... ... ... /development The root (production) ...
0
votes
0answers
82 views

Doesn’t call user information to include “wp-load.php” in an external php file

Doesn't call user information to include "wp-load.php" in an external php file. <?php require_once( dirname( dirname( __ FILE __ ) ) . '/wp-load.php' ); global $wpdb, $user_ID; echo $user_ID; // ...
0
votes
0answers
15 views

editor option not available in dashboard

The editor option not showing up in the dashboard. I tried to set to false the statement define('DISALLOW_FILE_EDIT', true); But there is not any statement like this in wp-config file. What to do?
0
votes
0answers
28 views

How to have differents sites share the same tables of DB?

I want to have multiple versions of my site that share the same database. I'm wondering if this is as simple as just cloning the site and then in the wp-config having them all use the same database? ...
1
vote
1answer
473 views

Fix 403 error on WordPress multisite network using subdomains

I've a WordPress installation that I've transformed into a multisite network. I'm using cPanel and I've followed all the instructions to configure the WordPress installation. I've set up the ...
1
vote
1answer
95 views

WP install in sub-dir white screen

My WP moved from localhost to online, and now it shows a blank page (wp-admin is working normally). This is the structure: sub.domain.nl/dir1/dir2/WP-install Something must me off with the ...
0
votes
2answers
43 views

White screen of death on admin pages after moving wp-config up two levels for security

I moved the wp-config to the hosting root and put it in a new directory and then I included it from the WordPress directory like so: include("../../my-fast-cars/fast-cars.php"); this gave me white ...
1
vote
1answer
23 views

How to change how long items are kept in the trash?

When the trash feature is enabled, the deleted posts are moved to trash and stored there for 30 days. And there is a schedule/wp_cron event that is responsible for removing these posts permanently ...
0
votes
0answers
293 views

WP_SITEURL vs WP_HOME link output

When WP_SITEURL and WP_HOME are set to different values - for example https://example.com/wordpress and https://example.com - the output links are inconsistent. Thus, a permalink output will be ...
0
votes
1answer
716 views

How to change WordPress theme outside of admin? Can't access dashboard

I have extracted my theme via File Manager but it somehow crashed. I activated the theme and now I can not access my admin at /my-web/wp-admin/. Is there another way to change my theme since I cannot ...
0
votes
1answer
48 views

What can an attacker do if he has access to my wp-config file?

Can he do anything besides read database connection which is localhost and not accessible via remote host ?
0
votes
1answer
36 views

where should I write constants in wordpress?

I have to define a constants to use all over the entire project(i.e: single.php, category.php, my-template.php). Suppose I define a array constant to declare a list of browser name. i.e: array('...
0
votes
1answer
125 views

Disable theme WooCommerce template [closed]

Just purchased a premium WooCommerce-read theme. Unfortunately, this theme comes with a /woocommerce folder. How can I disable this templates,without deleting whole folder?
0
votes
1answer
665 views

How to fix wp-login.php gives error 500 after migration?

I have migrated a word press site to a self hosted linux server. My front page and all other pages load however images are still pointing to my old server. My wp-login.php page also gives an error 500....
0
votes
1answer
2k views

how to encyrpt DB_PASSWORD in wp-config

Recently moved my wordpress site to another hosting provider and after importing my database I had issues establishing a database connection. I edited wp-config file and entered my DB_PASSWORD to re-...

1
2 3 4 5
8