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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • PEAR error? Valid Key? What am I doing wrong to get these errors?
Pages: [1]

Author Topic: PEAR error? Valid Key? What am I doing wrong to get these errors?  (Read 2168 times)

ccmclaugh

  • Guest
PEAR error? Valid Key? What am I doing wrong to get these errors?
December 30, 2007, 03:14:49 pm
I recently installed CiviCRM 1.9.12432 to my JOOMLA 1.0.13 website, and configured the back-end to the best of my abilities.

At one point, I was able to successfully test the contribution page from the back-end in the Configure Contribution Page. I would be taken to PayPal Standard where I typically abandoned the transaction, assuming that the rest was fine.

On the Site's front-end, I created a Component link to CiviCRM by entering the info provided from the Configure Contribution Page. The donation page loads up when the link is activated. I can fill it out (it includes a membership signup form). Then, when it is submitted, I get this error:

Sorry. A non-recoverable error has occurred.
Could not find valid Key

I went back through the parameters on the back end and made some changes in an attempt to troubleshoot and single out the problem. Now, when I test it from the back-end, I get an intermediary page that gives a summary of the details that were entered in the contribution page form. Then, when the info is submitted, I get this error:

Sorry. A non-recoverable error has occurred.

Error Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
[cod.e] =>           *****I ADDED THE "." AFTER THE D TO AVOID AUTOFORMATTING OF THIS SECTION OF MY POST******
    [message] => Malformed response.
    [mode] => 16
    [debug_info] =>
    [type] => PEAR_Error
    [user_info] =>
    [to_string] => [pear_error: message="Malformed response." code=0 mode=callback callback=CRM_Core_Error::handle prefix="" info=""]
)

What am I doing wrong to get these errors?
« Last Edit: December 30, 2007, 04:37:22 pm by ccmclaugh »

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: PEAR error? Valid Key? What am I doing wrong to get these errors?
December 30, 2007, 07:18:20 pm

can u enable backtrace in (adminster civicrm >> global settings >> debugging) and repeat the process in the frontend. That will give you the exact location where the error is taking place

also what changes did u make to the backend to fix the key error?

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

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: PEAR error? Valid Key? What am I doing wrong to get these errors?
December 30, 2007, 08:52:31 pm
The valid key error sounds like a session problem. In 1.0.13, make sure you've hacked the index.php file as outlined in this documentation page: http://wiki.civicrm.org/confluence/display/CRMDOC/Displaying+Online+Contribution+Pages+in+Joomla%21+Frontend+Sites

Pear errors almost always end up being a problem with your mail settings. They don't show up in the backend testing of a contribution page because it doesn't cycle through the whole process and generate an email receipt. Check your mail settings in administer > global settings > outbound email/smtp settings. For the server, try localhost with authentication set to no. If you know that you need the user/pwd, you need to open the config.settings.php file in components/com_civicrm and administrator/components/com_civicrm and place the pwd in the appropriate place in that file.

You can also turn off any references to email in the contribution page settings (no receipt, no cc/bcc, no notification to admin) and make sure you get the page working, then go back and play with the email settings.

-Brian
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

ccmclaugh

  • Guest
Re: PEAR error? Valid Key? What am I doing wrong to get these errors?
December 31, 2007, 09:39:34 am
Thank you both for your prompt relies.

Brian, I hacked the index.php as you prescribed, and the key error issue is resolved -no more key error message. When the front-end contribution page is submitted, the user is now taken to a summary page and asked to check and submit the final details. but, when one submits the information, one is greeted with the PEAR error message.

I turned off any references to email in the contribution page settings, and I still get the error. I entered the mail server settings that you recommended ("localhost" with authentication set to no) with no luck. I looked up my mail server configuration information and entered the parameters accordingly in the Manage Contribution Page > Thank You and Receipting. I still get the same error message.

I unchecked "Email Receipt to Contributor?" in order to turn the Email function off.  Still get the same error message.

I tried variations of settings on the "Thank You and Receipting" page, and to no avail.

Lobo, I took your advice and did a backtrace which yielded these results (I added ****** for the sake of anonymity):

/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Error.php, backtrace, 148
, handle,
/home/******/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, call_user_func, 901
/home/******/public_html/administrator/components/com_civicrm/civicrm/packages/PEAR.php, PEAR_Error, 566
/home/******/public_html/administrator/components/com_civicrm/civicrm/packages/HTTP/Request.php, raiseError, 1023
/home/******/public_html/administrator/components/com_civicrm/civicrm/packages/HTTP/Request.php, process, 631
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Utils/Address/USPS.php, sendRequest, 69
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Address.php, checkAddress, 180
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Address.php, fixAddress, 79
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/BAO/Location.php, add, 132
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Contact/BAO/Contact.php, add, 589
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Contact/BAO/Contact.php, create, 2266
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Form/Contribution/Confirm.php, createProfileContact, 338
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/StateMachine.php, postProcess, 166
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/******/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Controller.php, perform, 195
/home/******/public_html/administrator/components/com_civicrm/civicrm/packages/HTML/QuickForm/Page.php, handle, 95
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Controller.php, handle, 220
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Contribute/Invoke.php, run, 121
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Component.php(183) : eval()'d code, main, 1
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Component.php, eval, 183
/home/******/public_html/administrator/components/com_civicrm/civicrm/CRM/Core/Invoke.php, invoke, 144
/home/******/public_html/components/com_civicrm/civicrm.php, invoke, 67
/home/******/public_html/components/com_civicrm/civicrm.php, civicrm_invoke, 21
/home/******/public_html/index.php, require_once, 239

I could make little sense of the error that is revealed.

Do you know how I might fix this?


ccmclaugh

  • Guest
Re: PEAR error? Valid Key? What am I doing wrong to get these errors?
December 31, 2007, 10:19:14 am
I found the problem! Sort of.

It was the USPS address checker thingy. (now I may need to start a new thread for help on getting that thing to work!). I disabled it by deleting the fields for its' parameters, and the donation page WORKS.

Thanks again for the help.

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: PEAR error? Valid Key? What am I doing wrong to get these errors?
December 31, 2007, 10:22:39 am

please ensure that you have turned off USPS address formatting in:

Administer CiviCRM >> Global Settings >> Address Settings

seems like your machine cannot connect to the USPS address server

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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • PEAR error? Valid Key? What am I doing wrong to get these errors?

This forum was archived on 2017-11-26.