XF 2.3 Cookies are required to use this site. You must accept them to continue using the site.

PumpinIron

Well-known member
As of a few months ago guests on my forum https://wranglertjforum.com have started receiving the dreaded, "Cookies are required to use this site. You must accept them to continue using the site."

Screenshot 2026-02-01 at 11.56.52 AM.webp

Prior to a few months ago this was never an issue. I'm running the most current version of XF and all my add-ons.

Things I've tried to do to remedy this issue to no avail:
  1. Revered to the default theme
  2. Disabled all add-ons
  3. Disabled and completely bypassed Cloudflare
  4. Disabled LiteSpeed and LiteSpeed cache
  5. Removed all of the third party ad serve scripts that display ads for visitors (not logged in members)
None of these things have worked, the issue still persists.

I've been working with ChatGPT to troubleshoot this with me for hours now and everything it's given me to try (which has been a long list of all sorts of exhaustive things) hasn't worked. You guys are my last hope so I'm hoping perhaps someone will see or know something that I don't.

The strange thing is that it's only doing it for guests, not logged in users (at least near as I can tell).
 
As of a few months ago guests on my forum https://wranglertjforum.com have started receiving the dreaded, "Cookies are required to use this site. You must accept them to continue using the site."

View attachment 333289

Prior to a few months ago this was never an issue. I'm running the most current version of XF and all my add-ons.

Things I've tried to do to remedy this issue to no avail:
  1. Revered to the default theme
  2. Disabled all add-ons
  3. Disabled and completely bypassed Cloudflare
  4. Disabled LiteSpeed and LiteSpeed cache
  5. Removed all of the third party ad serve scripts that display ads for visitors (not logged in members)
None of these things have worked, the issue still persists.

I've been working with ChatGPT to troubleshoot this with me for hours now and everything it's given me to try (which has been a long list of all sorts of exhaustive things) hasn't worked. You guys are my last hope so I'm hoping perhaps someone will see or know something that I don't.

The strange thing is that it's only doing it for guests, not logged in users (at least near as I can tell).
I ran it through Gemini and this is 1 of the options it purposed:

Database Session Table Crash​

Sometimes the xf_session table (which tracks guest sessions) crashes or gets locked, preventing new guest sessions from being written. If a guest can't get a session ID, they can't set a cookie.

  • The Fix:
    1. Log into phpMyAdmin (or your database tool).
    2. Run a REPAIR on the xf_session and xf_session_activity tables.
 
A search on this forum revealed that this has been happening to several other users as well in the past. Try the suggestion mentioned at this thread and see if it will help you too.

 
I ran it through Gemini and this is 1 of the options it purposed:

Database Session Table Crash​

Sometimes the xf_session table (which tracks guest sessions) crashes or gets locked, preventing new guest sessions from being written. If a guest can't get a session ID, they can't set a cookie.

  • The Fix:
    1. Log into phpMyAdmin (or your database tool).
    2. Run a REPAIR on the xf_session and xf_session_activity tables.
If the session table was indeed crashed I think that the error message would have been quite different. A database error message mentioning the crashed table rather than the cookie error message.
 
A search on this forum revealed that this has been happening to several other users as well in the past. Try the suggestion mentioned at this thread and see if it will help you too.

It’s definitely not this. This is one of the first things I ruled out.

I ran it through Gemini and this is 1 of the options it purposed:

Database Session Table Crash​

Sometimes the xf_session table (which tracks guest sessions) crashes or gets locked, preventing new guest sessions from being written. If a guest can't get a session ID, they can't set a cookie.

  • The Fix:
    1. Log into phpMyAdmin (or your database tool).
    2. Run a REPAIR on the xf_session and xf_session_activity tables.

This also didn't work for whatever reason.
 
Last edited:
Back
Top Bottom