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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Contribution pages to the front end and IE
Pages: [1]

Author Topic: Contribution pages to the front end and IE  (Read 663 times)

prasanthsd@yahoo.com

  • Guest
Contribution pages to the front end and IE
September 16, 2010, 10:32:37 am
Hi guys,

Im using joomla 1.5.20 and civiCRM 3.2.3. Im customizing the contribution front end. I have added 2 pages between Main and Confirm pages in the state machine. The other pages collect a few more info and create some individual records.

In mozilla everythig works fine. But in IE there are some weird issues. At the confirm page once you submit it sometimes redirect to the joomla home page. Some times i get the following error.

Code: [Select]
Sep 16 15:47:21  [info] $Fatal Error Details = Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -5
    [message] => DB Error: already exists
    [mode] => 16
    [debug_info] => INSERT INTO civicrm_contribution (contact_id , contribution_type_id , contribution_page_id , payment_instrument_id , receive_date , non_deductible_amount , total_amount , invoice_id , currency , cancel_reason , source , amount_level , is_pay_later , contribution_status_id , check_number ) VALUES ( 33 ,  2 ,  1 ,  1 ,  20100916154719 ,  0.00 ,  160.00 , '67a588dd5682106c9cea2070facfbe0a' , 'GBP' , '0' , 'Online Contribution: Member Signup' ,  NULL ,  0 ,  2 ,  NULL )  [nativecode=1062 ** Duplicate entry '67a588dd5682106c9cea2070facfbe0a' for key 3]
    [type] => DB_Error
    [user_info] => INSERT INTO civicrm_contribution (contact_id , contribution_type_id , contribution_page_id , payment_instrument_id , receive_date , non_deductible_amount , total_amount , invoice_id , currency , cancel_reason , source , amount_level , is_pay_later , contribution_status_id , check_number ) VALUES ( 33 ,  2 ,  1 ,  1 ,  20100916154719 ,  0.00 ,  160.00 , '67a588dd5682106c9cea2070facfbe0a' , 'GBP' , '0' , 'Online Contribution: Member Signup' ,  NULL ,  0 ,  2 ,  NULL )  [nativecode=1062 ** Duplicate entry '67a588dd5682106c9cea2070facfbe0a' for key 3]
    [to_string] => [db_error: message="DB Error: already exists" code=-5 mode=callback callback=CRM_Core_Error::handle prefix="" info="INSERT INTO civicrm_contribution (contact_id , contribution_type_id , contribution_page_id , payment_instrument_id , receive_date , non_deductible_amount , total_amount , invoice_id , currency , cancel_reason , source , amount_level , is_pay_later , contribution_status_id , check_number ) VALUES ( 33 ,  2 ,  1 ,  1 ,  20100916154719 ,  0.00 ,  160.00 , '67a588dd5682106c9cea2070facfbe0a' , 'GBP' , '0' , 'Online Contribution: Member Signup' ,  NULL ,  0 ,  2 ,  NULL )  [nativecode=1062 ** Duplicate entry '67a588dd5682106c9cea2070facfbe0a' for key 3]"]
)


Sep 16 15:47:21  [info] $backTrace = C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Core\Error.php, backtrace, 189
, handle,
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\PEAR.php, call_user_func, 931
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\DB.php, PEAR_Error, 968
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\PEAR.php, DB_Error, 564
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\DB\common.php, raiseError, 1903
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\DB\mysql.php, raiseError, 898
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\DB\mysql.php, mysqlRaiseError, 327
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\DB\common.php, simpleQuery, 1216
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\DB\DataObject.php, query, 2411
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\DB\DataObject.php, _query, 1043
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Core\DAO.php, insert, 280
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Contribute\BAO\Contribution.php, save, 146
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Contribute\Form\Contribution\Confirm.php, add, 1072
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Contribute\BAO\Contribution\Utils.php, processContribution, 109
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Member\BAO\Membership.php, processConfirm, 952
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Contribute\Form\Contribution\Confirm.php, postProcessMembership, 806
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Core\Form.php, postProcess, 250
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Core\StateMachine.php, mainProcess, 167
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Core\QuickForm\Action\Next.php, perform, 64
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\HTML\QuickForm\Controller.php, perform, 203
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\packages\HTML\QuickForm\Page.php, handle, 103
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Core\Controller.php, handle, 279
C:\xampp\htdocs\civiproject\administrator\components\com_civicrm\civicrm\CRM\Core\Invoke.php, run, 219
C:\xampp\htdocs\civiproject\components\com_civicrm\civicrm.php, invoke, 81
C:\xampp\htdocs\civiproject\components\com_civicrm\civicrm.php, civicrm_invoke, 24
C:\xampp\htdocs\civiproject\libraries\joomla\application\component\helper.php, require_once, 162
C:\xampp\htdocs\civiproject\includes\application.php, renderComponent, 124
C:\xampp\htdocs\civiproject\index.php, dispatch, 68

The reason im getting the error is that everything is being done twice. The contacts that I try to create etc are craeted twice. Not sure why.

Also one thing I have notced is that I cant use xdebug with IE on confirm postprocess. Eclipse does catch the breakpoint but the page continues execution and it redirect to the paypal page. In mozilla it works fine

Im thinking the issue is related to cookie/session. Im using localhost as the domain. So the issue with/without www is not there. Are there any limit imposed by IE in the amount of data thats stored in the session?

Any suggestion/help is welcome. Thanks in advance.[/code]

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Contribution pages to the front end and IE

This forum was archived on 2017-11-26.