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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Wordpress 3.4.2 and CiviCRM 4.4 "Could not find a valid session key"
Pages: [1]

Author Topic: Wordpress 3.4.2 and CiviCRM 4.4 "Could not find a valid session key"  (Read 1160 times)

GinkgoDOB

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
  • Dir. of Product Development, Ginkgo Street Labs
    • Ginkgo Street Labs
  • CiviCRM version: v4.5-4.7
  • CMS version: Drupal
Wordpress 3.4.2 and CiviCRM 4.4 "Could not find a valid session key"
October 29, 2013, 09:01:45 am
I'm working on a new CiviCRM 4.4 install into an existing Wordpress 3.4.2. I'm working with the organization to get Wordpress updated to 3.7, but that may be a while before it's done. Initial testing for that upgrade showed some cosmetic impact after the upgrade to WP3.7.

Anyhow, CiviCRM was installed fresh last Friday and I got through some of the initial configuration. I created a contribution page for membership sign-up and I'd like to delete it and start over. (There's another issue where Civi lets you create a membership price set after you've set the option to allow contribution amounts, but I'll deal with that separately since I've since discovered it falls into the "Doctor, it hurts when I do this" category.)

When I [attempt to] delete the contribution page, I get the confirmation prompt on the next screen, and upon answering in the affirmative, I get the error

Quote
Sorry but we are not able to provide this at the moment.
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 adminstrator for assistance.

Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.

Error type: Could not find a valid session key.

The CiviCRM log shows the following traceback

Quote
Oct 29 11:44:28  [info] $Fatal Error Details = Array
(
    [message] => You do not have permission to access this page
   
Code: [Select]
=>
)


Oct 29 11:44:28  [info] $backTrace = #0 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(320): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Utils/System/WordPress.php(398): CRM_Core_Error::fatal("You do not have permission to access this page")
#2 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Utils/System.php(232): CRM_Utils_System_WordPress->permissionDenied()
#3 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(244): CRM_Utils_System::permissionDenied()
#4 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:12))
#5 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3))
#6 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm.php(463): CRM_Core_Invoke::invoke((Array:3))
#7 [internal function](): CiviCRM_For_WordPress->invoke("")
#8 /home/theorgan/public_html/site/wp-includes/plugin.php(403): call_user_func_array((Array:2), (Array:1))
#9 /home/theorgan/public_html/site/wp-admin/admin.php(151): do_action("toplevel_page_CiviCRM")
#10 {main}


Oct 29 11:45:20  [info] $Fatal Error Details = Array
(
    [message] => 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 adminstrator for assistance.<br /><br />Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.<br /><br />Error type: Could not find a valid session key.
    [code] =>
)


Oct 29 11:45:20  [info] $backTrace = #0 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(320): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(795): CRM_Core_Error::fatal("We can't load the requested web page. This page requires cookies to be enable...")
#2 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(790): CRM_Core_Controller->invalidKeyCommon()
#3 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(307): CRM_Core_Controller->invalidKey()
#4 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(206): CRM_Core_Controller->key("CRM_Contribute_Form_SearchContribution", TRUE, FALSE)
#5 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller/Simple.php(63): CRM_Core_Controller->__construct("Search Contribution", TRUE, 1, "CRM_Contribute_Form_SearchContribution", FALSE, FALSE)
#6 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Page/ContributionPage.php(539): CRM_Core_Controller_Simple->__construct("CRM_Contribute_Form_SearchContribution", "Search Contribution", 1)
#7 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Page/ContributionPage.php(412): CRM_Contribute_Page_ContributionPage->search()
#8 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Page/ContributionPage.php(364): CRM_Contribute_Page_ContributionPage->browse()
#9 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(323): CRM_Contribute_Page_ContributionPage->run((Array:3), NULL)
#10 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(72): CRM_Core_Invoke::runItem((Array:13))
#11 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3))
#12 /home/theorgan/public_html/site/wp-content/plugins/civicrm/civicrm.php(463): CRM_Core_Invoke::invoke((Array:3))
#13 [internal function](): CiviCRM_For_WordPress->invoke("")
#14 /home/theorgan/public_html/site/wp-includes/plugin.php(403): call_user_func_array((Array:2), (Array:1))
#15 /home/theorgan/public_html/site/wp-admin/admin.php(151): do_action("toplevel_page_CiviCRM")
#16 {main}[/quote]

I've looked back through the forums and JIRA and see some session-related issues, but I'm kind of at a loss. The WP user account I'm working with is a full administrator, so it shouldn't be a permission issue. There are a bunch of plugins installed, but none that should be impacting access to the site.

Anyone have any thoughts? I can push for the Wordpress upgrade, but I'd like to have some idea that it might provide a positive outcome before I do.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Wordpress 3.4.2 and CiviCRM 4.4 "Could not find a valid session key"
October 29, 2013, 10:36:02 am

1. can u check and see if you get the same behavior on your test upgrade site (running wp 3.7)

2. what are the urls on the delete page before the confirmation and after? do they share the same host name

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

GinkgoDOB

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
  • Dir. of Product Development, Ginkgo Street Labs
    • Ginkgo Street Labs
  • CiviCRM version: v4.5-4.7
  • CMS version: Drupal
Re: Wordpress 3.4.2 and CiviCRM 4.4 "Could not find a valid session key"
October 29, 2013, 11:22:53 am
I did check the base URLs for Wordpress and CiviCRM and they match. AFAIK the base URL is not changing.

I'll check my test site and report back. I don't think I've got Civi installed there at the moment, but I can plop it on and report back.


GinkgoDOB

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
  • Dir. of Product Development, Ginkgo Street Labs
    • Ginkgo Street Labs
  • CiviCRM version: v4.5-4.7
  • CMS version: Drupal
Re: Wordpress 3.4.2 and CiviCRM 4.4 "Could not find a valid session key"
October 29, 2013, 12:25:01 pm
I cannot reproduce the valid session key error in the test environment, which has been upgraded to WP 3.7. (All of the plugins have been updated in the test environment, too.)

I've run up another weird thing which I *DID* get on the CiviCRM Demo site, too.

While creating a membership price set with 3 options for different numbers of terms on an annual membership, plus a fourth for a lifetime membership, I get a bogus validation error. If I get rid of the 4th option, which happens to be a different membership type, the error goes away and I can save the price set. I can subsequently edit the price set and add the option for a lifetime membership.

Related: I need a cookie, some warm milk and a nap.

GinkgoDOB

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 1
  • Dir. of Product Development, Ginkgo Street Labs
    • Ginkgo Street Labs
  • CiviCRM version: v4.5-4.7
  • CMS version: Drupal
Re: Wordpress 3.4.2 and CiviCRM 4.4 "Could not find a valid session key"
November 13, 2013, 02:33:40 pm
Following up on the "Could not find a valid session key" issue I had:

The site has been upgraded to Wordpress 3.7.1 and I'm no longer getting the error. I might suggest that the system requirements be revised to say Wordpress 3.5+.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Wordpress 3.4.2 and CiviCRM 4.4 "Could not find a valid session key"

This forum was archived on 2017-11-26.