• Resolved impanema

    (@impanema)


    I am having a problem when I log into WordPress 6.5.2 with WP-Optimize 3.3.2 (free edition). I did not have this problem with WP-Optimize 3.3.1 (free edition).

    At wp-login.php, after I enter the Username and Password, I get the following message: “Error: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.” Without making any changes, when I enter the Username and Password a second time, I am able to log into WordPress.

    However, in WP-Optimize 3.3.2, when I “Purge cache” under “Deletes the entire cache contents but keeps the page cache enabled.”, and then exit WordPress, and then log into WordPress again, I do not get the error message about cookies.

    This happens consistently. If I don’t “Purge cache” before exiting WordPress, I get the error. If I do “Purge cache” before exiting, I don’t get the error.

    • This topic was modified 7 months, 1 week ago by impanema.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Support wpmansour

    (@wpmansour)

    Hello,

    I’m sorry to hear about the trouble you’re experiencing while trying to log into WordPress. Let’s try a few steps that should help resolve the “Cookies are blocked or not supported by your browser” error:

    1. Enable Cookies in Your Browser: It’s essential that cookies are enabled in your browser. You can find how to do this by visiting this link: Enable Cookies.
    2. Clear Browser Cookies: If you recently changed servers, clear your browser cookies and try logging in again.
    3. Update Your wp-config.php File: Add the following line to your wp-config.php file, just before the /* That's all, stop editing! Happy publishing. */ line: define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']);
    4. Adjust functions.php: If the issue persists, add the following code to your theme’s functions.php file:
    if (SITECOOKIEPATH != COOKIEPATH) {
        setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
    }

    By following these steps, you should be able to resolve the login issue. Please let me know if you continue to experience problems after completing all the steps outlined above.

    Thanks!

    • This reply was modified 7 months, 1 week ago by wpmansour.
    Thread Starter impanema

    (@impanema)

    Thank you for your response.

    I followed your instructions. I entered your code in wp-config.php and received the same error. I then entered your code in my theme’s functions.php and received the same error. Regarding cookie settings, please recall that I have no problems logging into WordPress with WP-Optimize 3.3.1.

    Plugin Support vupdraft

    (@vupdraft)

    Can you try resaving your permalinks?

    Can you goto Settings???Permalinks?from your WordPress admin menu.

    The WordPress Permalink settings.

    This will take you to the WordPress Permalink Settings page. Here, you’ll see the permalink structure that you are currently using.

    To reset permalinks, just scroll to the bottom of the page and click on the ‘Save Changes’ button.

    If you deactivate WPO does the issue persist?

    Thread Starter impanema

    (@impanema)

    Thank you for your response.

    I followed your instructions. In Settings > Permalinks, I clicked on ‘Save Changes’. I logged out and when I logged in, I got the same error message.

    Also, I deactivated WPO. I logged out and when I logged in, I received *no* error message.

    Plugin Support wpmansour

    (@wpmansour)

    Thank you for your patience, we are actively investigating it and would like to gather any additional details. It would be very helpful if you could send us your WordPress Site Health Info. This information can provide crucial details that could help us understand what might be causing the problem.

    Here’s how you can copy the Site Health Info:

    1. Go to your WordPress admin dashboard.
    2. Navigate to Tools > Site Health.
    3. Click on the Info tab.
    4. Press Copy site info to clipboard.

    Here’s a screenshot to guide you: Site Health Info (https://prnt.sc/g708fnsnFzBf)

    Once you have that copied, please paste it into a tool such as pastebin.com and share the link here. This will greatly assist us in diagnosing the problem more accurately.?

    Thank you for your cooperation,

    • This reply was modified 7 months, 1 week ago by wpmansour. Reason: pastebin
    • This reply was modified 7 months, 1 week ago by wpmansour. Reason: Usage of pastebin tool
    Thread Starter impanema

    (@impanema)

    Thanks again for getting back to me.

    I followed your instructions regarding copying the requested Site Health information. No problem.

    However, even though I created a new account at pastebin.com, and even though I have decades of computer experience, the bizarre pastebin.com interface, accompanied by a bombardment of advertising, rendered me nonplussed. Please send detailed pastebin.com instructions or, better yet, alternative means by which to send you the Site Health information.

    Thread Starter impanema

    (@impanema)

    OK. Here is the requested Site Health information. Sorry for the confusion/delay.

    https://pastebin.com/UpnxE7CK

    Thread Starter impanema

    (@impanema)

    I went ahead and deactivated all plugins except WPO. No luck.

    Plugin Support wpmansour

    (@wpmansour)

    Thank you for sharing the site health information; it has been helpful in further investigating the issue. I noticed that WP_HOME and WP_SITEURL are undefined, which is common in local setups. Typically, browsers require a proper domain to accept or authorize cookies by default. Since this is a local environment, I suggest updating your wp-config.php file to address cookie handling. Please ensure that you remove the line define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST']); that I suggested earlier, and replace it with the following code:

    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', ''); 
    define('COOKIE_DOMAIN', false);

    After adding this, please clear your browser’s cache completely, close the browser, and then try logging in again with a fresh window. Let us know how it goes!

    Thread Starter impanema

    (@impanema)

    Thank you for your participation.

    Regarding wp-config.php, I followed your instructions exactly. I cleared all cache in both Firefox and Chrome and got the same error. Again, as I stated in my first post: “Without making any changes, when I enter the Username and Password a second time, I am able to log into WordPress.”

    Plugin Support vupdraft

    (@vupdraft)

    Can you navigate to your sites function.php?file. Then add the following code:

    setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
    if ( SITECOOKIEPATH != COOKIEPATH ) setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);

    This code will set the WordPress test cookie, which checks if your browser has cookies.

    Thread Starter impanema

    (@impanema)

    Done as you requested.

    No changes trying to log in.

    Plugin Support vupdraft

    (@vupdraft)

    Last time I got an error message about cookies, now I just get that this login is not registered (as expected) so it seems different to me?

    Thread Starter impanema

    (@impanema)

    From my end, the cookie error interface and problem right now is exactly the same as described in my first post.

    Plugin Support vupdraft

    (@vupdraft)

    Do you have any security plugins activated, if so can you deactivate them and see if you still get the error

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Logging into WordPress 6.5.2 with WP-Optimize 3.3.2’ is closed to new replies.