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
522 views

Wordpress multisite subdirectory redirect infinite loop issue

Any time I create a new site on my multisite install, I get an infinite loop redirect when navigating to that site's admin. I'm using the default htaccess supplied by WP for my subdirectory install. ...
4
votes
1answer
324 views

Add additional Network constants to wp-config.php dynamically

When starting with a fresh Network install, the first step is a single site install that has one additional line in the wp-config.php file: define( 'WP_ALLOW_MULTISITE', true ); After that we have ...
0
votes
4answers
476 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 ...
2
votes
2answers
13k views

Connect to database using wordpress wp-config file

How can I connect to the database using the wp-config.php file ? I'm trying to make a script more Wordpress friendly, and I need to connect to the database, but without installing the script as a ...
0
votes
1answer
41 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
20 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
2k views

Error establishing a database connection when installing multiple sites locally

Initially I was using MAMP and had only 1 wordpress site running locally on my Mac. I've set: document root to: documents/mywebsites/mysite1 In phpMyAdmin I created a DB called: mysite1 wp-config ...
0
votes
0answers
44 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 ...
1
vote
3answers
2k views

Character encoding issue after changing servers

I recently moved my WordPress-based site from DreamHost VPS to a Linode VPS running Debian + LEMP. After getting the site up again, I noticed many erroneous characters in posts; characters like " and ...
0
votes
1answer
78 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
0answers
49 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 ...
0
votes
2answers
93 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
28 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
106 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
34 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
192 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
44 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
31 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
75 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
2k 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 ...
2
votes
1answer
63 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 ...
-3
votes
1answer
139 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.
0
votes
1answer
49 views

FTPS Uploads - wp-content cannot be found

i've arranged my new Server and i use proFTPD with TLS Support. Now, WordPress can't upgrade or install plugins anymore. I get the following message: The directory "wp-content" cannot be found This ...
1
vote
1answer
161 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
51 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 ...
1
vote
1answer
982 views

Error uploading files bigger than 58 MB

For uploading files bigger than 58meg I get HTTP error. or IO error when using media uploader or 500 Internal Server Error when using browser uploader in WordPress v3.5.1 Multisite . It seems to get ...
0
votes
0answers
185 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 ...
0
votes
2answers
128 views

Multisite subdirectory blogs missing slash

New WordPress 3.5.2 multisite (subdirectory) install is missing a slash when creating new blogs. WordPress is installed to server like: blogs.domain.com When a new user registers, the ...
10
votes
3answers
2k views

Define WP_DEBUG conditionally / for admins only / log errors (append query arg for all links?)

I'm developing a site on a server that the client has access to as well and what I'd like to do is show WP_DEBUG only for administrators. Referencing Yoast's article on a way around this: if ( ...
0
votes
0answers
39 views

Multiple Installs using the same database AND tables

I've been looking for a solution to this problem for actually a few months. Before I get started I would like to inform that I have NO INTEREST in using wordpresses multisite. Here is the issue for ...
0
votes
2answers
17 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.
1
vote
1answer
112 views

How to Better Control WordPress Cron Jobs?

I have a bunch of standalone WordPress sites, and WordPress Multisite Network of Sites on my server. There are times where there are too many sites all running cron jobs too soon in proximity. I am ...
1
vote
1answer
292 views

Accessing two databases

I have two databases on my server, and wanted to know is there a way to access both databases from wordpress? My thought is adding the second set of credentials to the wp-config.php.
0
votes
0answers
34 views

Can wp-config be on another place and shows the fake path of itself?

My website hasn't any problems yet, but after editing wp-config file using a file manager plugin, it doesn't even shown and displays the below error: Parse error: syntax error, unexpected ...
0
votes
1answer
69 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
68 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 ...
0
votes
0answers
112 views

Moving Wordpress and “wp-content” Folder Name issues

I once use Better WP Security to change "/wp-content" folder name to "/media", and now I'm moving my whole site from localhost to a web server. I used WordPress Duplicator plugin. It worked fine. I ...
1
vote
1answer
92 views

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

Error in database connection [closed]

I am using Wamp server, I want to develop website using WordPress. I have configured wp-config.php. Still it is showing me Error establishing a database connection. How should I solve this ...
0
votes
2answers
1k views

Locked out of WordPress Site Admin after enabling Force SSL on WordPress Https (SSL)

I am in a terrible fix. I have been locked out of Site Admin and the solutions offered by the plug-in team in their documentation aren't working. I've tried both methods using Webmatrix. I have to ...
2
votes
1answer
143 views

get_template_directory_uri does not seem to work when defining WP_CONTENT_DIR

I have defined in my config: define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/somedirectory' ); after Codex: Editing WP Config BUT <?php echo get_template_directory_uri(); ?> prints out: ...
0
votes
0answers
111 views

wp-config.php file and code injection

It looks like several my sites on BlueHost got code injection in the wp-config.php file. Injected code itself looks like Any clue where it comes from? BH malware scan doesn't recognize that code so ...
0
votes
0answers
29 views

WordPress Redirect on Name Change

I changed the domain name in my WordPress options menu because I was changing the domain name of my site. Now, however, the page never loads. What can cause this and/or how can I revert it back to the ...
-1
votes
1answer
455 views

Connect to a remote database for wordpress in my own hosting server

Yesterday I had asked this question but it was down voted due to the rules of this forum. Anyway, this is my learning and I really thank to the moderators who down voted this as they helped me to gain ...
0
votes
1answer
472 views

Call to undefined function error after adding add_filter to wp-config

I am getting Fatal error: Call to undefined function add_filter() in example.com/wp-config.php on line 20 after adding add_filter( 'auto_update_plugin', '__return_true' ); to wp-config.php My ...
0
votes
2answers
86 views

Config file with no Keys..?

I'm working on a site for someone that doesn't have any keys in the wp-config file. Isn't this a serious issue? I know I can generate these but I wonder if this will have any side-effects..also, is ...
0
votes
1answer
26 views

Editing wp-config.php file asks for another installation

I edited wp-config.php and now I can't access my existing site and I see the Wordpress installation page! Help! How do I get to my existing site?
0
votes
1answer
40 views

Can Wordpress Drop-ins be given their own directory?

Drop-in files, like advanced-cache.php or object-cache.php, sit in the root of the wp-content directory. Is it possible to give drop-ins in their own subdirectory of wp-content instead? Looking at ...
1
vote
1answer
33 views

Update wp-config.php and lost pages

I recently made a small change to my wp-config.php by adding a memory limit line on a local version that didn't have the correct db settings. When I uploaded it, the db connection obviously broke. ...
0
votes
1answer
675 views

wp-config.php file permissions

I have installed Wordpress on my local Ubuntu machine, with standard LAMP configuration and phpMyAdmin. The installation directory is localhost:///var/www/blog. At the second step of the ...