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
0answers
11 views

WP-Admin throws 404 after changing wp-config Salts

I was looking around my site's files to see, where an old version of jQuery is defined. Somewhat found the culprit, but also changed salts. After changing salts, the WP-Admin zone throws 404 now.
0
votes
1answer
13 views

Better error messages upon critical errors - HTTP Error 500

I had an error in a custom class I've made, where this was the error: private function someFunction(): void { // Returns void ... ... ... return true; // <- Returns a value, when ...
0
votes
1answer
16 views

How can I redefine WordPress wp-content directory programmatically?

How can I change the default "/wp-content/" folder name in WordPress by typing a plugin or using our theme's "functions.php" file? This is possible with the "wp-config.php&...
0
votes
0answers
9 views

how tochange url for wp-includes on s3/cloudfront url

Im building an high available and fault tolerant Wordpress enviroment on AWS and it working fine, i have my linux ami with /var/www/html mounted on efs and /var/www/html/wp-content mounted on S3 ...
1
vote
0answers
59 views

Use external database with local multisite

I am trying to connect my local wordpress multisite to my staging database. It works perfect when I am not on a multisite but with the multisite I can't find a way to change the value of the main ...
0
votes
1answer
46 views

Clone WordPress for testing on localhost (with Fiddler)

My local setup for WordPress is at http://127.0.0.3/blog. When calling https://my.domain.name/blog/wp-login.php, I get the page served; including Google CAPTCHA. But the login post to a 302 redirect ...
0
votes
0answers
37 views

Can't update WordPress with Admin Users

I can't update WordPress. I'm logged in as User Admin and see the message 'WordPress 5.5.1 is available! Please notify the site administrator.' but I am already logged in as administrator. This ...
0
votes
0answers
22 views

Wordpress Multisite determine the correct domain to be set as current/default domain when setting multisite in Local fresh installation

I am unsuccessfully trying to setup multisite with Wordpress's fresh setup(Wordpress installed in subfolder under htdocs of Localhost), but existing copy of Database already imported(provided by ...
-1
votes
2answers
137 views

Carriage Return control character (^M) found in wp-config-sample.php

On a fresh WordPress install in Linux distributions, wp-config-sample.php contains Carriage Return control characters that are not found in any other .php file in the distribution. Running egrep -l $'\...
0
votes
1answer
22 views

How to re-connect WP files in lampp/htdocs to new SQL database to recover site under development

First time here, facing a bigtime wordpress situation. My Ubuntu installation crashed beyond repair during upgrading version. Managed only to copy the wordpress files, installed in /opt/lampp/htdocs, ...
0
votes
0answers
112 views

Nginx reverse proxy on Wordpress , Login not working

I have a Wordpress site on Cpanel with litespeed on domain http://sub.domain1.com. I wanted to bring this behind a reverse proxy on https://domain2.com/sub/. here is my configuration: nginx: ...
0
votes
1answer
65 views

Problem migrating to localhost

Hey guys :) I have to following case. I was given a WP site for "fixing". The website is huge in size. It's around 3GB and the DB is around 350MB. Most of the DB size is coming from postmeta ...
1
vote
1answer
31 views

Can I delete `wp-config-sample.php` after installing and configuring Wordpress?

Can I remove wp-config-sample.php after installing and configuring Wordpress? Could this have any consequences in the future? Is this file restored after updating? At first glance, it just seems ...
0
votes
0answers
22 views

FTP Credentials asking on localhost

I am trying to install all in one wp migration plugin on my mac localhost WordPress but it ask the FTP credential but I did the changes (FS_method_direct) in wpconfig.php file when I install xampp and ...
0
votes
1answer
95 views

Set site title & tagline with wp.config or function.php

Currently I can change Site Title & Tagline in Settings >> General but someone attack and remove it. So now I want to set these via function.php or wp-config.php Any Idea?
0
votes
0answers
30 views

Plesk login inaccessible after changing site URL

I was initially facing this issue: (I am locked out of my WordPress site after changing site URL from Http to Https). I need to access wp-config to implement the given solution and was trying to ...
0
votes
0answers
18 views

Site cannot access external connection

my WordPress site cannot access external connection (e.g. cannot browse/update plugins using dashboard - manual zip install only). The site is can be access from the outside world (via domain name) ...
0
votes
0answers
15 views

Reactivating WP Multisite after deactivated

The Multisite (subdomain version) defining lines in my wp-config.php file were some how commented out. I uncommented them, but now I am unable to get to the other sites on the network (Site2). Site2,...
4
votes
5answers
9k views

Upgrading PHP version results in “Use of undefined constant WP_CONTENT_DIR” warning?

On my HostGator shared hosting with a CPanel option to set PHP per domain, if I turn on PHP 7.3 (or other 7.x versions) for my existing blog I get an error page: Warning: Use of undefined constant ...
0
votes
0answers
14 views

err_too_many_redirects wordpress if not defined siteurl in wp-config

I'm currently facing a lot of issues with my wordpress+woocommerce, php-fpm processes are using roughly the 90% of the CPU of my VPS, so i started to investigate what could be happening. I'm right now ...
0
votes
0answers
127 views

WordPress wp-config custom variables

I know how to add custom variables to the wp-config.php file; however, they're not being picked up in my theme's functions.php file. When I echo non-custom variables, they show up. When I echo custom ...
0
votes
0answers
8 views

After Wordpress migration, most files are not found and there is staging prefix

I attempted to migrate old Wordpress website to DigitalOcean. Steps: Create a new droplet using Wordpress on Ubuntu 18.04 Wordpress template Set it up. After dummy site is OK, I copied wp-content to ...
0
votes
0answers
173 views

wp-config.php not affecting my site

I just received a backup of my WP site from the developer that includes the WP files and the database .sql file. I'm trying to install it on my server, but my WP build is ignoring wp-config.php. When ...
0
votes
2answers
33 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
15 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
37 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 ...
1
vote
0answers
104 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
105 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
461 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
123 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
33 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
103 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
89 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
35 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
108 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
48 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
25 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....
1
vote
0answers
105 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
29 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 ...
1
vote
1answer
7k 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
59 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
63 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
55 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
62 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 ...
1
vote
3answers
159 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
595 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
1answer
115 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
1answer
32 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
352 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. ...

1
2 3 4 5
8