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) »
  • error: could not find contribution details for your request
Pages: [1]

Author Topic: error: could not find contribution details for your request  (Read 1686 times)

vrazbros

  • Guest
error: could not find contribution details for your request
February 05, 2008, 02:27:57 am
I have 2 Contribution Pages in my Drupal site.
I create links to this contribution page by copying and pasting the URLs into my menu.

1) How can I do this way ???
  • Donation - for all
  • Membership signup - for authenticated user only

2) What does access CiviContribute mean ?
I set access control for anonymous:
 
access CiviContribute - checked
access all custom data - checked
make online contributions - unchecked
profile listings and forms -  checked

and a users got Access denied page in all my contribution pages. (I expected users can see contribution page but they can't make contributions)

then I login to my site and got this error

Code: [Select]
Sorry. A non-recoverable error has occurred. (even after set CiviContribute to unchecked)
We could not find contribution details for your request. Please try your request again.

backTrace

/site/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 255
/site/sites/all/modules/civicrm/CRM/Contribute/Form/ContributionBase.php, fatal, 134
/site/sites/all/modules/civicrm/CRM/Contribute/Form/Contribution/Main.php, preProcess, 53
/site/sites/all/modules/civicrm/CRM/Core/Form.php, preProcess, 283
/site/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Display.php, buildForm, 98
/site/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 195
/site/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 220
/site/sites/all/modules/civicrm/CRM/Contribute/Invoke.php, run, 121
/site/sites/all/modules/civicrm/CRM/Core/Component.php(183) : eval()'d code, main, 1
/site/sites/all/modules/civicrm/CRM/Core/Component.php, eval, 183
/site/sites/all/modules/civicrm/CRM/Core/Invoke.php, invoke, 144
/site/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 319
, civicrm_invoke,
/site/includes/menu.inc, call_user_func_array, 418
/site/index.php, menu_execute_active_handler, 15

What am I doing wrong?
« Last Edit: February 18, 2008, 08:36:57 am by vrazbros »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: error: could not find contribution details for your request
February 06, 2008, 07:30:32 am
The 'make online contributions' permission is needed to access Online Contribution Pages. So you need to check that for "anonymous" role.

Since 'Membership Signup' happens on an Online Contribution Page - I don't think you can do exactly what you want without modifying the code. Either anonymous users have access to online contribution pages, or they don't. You could "discourage" anonymous users from accessing your Membership Signup page by only displaying links to it on pages / blocks that are displayed to authenticated users.

The fatal error seems to indicate that your link is missing/has lost the contribution page id. Links to online contribution / membership signup pages should look like this:

http://<drupal site>/civicrm/contribute/transact?reset=1&id=1

... where id=1 points to a specific contribution page. You can see the correct links for each page from Manage Contribution Pages.
Protect your investment in CiviCRM by  becoming a Member!

vrazbros

  • Guest
Re: error: could not find contribution details for your request
February 06, 2008, 10:40:15 am
Drupal 5.7
anonymous:
access CiviContribute - unchecked
make online contributions - unchecked

authenticated user:
access CiviContribute - checked
make online contributions - checked

On Access denied page I pront $_REQUEST[]

Quote
Array
(
    [q] => civicrm/contribute/transact
    [reset] => 1
    [id] => 2   
    [destination] => civicrm/contribute/transact
)


url = http://site/civicrm/contribute/transact?reset=1&id=2

Then I login and got error. (login block, left side menu)
url = http://site/civicrm/contribute/transact?reset=&id=

You are right. I lost reset and id params.
How can I fix it ?
« Last Edit: February 18, 2008, 08:32:35 am by vrazbros »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: error: could not find contribution details for your request
February 06, 2008, 11:25:19 am
If you are using the Drupal menu module to add these links - you need to enter them as complete (not relative) URLs. Otherwise, the values after the ? are modified in a way that breaks things. There are other ways to do this as well - http://forum.civicrm.org/index.php/topic,2165.0.html
Protect your investment in CiviCRM by  becoming a Member!

vrazbros

  • Guest
Re: error: could not find contribution details for your request
February 07, 2008, 02:23:45 am
http://forum.civicrm.org/index.php/topic,2165.0.html
My problem is not the same. I tried this but with no success. (still get the same error) I have link in my Drupal menu and it works fine during user session. I enter urls as complete (not relative) URLs. Clean urls is enabled of course. Civicrm 1.9

I get this error if
1 anonymous click on menu itme with url http://<drupal site>/civicrm/contribute/transact?reset=1&id=1
2 get access denied
3 then go straight to the login login block, left side menu.
4 after authorization I get this error.

if I go to the  http://<drupal site>/user (stage 3) everything is ok or if I click somewhere and then login everything is ok too.
I think you can reproduce this error on demo server easily. I can give you a link in private if you don't mind. I reproduced this error on 2 sites.

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: error: could not find contribution details for your request
February 07, 2008, 04:39:48 am

This is an issue/bug with drupal and civicrm integration. when drupal redirects after login, it does not send the other GET parameters, and hence u get the error.

I'm not sure how we can fix this without making some changes to drupal, which we avoid doing.

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • error: could not find contribution details for your request

This forum was archived on 2017-11-26.