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
0answers
18 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
21 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 ...
1
vote
1answer
26 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
0answers
20 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
11 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
0answers
20 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
31 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
34 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
41 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
53 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
83 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 ...
0
votes
1answer
21 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 ...
0
votes
1answer
494 views

Error establishing a database connection - when running multiple wordpress 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 ...
1
vote
1answer
35 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 ...
2
votes
1answer
80 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
70 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
84 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
167 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
1answer
25 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
36 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
31 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. ...
1
vote
1answer
245 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. ...
0
votes
1answer
162 views

wp_insert_post bulk import 500 server error

I am working on a Wordpress import tool, where I use a custom city table in my database with longitude, latitude which combine with some other text and then import by wp_insert_post(). This works ...
1
vote
1answer
19 views

How to secure files based on format and word in file name with wp-config or htaccess?

I have a wordpress site that I would like to secure specific files in the uploads directory, so that they can only be accessed by logged in users. The files either have the word "oneperson" or ...
0
votes
1answer
108 views

Wordpress constantly running out of memory

My Wordpress installation on a shared hoster is constantly running out of memory: The error pops up at seemingly random, for example when uploading photos or sometimes without doing anything just ...
0
votes
1answer
49 views

Storing FTP details in wp-config.php

I'd like to hear about the security concerns for storing FTP details in wp-config.php on a shared server. It doesn't 'feel' safe to me. I'm using ManageWP to control sites on a shared server and have ...
0
votes
1answer
70 views

.htaccess and virtual host configuration for WP in its own directory

I've been taking a look at the modern WP development approaches using Composer and so on, for example Bedrock or WordPress-Skeleton. I'd like to adapt these approaches ad create my own WP ...
0
votes
0answers
11 views

Configuration File Safety [duplicate]

I'm new to PHP and WordPress and I've a few questions to ask about database and configuration file security. I hope you answer them. When I try to reach some wp sites config file by typing ...
2
votes
1answer
277 views

Different 'WP_CONTENT_URL' for different subsites in Multisite setup?

I host quite a few blogs on my network (WordPress Multisite) and have their static content served via a common CDN, by simply setting the wp-content directory URL in wp-config.php like so: # ...
0
votes
1answer
69 views

Relative Root Url For Sub domain name

I am really difficulties in using relative root url. I installed my wordpress site /root/mywordpress/tester1 folder and when I installed my wordpress sites with my subdomain like ...
0
votes
0answers
97 views

Multisite domain redirect subdirectory non-www to www without breaking root site

There are a ton of questions asked on Multisite domain mapping but none I can find with an answer that works for me. I am using subdirectories. Here is my configuration: (1) Root non-www: ...
4
votes
1answer
98 views

How to individually set WP_DEBUG on a sub-directory multisite?

According to this question, it's possible to turn on/off WP_DEBUG for specific sites on a multisite. Is it possible to do this with a sub-directory multisite?
0
votes
0answers
32 views

Wordpress Cache not working with some ajax calls

I need to install a plugin for caching my wordpress/buddypress pages or at least add define('WP_CACHE', true); to wp-config.php but when I do this, the button "join this group" that uses Ajax calls ...
0
votes
0answers
13 views

Why I obtain a white page when I import a backup of an old WP blog on my local web server? [duplicate]

I am pretty new with WP (I came from Joomla) and I am finding some problem loading an old WP backup on my local Apache. I have take the directory containint an old blog (named blog) and I have put it ...
0
votes
1answer
63 views

Remove hacked code - out of ideas! [closed]

I've been working on a project which keeps getting some PHP inserted into the config.php file and it's causing a lot of issues with SEO. I'll paste in a sample of it (it's quite long) after this ...
0
votes
0answers
48 views

No input file specified after enabling multi site

I am getting this error after enabling Multisite "No input file specified.", I can't find a solution in the internet, I hope you can help me. I have this in my htacces RewriteEngine On RewriteBase / ...
0
votes
2answers
159 views

How do I enable Multisite on WP 3.7.1?

(Using Wordpress 3.7.1) Adding the string define(‘WP_ALLOW_MULTISITE’, true); to my wp-config.php file isn't giving me the 'Network' choice in the Tools menu, even after multiple logouts and waiting a ...
0
votes
2answers
488 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 ...
0
votes
0answers
133 views

Problems with moving wp-content to a subdomain

Got a little problem. I wanted to move wp-content to a subdomain (content.sitename.com) but there's a weird problem when rendering PHP-Content (e.g. style.css.php). Every PHP file in ...
0
votes
2answers
221 views

Conditional config WP_HOME/WP_SITEURL does not update bloginfo('template_url')?

The scenario: This question relates to Wordpress theme development on a local environment via MAMP. In order to enable mobile device testing via xip.io, I have modified my local Wordpress ...
2
votes
1answer
115 views

register_theme_directory somehow “fails” when folder is outside of WP-Folder

This is a simple skeleton for WordPress, that makes it possible to have just "themes" and "plugins" under version control: https://github.com/sourcerer-mike/WordPress-GIT-Skeleton When doing ...
0
votes
1answer
63 views

/var/run/mysqld/mysqld.sock

I'm using Wordpress v.3.4.2 and today I've tried to update to the v.3.7.1 using all possible ways but in all of them I got the following error "Can't estabilish database connection", and since I was ...
0
votes
0answers
124 views

Malware/Permission bug removal?

I'm facing a hell of a problem on a client's WP theme. Whenever I try to 'Activate' it, it gives me the following errors on a blank page: Warning: ...
0
votes
2answers
67 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
0answers
37 views

Wordpress NavXT plugin localization

My situation is as follows: 1) I am using wordpress 3.6.1, and I have the Breadcrumb NavXT plugin installed. 2) I have a custom theme, and the localization file is on the following path: ...
-1
votes
1answer
73 views

Wordpress White Screen Error

So I have encountered the white screen error of Wordpress. I enabled the WP_DEBUG in the wp_config.php and found no errors. I also tried error_reporting(E_ALL); and ini_set('display_errors', 1); and ...
0
votes
1answer
38 views

Is there any reason why using the same wp-config file might not work in MAMP?

I'm not sure why but when i just want to create a copy of a site that i'm working on in MAMP, that say i just downloaded from the web. I just copy the same wp-config file from another local version ...
0
votes
0answers
40 views

Remove Multisite

This is a site I'm working on, but did not build. It is on a multisite network- but I would like to get it back to normal. There are no other sites on the network. All of the instructions tell me to ...
0
votes
1answer
819 views

Changing from localhost:8888 to localhost

I have just changed ports on MAMP from :8888 to :80 for localhost in order to setup a WordPress multisite for local development. However I have several sites with separate installations that are in my ...