Articles of wp config

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 WordPress and doesn’t download additional things like the default theme. However, I now can’t find it for the life of me. I’ve […]

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?

Proper way to have multiple installs with a single database

Here’s my scenario: I have a development zone with a standard WordPress installation ( When it comes time to showing work to clients, I use version control to copy the dev installation to a beta zone ( So, a pretty standard setup. They share the same database. However, using this method in wp-config.php on the […]

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 : PHPSESSID=jndfbcev6hie1jm02btk19grs1; path=/ ” I’ve configured WP with those options without succes: @ini_set(‘session.cookie_httponly’, true); @ini_set(‘session.cookie_secure’, true); @ini_set(‘session.use_only_cookies’, true); and modified the header and the htaccess […]

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. home_url(‘wp-admin/admin-ajax.php’) Usually method A is used. However for some websites this request gives error 404 in front-end. Method B does not work when wordpress is located in some sub-directory with respect […]

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 by errors every time I attempt to log in–from a log-in page where the CSS is gone. I have […]

ERROR: “Table Prefix” must not be empty

I’m having trouble trying to setup WordPress for local development, I tried to install it, but even though I fill up the form to setup config file I still get the same error, I can connect to database, but I don’t know why it keeps giving that error. I also tried using the wp-config-sample.php but […]

Login failed after cloning live wordpress site to local wampserver

This is what I did: Copy all files in public_html to C:\wamp\www\ Export my database and rename all to http://localhost/ of exported .sql file using notepad++ Change database name, database username and database password in wp-config.php to my new database name, username and password that I created in my local phpmyadmin All done with […]

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( ‘SECURE_AUTH_KEY’, ‘D&ovlU#|CvJ##uNq}bel+^MFtT&.b9{UvR]g%ixsXhGlRJ7q!h}XWdEC[BOKXssj’ ); define( ‘LOGGED_IN_KEY’, ‘MGKi8Br(&{H*~&0s;{k0<S(O:+f#WM+q|npJ-+P;RDKT:~jrmgj#/-,[hOBk!ry^’ ); define( ‘NONCE_KEY’, ‘FIsAsXJKL5ZlQo)iD-pt??eUbdc{_Cn<4!d~yqz))&B D?AwK%)+)F2aNwI|siOe’ ); define( ‘AUTH_SALT’, ‘7T-!^i!0,w)L#JK@pc2{8XE[DenYI^BVf{L:jvF,hf}zBf883td6D;Vcy8,S)-&G’ ); define( ‘SECURE_AUTH_SALT’, ‘I6`V|mDZq21-J|ihb u^q0F }F_NUcy`l,=obGtq*p#Ybe4a31R,r=|n#=]@]c #’ ); define( ‘LOGGED_IN_SALT’, ‘w<$4c$Hmd%/*]`Oom>(hdXW|0M=X={we6;Mpvtg+V.o<$|#_}qG(GaVDEsn,~*4i’ ); define( ‘NONCE_SALT’, ‘a|#h{c5|P &xWs4IZ20c2&%4!c(/uG}W:mAvy<I44`jAbup]t=]V<`}.py(wTP%%’ ); and the note […]

Not showing old migrated content in website

I have migrated my database from one server to another, and configured my new database details. Now, WordPress is not showing any old content in my new site – it is only showing my newly inserted content. What extra configuration should be done to show all the content in the site?