CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Session problem - We can\'t load the requested web page ....
Pages: [1]

Author Topic: Session problem - We can\'t load the requested web page ....  (Read 522 times)

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Session problem - We can\'t load the requested web page ....
May 11, 2014, 06:40:54 pm
I've been looking at a wordpress problem where the Preview page of the mailing is not loading with ye olde cookies enabled error. This is not a server we control so I only have control panel access to it. I'm not seeing any evidence of inconsistent urls (http vs https, www vs non www)

I can see that the problem is that the qfKey is 'simply accepted' in the first 3 screens - which pass qfkey via GET - ie.

 CRM_Core_Controller holds (around line 292)

    $key = CRM_Utils_Array::value('qfKey', $_REQUEST, NULL);
    if (!$key && $_SERVER['REQUEST_METHOD'] === 'GET') {
      $key = CRM_Core_Key::get($name, $addSequence);
    }
    else {
      $key = CRM_Core_Key::validate($key, $name, $addSequence);
    }

The key is the same for the 2 pages where it is passed by GET and where it is passed by POST. I have debugged that the reason the POST does not validate is that the $privateKey returned from CRM_Core_Key::privateKey() function is incorrect - seemingly because it is not retrieving it from the session & is regenerating it. Does anyone have any recommendations for getting to the bottom of sessions problems in Wordpress - I am recommending they test plugin compatibility by disabling & enabling.


Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Session problem - We can\'t load the requested web page ....
May 11, 2014, 07:28:02 pm
As a sort of aside this line

https://github.com/civicrm/civicrm-core/blame/master/CRM/Core/Session.php#L306

      $values = CRM_Core_BAO_Cache::getItem('CiviCRM Session', "CiviCRM_{$prefix}");

seems destined not to work in  multipart forms when array_cache (the default) is used - could that be it?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • WordPress Installations (Moderators: Kurund Jalmi, Coleman Watts) »
  • Session problem - We can\'t load the requested web page ....

This forum was archived on 2017-11-26.