jeffbaier
Forum Replies Created
-
I had this problem, but only in special circumstances. I have some custom login forms on my site (in my sidebar, in a widget, etc) and I would get the “WordPress Requires Cookies” error when I logged in using those forms.
I was able to resolve this issue and posted the solution in a different thread. Hope this can help someone.
https://www.ads-software.com/support/topic/144079?replies=25#post-656390
I’ve been dealing with this same problem since I first updated to 2.3 about a month ago. 2.3.1 did not fix my problem either. I tried all the fixes in this thread and other and they weren’t working.
On my site, I have a few custom login forms (in the sidebar, etc). I noticed these had the problem, but the /wp-login.php login did not have the problem.
I was able to fix my problem by adding the following code to the top of my header.php in my theme before any html —
if ( !is_user_logged_in() ) { //Set a cookie now to see if they are supported by the browser. setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN); if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN); }
This is pulled straight from line 23 of wp-login.php. Basically if a user is not logged in, it sets the test cookie that wp-login checks for, and if its not present it causes the “WordPress Requires Cookies” error.
Hope this helps someone.