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

1
vote
1answer
38 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
16 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
107 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
69 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, ...
4
votes
1answer
83 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
74 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
564 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
37 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
90 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
0answers
58 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
16 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
26 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
60 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
141 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
51 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
71 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 ...
1
vote
1answer
230 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
319 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
31 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
95 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
609 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
91 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
119 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
142 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
0answers
53 views

Problems after changing URL from my-site.net/blog to my-site.net

After I changed site url (in general settings) to http://www.my-site.net I can't access my wp dashboard and my site is loaded very slow and only HTML elements are loaded First thing that I did was ...
0
votes
1answer
26 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 ...
0
votes
1answer
365 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 ...
0
votes
1answer
39 views

How to display error on specific template?

I know in wp-config.php editing this line: define('WP_DEBUG', true); - on display error define('WP_DEBUG', false); - off display error I just want only display error in specific template or page.
0
votes
1answer
415 views

multisite 404 error for subdirectory

I am attempting to create a multisite as a subdirectory and I have followed the network instructions to the 'T'. The multisite seems to be set up correctly, the .htaccess and wp-config.php files seem ...
0
votes
1answer
1k views

Site Redirecting to wp-signup.php

I migrated content from our production server to our dev server in an attempt to sync all environments. I used the All-In-One WP Migration plugin. Now, when I access dev.domain.com I am forwarded to ...
0
votes
4answers
4k views

Missing a temporary folder despite settings in wp-config.php

When trying to upload media to my Wordpress 4.0 running on a shared Apache 2.2.14, PHP 5.3.2 host, I get the error message "Missing a temporary folder". I have no influence over the php.ini which is ...
1
vote
1answer
304 views

Enable Full SSL for Wordpress

I've enabled SSL for my main domain but i want to enable it fully for my wordpress website which is located in a subfolder. when i say fully i mean in admin area and the website itself and without any ...
-1
votes
2answers
926 views

Why would changing ports from 80 to 8080 cause wordpress to act unexpectedly?

I am trying to setup Varnish, which requires Apache to listen on another port that's not 80, so I chose 8080. However, Wordpress is working very unexpectedly. The index page shows, but it's broken, ...
0
votes
0answers
119 views

Wordpress GZip, Concatenation, Compression

I appreciate that I can define each of the following in wp-config.php and that each has its own merits, but is there any sense in defining all to work together? Compress CSS Compress Scripts ...
0
votes
1answer
1k views

How To Make Connection To WordPress Data Base In A Plugin?

I am learning Plugins and I am trying to connect WordPress database wp-config.php in my Plugin PHP code. Currently for checking my code, I used the below connection and it is working fine. Now I ...
0
votes
2answers
52 views

wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file

I made a plugin and trying to install on wordpress.org but Wordpress is giving me error message that ## Calling core loading files directly is incorrect. I am using a cron file in my plugin.This cron ...
0
votes
1answer
769 views

get_option() will not work without access to wp-config.php

I've created a plugin. In the initialisation file of my plugin I created an options page with some options to be stored by the admin. <form method="post" action="options.php"> <?php ...
1
vote
1answer
448 views

Is it possible to override the ABSPATH constant

In 4.0 wp-config-sample.php contains /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); but ABSPATH is defined in ...
0
votes
0answers
69 views

Move local build from localhost to localhost.com to support subdomains

I created a local WordPress Multisite installation using MAMP, which I've been accessing via http://localhost/. After 2 weeks of development work, I found out I need to add a blog subdomain ...
1
vote
1answer
81 views

Which built-in Wordpress files are safe to edit?

I begin to work with Wordpress, I'm developing a theme with many functionnalities into it, and I'm good with that. My question does not have to do with theme development, but more with general ...
10
votes
3answers
3k views

What could a hacker do with my wp-config.php

I am trying to secure my wordpress blog. I read some posts on the web that I should change my table_prefix and hide my wp-config.php. However, I do not get it? What could an attacker do with my ...
-3
votes
1answer
564 views

Best way to include wp-config.php

I was wondering what way is the best to include wp-config.php into a plugin. I have read about relative paths that can fail if the plugin files are situated somewhere else.
1
vote
1answer
995 views

html lang=“” instead of lang=“en-us” - why?

In a few installations of wordpress, the beginning of the html tag looks like <html lang="en-US" ... despite that in wp-config no language is specified. define('WPLANG', ''); Hovever, in one ...
0
votes
1answer
70 views

How do I set up Debugging?

In my wp-config.php, I have: // Enable WP_DEBUG mode define('WP_DEBUG', true); // Enable Debug logging to the /wp-content/debug.log file define('WP_DEBUG_LOG', true); // Disable display of errors ...
0
votes
0answers
684 views

Notice: Constant WP_POST_REVISIONS already defined

I made a local clone of a website that's running LIVE in order to safely work offline for a while. On every page of the local version I get a HUGE warning which says Notice: Constant ...
2
votes
1answer
105 views

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

How turn on error reporting without reset?

How would I turn on error reporting without resetting the theme? I ask hostgator to help, now my subsite urls are broken.
0
votes
1answer
159 views

Wordpress installed on a Sub-directory

I've already read this and followed the steps, however I can't get it work yet. My Wordpress URL: http://mydomain.com/web (this is where it's installed) My Site URL: http://mydomain.com I've ...
0
votes
0answers
155 views

Question about file path for include/require methods

So I am currently rather new to Wordpress development and I had a question about the file path for the include() and require() methods. I have a php script within my Wordpress installation that I ...