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) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.6 Release Testing »
  • Custom CRM/Mailing/Info.php causes WSOD when installing extensions
Pages: [1]

Author Topic: Custom CRM/Mailing/Info.php causes WSOD when installing extensions  (Read 1085 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Custom CRM/Mailing/Info.php causes WSOD when installing extensions
May 27, 2015, 08:36:29 pm
I'm using the custom PHP feature of CiviCRM to apply patches etc I can't do with a hook.

I have a custom version of CRM/Mailing/Info.php which causes problems when installing an extension. I get the (redacted) error

Quote
PHP Fatal error:  Cannot redeclare class CRM_Mailing_Info in /custom-code-area/CRM/Mailing/Info.php on line 0, referer: https://example.org/civicrm/admin/extensions?action=add&id=nz.co.fuzion.accountsync&key=nz.co.fuzion.accountsync

When I remove that PHP file, all is well.

Potential culprit

I see that civicrm_rules_civicrm_postProcess() in drupal/modules/civicrm_rules/civicrm_rules.module on line 132 has ...

Code: [Select]
  require_once 'CRM/Mailing/Info.php';
Could that be the cause? Assuming this is called before the custom code is included.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom CRM/Mailing/Info.php causes WSOD when installing extensions
May 28, 2015, 12:24:32 am
ken - can i encourage you to ask on StackExchange were an eager bunch of experts await you
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Custom CRM/Mailing/Info.php causes WSOD when installing extensions
May 28, 2015, 05:03:51 pm
Pete,

I thought bug reports were still being posted here. I'm just a tad confused about the role of this forum now.

Thanks for the tip.

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Custom CRM/Mailing/Info.php causes WSOD when installing extensions
May 28, 2015, 05:28:21 pm
me too a bit so ignore by all means. just that i think there are more eyeballs at SE now, and since your post ended with a question .... ;-)
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
Re: Custom CRM/Mailing/Info.php causes WSOD when installing extensions
May 30, 2015, 02:00:19 am
I took your advice and had a response from Lobo. You are very canny...

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Alpha and Beta Release Testing »
  • 4.6 Release Testing »
  • Custom CRM/Mailing/Info.php causes WSOD when installing extensions

This forum was archived on 2017-11-26.