Answers.Body: <p>The most common cause of this is a redirect happening before CiviCRM renders the page. Typically what I do in these situations is to log every request in <code>wp-settings.php</code>, just before <code>plugins_loaded</code> - something like:</p>
  <pre><code>error_log( print_r( [
    'NEW-REQUEST' =&gt; '======================================================================',
    'REQUEST_URI' =&gt; $_SERVER['REQUEST_URI'],
    'REQUEST_TIME_FLOAT' =&gt; $_SERVER['REQUEST_TIME_FLOAT'],
    'POST' =&gt; $_POST,
    'END-REQUEST' =&gt; '======================================================================',
  ], true ) );
  </code></pre>
  <p>This should make each request obvious in your logs.</p>
  <p>Next, I'd pepper <code>redirect_canonical()</code> with similar logging code to see if it is fixing and redirecting malformed URLs.</p>
  <p>Happy sleuthing.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-07-25T12:01:45.850Z
Answers.LastActivityDate: 2024-07-25T12:01:45.850Z
Answers.UserDisplayName: Christian Wach
Body: <p>Our CiviCRM works with Worpress. We have a newsletter subscription form, and also use event registration, and contribution pages for donation. Our visitors randomly receive this error:</p>
  <blockquote>
  <p>We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.</p>
  </blockquote>
  <p>We have tried almost any solution we have found on this forum, removing enforcing https, making sure URLs are correct etc... and still it randomly appears for some visitors.</p>
  <p>Our site is behind CloudFlare but we are exempting it from caching and security rules with custom rules.</p>
  <p>Can you suggest a way to trace this issue out? I will highly appreciate it as we have already spent many hours on this issue with no luck.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-19T22:10:19.737Z
Comments.Text: per this answer have you confirmed folk are not being jumped from www to no-www etc https://civicrm.stackexchange.com/questions/14377/this-page-requires-cookies-to-be-enabled
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-23T06:59:12.383Z
Comments.Text: What have they just done before getting that error? Eg is this when they open the registration form, complete a contribution etc.What payment processor are you using? Does it take you away from the site and redirect back with a different URL?  The browser's developer tools showing network traffic may help.
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-07-23T10:29:09.820Z
Comments.Text: Yes. There is no jumping between www to no-www and also from http to https. It's all https://domainname.name
Comments.UserDisplayName: Kamyar
Tags: <wordpress><civievent><profile><forms>
Title: Cookie issue with forms (profile, event registration)
ThreadText: # Cookie issue with forms (profile, event registration)
  
  (Asked by: username_0 on 2024-07-19)
  
  Our CiviCRM works with Worpress. We have a newsletter subscription form, and also use event registration, and contribution pages for donation. Our visitors randomly receive this error:
  
  > We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site administrator for assistance.
  
  We have tried almost any solution we have found on this forum, removing enforcing https, making sure URLs are correct etc... and still it randomly appears for some visitors.
  
  Our site is behind CloudFlare but we are exempting it from caching and security rules with custom rules.
  
  Can you suggest a way to trace this issue out? I will highly appreciate it as we have already spent many hours on this issue with no luck.
  
  **Tags:** wordpress, civievent, profile, forms
  
  > **Comments:**
  > **username_1**: per this answer have you confirmed folk are not being jumped from www to no-www etc https://civicrm.stackexchange.com/questions/14377/this-page-requires-cookies-to-be-enabled  
  > **username_2**: What have they just done before getting that error? Eg is this when they open the registration form, complete a contribution etc.What payment processor are you using? Does it take you away from the site and redirect back with a different URL?  The browser's developer tools showing network traffic may help.  
  > **username_0**: Yes. There is no jumping between www to no-www and also from http to https. It's all https://domainname.name  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2024-07-25. Score: 1
  
  The most common cause of this is a redirect happening before CiviCRM renders the page. Typically what I do in these situations is to log every request in `wp-settings.php`, just before `plugins_loaded` - something like:
  
  ```
  error_log( print_r( [
    'NEW-REQUEST' => '======================================================================',
    'REQUEST_URI' => $_SERVER['REQUEST_URI'],
    'REQUEST_TIME_FLOAT' => $_SERVER['REQUEST_TIME_FLOAT'],
    'POST' => $_POST,
    'END-REQUEST' => '======================================================================',
  ], true ) );
  
  ```
  
  This should make each request obvious in your logs.
  
  Next, I'd pepper `redirect_canonical()` with similar logging code to see if it is fixing and redirecting malformed URLs.
  
  Happy sleuthing.
  
  
  ---
  
  