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

learn more… | top users | synonyms

0
votes
2answers
12 views

Site broken after using URL Change in Admin

I wanted to use the site URL change in the general settings page of the admin panel to remove the trailing /wp from my privately hosted wordpress site. After submitting these changes, I am locked out ...
1
vote
0answers
8 views

HTTP Error after finishing uploading a video that is bigger than 64 MB -> After raising the upload limit manually in the wp-config file

I use dreamhost as my webhost. Previously my wordpress upload limit was 64 MB. I asked the tech from dreamhost to boost to 400MB. He told me I had to change a setting in my wp-config.php. That's what ...
1
vote
1answer
36 views

COOKIE_DOMAIN setting confusion

I'm upgrading my website and it's using WordPress. I'm using sub-domain cdn for CDN and it needs to be cookieless. Currently my website is a multi-network of multisites (both are subdirectory ...
1
vote
1answer
17 views

Multisite Create Site not working

I've followed multiple Questions, but can't seem be to be able to find a solution. I'm looking to be able to have a local install multisite, (XAMPP), and succeeded in making multisite available. ...
0
votes
0answers
34 views

Automatically updated Wordpress to a later version but site now website giving error message: The file 'wp-config.php' already exists

Recently I upgraded wordpress to a later version automatically. I did not anticipate problems but soon after I cannot access the site nor can anyone who visits. It is now giving this error option: ...
0
votes
0answers
28 views

Can't Install WordPress (local) Failed to open file wp-includes/wp-db.php

Title kinda says it all. Trying to install WP locally and I get the following error when trying to use the wp-config.php generator UI: Warning: mysqli_real_connect(): (HY000/2002): No such file or ...
1
vote
0answers
14 views

multiple language directories

I keep wp-content and wp-config.php outside the wordpress tree and store everything in a git repository. This should make the update of the core very simple. I just need to remove the wordpress ...
0
votes
1answer
21 views

Adding Security Keys?

I read the paragraph at the codex on Security Keys. It offers the example - define( 'AUTH_KEY', 't`DK%X:>xy|e-Z(BXb/f(Ur`8#~UzUQG-^_Cs_GHs5U-&Wb?pgn^p8(2@}IcnCa|' ); define( ...
3
votes
3answers
59 views

How can I change Wordpress domain from remote to localhost?

I recently had a system crash and had to reinstall WordPress with my backup files. In the JavaScript log I began throwing errors pertaining to the domain and realized I was still using the remote ...
4
votes
2answers
51 views

Turn revisions off in plugin instead of config.php?

Is there a function to set WP_POST_REVISIONS from a plugin instead of having to do it in config.php? I was thinking of doing this: runkit_constant_redefine( 'WP_POST_REVISIONS', 0 ); but that puts ...
0
votes
6answers
1k views

Login page ERROR: Cookies are blocked due to unexpected output

I have a WordPress website that I recently discovered had this error on the login page: ERROR: Cookies are blocked due to unexpected output. For help, please see this documentation or try the ...
0
votes
2answers
26 views

Issue “Error establishing a database connection” problem.

Here's the situation. I needed to create a copy of the website online so that I could redesign it and collaborate with others to redo the content. Consequently: I copied a website (example.org) to ...
1
vote
1answer
126 views

Why am I getting ERR_NAME_NOT_RESOLVED when I add a site to my multisite installation? [closed]

About a year ago, I created a WordPress multisite installation consisting of 5 different websites. Each site is on a different domain in Production, and I'm using an external domain mapper plugin to ...
0
votes
1answer
17 views

Moved wordpress dashboard still pointing to testing server

I uploaded my wordpress site to my testing server something like this: 201.99.1.11/mysite for testing purpose and then downloaded complete root folder in my system, exported database and then uploaded ...
-1
votes
1answer
400 views

“Cannot modify header information” warning?

Problem I'm having: Warning: Cannot modify header information - headers already sent by (output started at /nfs/c06/h02/mnt/157520/domains/website/html/rpow/wp-config.php:1) in ...
0
votes
1answer
49 views

Wordpress with all of wp_content/ or uploads/ on external server?

I'm setting up an install of Wordpress on our server instances which are hosted with AWS. Of course, everything that's on our servers is in version control with git and there is no FTP so uploading ...
0
votes
0answers
76 views

Jupiter Theme Fatal Error Get Header

Please help if you can. I'm really at a loss here. I was building an add-on domain site off my primary hosting account, and like an idiot I accidentally changed Settings-> General -> Wodpress URL No ...
0
votes
2answers
67 views

Move Wordpress to subdirectory, keep ALL URLs

I currently have a website at site.com and have WordPress installed in me website's root folder. My website includes pages like: site.com site.com/page site.com/2015/10/01/post.... site.com/login ...
0
votes
1answer
9 views

Comment form Dissappeared in posts

I suddenly noticed that comments and comment form never shows up in my website's posts: Comments in page shows up. but in post there is no comment. In single.php I have the <?php ...
0
votes
1answer
59 views

Wordpress Auto Updates

I need to have auto updates on my Wordpress so I've followed the codex here. My need is to have all updates like from 4.2.2 to 4.2.3 and to 4.3 etc.. No FTP credentials are needed on my server. My ...
0
votes
2answers
97 views

Error establishing a database connection on Installation

I was working on my MacOS System with everything well configured and working. Now I try to migrate all of my work to Windows using the same software as in MacOS MAMP to run Wordpress on localhost. So ...
0
votes
0answers
46 views

Wordpress multisite. Portal template

I need some help please, it's been the whole yesterday and today being stuck with this. I had a site, in Wordpress, but then the customer asked for a multisite.... so now, I set up my wordpress with ...
0
votes
1answer
32 views

Functions to edit wp-config.php [duplicate]

I am writing a plugin in which I have to start by setting it up before using it. This means I may need to update wp-config.php I know how to edit wp-config.php directly. However the requirement is to ...
1
vote
1answer
124 views

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 ...
1
vote
1answer
202 views

Multisite with path, how to change the main site

I have a network installed on my wordpress with 4 websites domain.com --> Old website domain.com/fr --> New website in French domain.com/en --> new website in english domain.com/es --> New website ...
1
vote
2answers
276 views

how to use is_admin in wp-config.php

I am trying to choose different databases for admin and user to decrease the load on database. in wp-config.php when i am trying to use the code if(is_admin()) { define('DB_NAME', 'wp_db'); } else { ...
1
vote
0answers
197 views

How does the “authentication unique keys and salts” feature work?

I'm trying to find some information on how the authentication keys and salts work in WordPress, but unfortunately I wasn't able to find anything useful. All I got is that the keys should be random, ...
5
votes
2answers
1k views

What security concerns should I have when setting FS_METHOD to “direct” in wp-config?

I have recently had an issue where I have been unable to install the WP Smush Pro plugin because I don't have the Manual Install or One-Click Installation options available. I came across this post ...
3
votes
1answer
85 views

Garbage in beginning of wp-config.php - was this WP installation compromised?

I hadn't realized that one of my WP sites wasn't being accessed in the last months, and consequently not being updated, and today I have found that my config.php has some garbage in the beginning of ...
0
votes
1answer
860 views

Unable to change Wordpress language (Wordpress 4.2.2)

So there's a website I'm working on and I need to change language to spanish. I downloaded and uploaded proper .mo and .po files and added the following value to my wp-config file: define ('WPLANG', ...
1
vote
1answer
95 views

How to share plugin created database tables between two WordPress sites

I have two WordPress installs. One is a subdomain (Blog 2) and the other is the root domain (Blog 1). All tables are installed in same database. I am already sharing the users table, but am also ...
0
votes
0answers
13 views

WP auto-updates - no more email notification [duplicate]

I would love to block sending the notification email about new automatic update of wordpress (but I need to keep other emails working). Any ideas how to do that? I'm webmaster for more than 40 pages ...
0
votes
1answer
252 views

How to request admin-ajax.php correctly when wordpress URL and site URL are different?

When site_url() and home_url() are different, how a request should be directed to admin-ajax.php (both in front-end and admin)? Using A. admin_url('wp-admin/admin-ajax.php') or B. ...
0
votes
1answer
175 views

PressPi (Wordpress) Broken Layout

We have a Raspberry Pi running PressPi which is a wordpress server. Our goal is to setup a Captive Portal using dnsmasq where users who connect to the Pi using a USB WiFi adapter see the PressPi home ...
0
votes
0answers
18 views

Different wordpress sites in different EC2 instances but share the same users table

I wanted to host different wordpress sites in different EC2 instances. I wanted all the wordpress sites to use the same users table but posts etc will be in their own independent database. Below is ...
0
votes
1answer
46 views

Read wp-config without loading the rest of WordPress - i.e. wp-settings, etc

I'd like to read the database settings in wp-config.php. However, if I do a require("wp-config.php"); it loads up the entire WordPress environment. Is there any way to avoid this?
0
votes
0answers
164 views

Cookie Domain is preventing Admin login

I just defined a Cookie Domain in my wp-config.php: define( 'COOKIE_DOMAIN', 'http://www.example.com' ); define( 'WP_HOME', 'http://www.example.com' ); define( 'WP_SITEURL', ...
0
votes
0answers
196 views

What is the reason why $wp_plugin_paths is null

I just moved my wordpress site from another host. then all of a sudden it has been giving errors like: Warning: Invalid argument supplied for foreach() in ...
1
vote
2answers
65 views

Single Must Use Plugins Directory for local development

I have multiple local installations of WordPress and want to have a single Must Use Plugins directory for all my local sites. Is there anything I can add to wp-config for instance that will let me ...
0
votes
0answers
107 views

How to change WordPress theme file path to a remote server?

I need to host a website on one server but have either the active theme or the entire /wp-content directory on a separate server and I can seems to get it to work. I tried adding the following to ...
2
votes
1answer
650 views

Can I configure WordPress to use postfix without a plugin?

I am developing a WordPress site on a vagrant box and have installed postfix in order to test email notifications. At this guest OS (Ubuntu) level, I am able to end a test email: echo "Test mail ...
1
vote
2answers
618 views

Maximum upload size changes in php.ini ignored - How to remove upload size limit?

I'm working on a multisite WP installation and I need to import content from other Wordpress sites (.wxr files). When I use the Import WordPress plugin I got the following: The maximum allowed ...
0
votes
1answer
41 views

more than 1 database user with in wordpress using wp-config

i want to use more than 1 database user to overcome the 7500 query database limit how i can do that using wp config my server is rxrxus.ipagemysql.com I want the users have the same password thanks ...
0
votes
1answer
177 views

Why is WordPress not using $_SERVER['SERVER_NAME'] for 'WP_SITEURL' and 'WP_HOME' as default?

I came across this site and I was wondering why WordPress isn't using this as default: define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME']); define('WP_HOME', 'http://' . ...
0
votes
1answer
1k views

Cookie set without HttpOnly flag

I try to add cookie information but i have no result. The tool sends me the same information. I trying to displayed the mention HttpOnly after path parameter => "Parameter : ...
0
votes
1answer
177 views

Proper way to have multiple installs with a single database

Here's my scenario: I have a development zone with a standard WordPress installation (dev.domain.com/project). When it comes time to showing work to clients, I use version control to copy the dev ...
1
vote
0answers
185 views

Two domain for one site not working in mobile

I want to have two different domain for my site 1) Desktop and 2) Mobile. So for 1) Desktop : https://example.com 2) Mobile : https://m.example.com(Or can say https://example.com/m) To ...
0
votes
0answers
201 views

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /home/chilinbk/public_html/kam/wp-config.php on line 64 Line 64 is the last one. But I cant figure it out! Hope someone can help ...
0
votes
1answer
29 views

Constant for 'barebones' update of Wordpress

I feel slightly stupid asking this, but I could have sworn I stumbled across a constant that could be added to wp-config.php so that, when you update your Wordpress installation, it only updates ...
1
vote
1answer
581 views

Admin-Ajax.php, SSL, Non-SSL

I have a WordPress site behind a reverse proxy. The site is over http, except the wp-admin area, which is under https. We don't have BasicAuth or anything running on top of the admin area. One of our ...