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 »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution page does not submit for anonymous users.
Pages: [1]

Author Topic: Contribution page does not submit for anonymous users.  (Read 1019 times)

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Contribution page does not submit for anonymous users.
October 20, 2014, 11:48:23 pm
After upgrade to 4.5.0 I have been getting the error message when trying to submit the form http://www.interpolat.com/consultation-request-form as an anonymous user (not logged in).  The form submits fine when one is logged in.

The error message appears after the form has been completed, and the user (anonmyous) hits "Submit"
The resulting URL after hitting submit is http://www.interpolat.com/consultation-request-form/?page=CiviCRM&q=civicrm/contribute/transact&_qf_ThankYou_display=1&qfKey=83b6bf1351f41bce8f65b44aa916add0_8252

Error message is:

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.
Return to home page.

I have since upgraded to 4.5.2 on Wordpress 4.0 and the issue persists.

The following is in error log:

Quote
Oct 18 15:23:43  [info] $backTrace = #0 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Error.php(387): CRM_Core_Error::backtrace("backTrace", TRUE)
#1 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(877): CRM_Core_Error::fatal("We can't load the requested web page. This page requires cookies to be enable...")
#2 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(891): CRM_Core_Controller->invalidKeyCommon()
#3 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Controller/Contribution.php(72): CRM_Core_Controller->invalidKeyRedirect()
#4 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(318): CRM_Contribute_Controller_Contribution->invalidKey()
#5 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(209): CRM_Core_Controller->key("CRM_Contribute_Controller_Contribution", TRUE, FALSE)
#6 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Controller/Contribution.php(53): CRM_Core_Controller->__construct("CiviContribute", "null")
#7 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(326): CRM_Contribute_Controller_Contribution->__construct("CiviContribute", TRUE, "null", NULL, "false")
#8 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(75): CRM_Core_Invoke::runItem((Array:15))
#9 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3))
#10 /home/xxxx/public_html/wp-content/plugins/civicrm/civicrm.php(506): CRM_Core_Invoke::invoke((Array:3))
#11 [internal function](): CiviCRM_For_WordPress->invoke("<p>[vc_row][vc_column width=\"1/1\"][vc_column_text]<br />\n[/vc_column_text]...")
#12 /home/xxxx/public_html/wp-includes/plugin.php(214): call_user_func_array((Array:2), (Array:1))
#13 /home/xxxx/public_html/wp-includes/post-template.php(222): apply_filters("the_content", "[vc_row][vc_column width=\"1/1\"][vc_column_text]\r\n[/vc_column_text][/vc_co...")
#14 /home/xxxx/public_html/wp-content/themes/dt-the7/page.php(31): the_content()
#15 /home/xxxx/public_html/wp-includes/template-loader.php(74): include("/home/xxxx/public_html/wp-content/themes/dt-the7/page.php")
#16 /home/xxxx/public_html/wp-blog-header.php(16): require_once("/home/xxxx/public_html/wp-includes/template-loader.php")
#17 /home/xxxx/public_html/index.php(17): require("/home/xxxx/public_html/wp-blog-header.php")
#18 {main}
« Last Edit: October 27, 2014, 11:39:31 am by Interpolat »
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Contribution page does not submit for anonymous users.
October 21, 2014, 04:53:23 am
A couple important notes about this.

1) This is set up to use free memberships (I know there are a couple of threads/issues around these right now)
2) It is actually Civi 4.5.2
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

Interpolat

  • I post frequently
  • ***
  • Posts: 140
  • Karma: -1
    • Interpolat Solutions, LLC.
  • CiviCRM version: 4.4+
  • CMS version: Wordpress
  • MySQL version: 5.5+
  • PHP version: 5.4+
Re: Contribution page does not submit for anonymous users.
November 04, 2014, 10:15:04 pm
Any ideas for this, anyone?
Interpolat Solutions, LLC
Connecting the dots for you!
http://www.interpolat.com

sonicthoughts

  • Ask me questions
  • ****
  • Posts: 498
  • Karma: 10
Re: Contribution page does not submit for anonymous users.
December 02, 2014, 06:25:16 pm
I just got a complaint about the same issue.  I'm not a developer, but my wild guess is that it is not related to cookies, but there is some assumption made about the key that is incorrect related to this part of controller.php:
Code: [Select]
309     $key = CRM_Utils_Array::value('qfKey', $_REQUEST, NULL);
310     if (!$key && $_SERVER['REQUEST_METHOD'] === 'GET') {
311       $key = CRM_Core_Key::get($name, $addSequence);
312     }
313     else {
314       $key = CRM_Core_Key::validate($key, $name, $addSequence);
315     }
316
317     if (!$key) {
318       $this->invalidKey();

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribution page does not submit for anonymous users.

This forum was archived on 2017-11-26.