Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20218

Disable payment extension causes fatal error if payment processor exists (even if disabled)

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.12, 4.7.17
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      Steps to reproduce:

      1. Install an extension that provides a payment processor, e.g., Stripe.
      2. Create a payment processor of that type, then disable it.
      3. Disable the extension installed in step 1.
      4. Observe fatal error. Fatal error: require_once(): Failed opening required 'CRM/Core/Payment/Stripe.php' (include_path='/var/www/d7cividev/sites/default/files/civicrm/ext/com.iatspayments.civicrm/:/var/www/d7cividev/sites/all/modules/tmtools_d7/civicrm:.:/var/www/d7cividev/sites/all/modules/civicrm:/var/www/d7cividev/sites/all/modules/civicrm/packages:.:/var/www/d7cividev/sites/all/modules/civicrm:/var/www/d7cividev/sites/all/modules/civicrm/packages:/var/www/d7cividev/sites/all/modules/civicrm/vendor/tecnickcom:/var/www/d7cividev/sites/all/modules/civicrm/vendor/pear/pear_exception:/var/www/d7cividev/sites/all/modules/civicrm/vendor/pear/validate_finance_creditcard:/var/www/d7cividev/sites/all/modules/civicrm/vendor/phpseclib/phpseclib/phpseclib:.:/usr/share/php:/usr/share/pear') in /var/www/d7cividev/sites/all/modules/civicrm/Civi/Payment/System.php on line 59

      Backtrace provided by xdebug:

      Call Stack
      #	Time	Memory	Function	Location
      1	0.0000	236680	{main}( )	../index.php:0
      2	0.0111	1964296	menu_execute_active_handler( )	../index.php:21
      3	0.3054	8384928	drupal_deliver_page( )	../menu.inc:542
      4	0.3054	8385736	drupal_deliver_html_page( )	../common.inc:2611
      5	0.3054	8386904	drupal_render_page( )	../common.inc:2729
      6	0.3056	8462032	block_page_build( )	../common.inc:5851
      7	0.3057	8465944	block_get_blocks_by_region( )	../block.module:268
      8	0.3057	8466120	block_list( )	../block.module:318
      9	0.3069	8501528	_block_render_blocks( )	../block.module:686
      10	0.3070	8504328	module_invoke( )	../block.module:905
      11	0.3070	8504768	call_user_func_array:{/var/www/d7cividev/includes/module.inc:905} ( )	../module.inc:905
      12	0.3070	8505144	civicrm_block_view( )	../module.inc:905
      13	0.3071	8514376	CRM_Core_Block::getContent( )	../civicrm.module:95
      14	0.3072	8527824	CRM_Core_Block::setTemplateValues( )	../Block.php:609
      15	0.3072	8528080	CRM_Core_Block::setTemplateShortcutValues( )	../Block.php:289
      16	0.3090	8900696	CRM_Core_Config::isEnabledBackOfficeCreditCardPayments( )	../Block.php:369
      17	0.3091	9043984	CRM_Financial_BAO_PaymentProcessor::hasPaymentProcessorSupporting( )	../Config.php:439
      18	0.3091	9044088	CRM_Financial_BAO_PaymentProcessor::getPaymentProcessors( )	../PaymentProcessor.php:410
      19	0.3091	9044512	CRM_Financial_BAO_PaymentProcessor::getAllPaymentProcessors( )	../PaymentProcessor.php:365
      20	0.3385	9757712	Civi\Payment\System->getByProcessor( )
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              allenshaw Allen Shaw
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: