We went live with new website including CiviCRM last month. On test system our membership, payment and contribution page were all working OK. Pretty sure they were also OK post launch, and post upgrade to Civi 4.7.10. Now however we get blank page (HTTP error 500) on front end when accessing the contribution page with shortcade [civicrm component="contribution" id="1" mode="live" hijack="0"].
Turned on debug and get out of memory errors when:
- Create new contribution page. At first continue button when using the CiviContribute dashboard, but immediately when through Administer -> CiviContribute -> New Contribution Page
- Edit existing contribution page, configure 'Title and settings' or 'Contribution Amounts'. Other sections open and save OK.
- Membership dashboard - immediately
Tried doubling the php memory up to 512M. Reinstalling 4.7.10. Checked 'CIVICRM_UF_BASEURL' in civicrm.settings.php. Deleted and recreated all payment processors, price sets and steps in the setup doc.
At a loss of where to go next. Any clues?
The detail of where the out of memory report comes changes but here's a sample:
Fatal error: Out of memory (allocated 118489088) (tried to allocate 49152 bytes) in /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm/CRM/Campaign/BAO/Query.php on line 414
Backtrace:
CRM_Contribute_Exception_InactiveContributionPageException: "The page you requested is currently unavailable."
#0 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm/CRM/Contribute/Form/Contribution/Main.php(63): CRM_Contribute_Form_ContributionBase->preProcess()
#1 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Form.php(519): CRM_Contribute_Form_Contribution_Main->preProcess()
#2 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/QuickForm/Action/Display.php(92): CRM_Core_Form->buildForm()
#3 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Contribute_Form_Contribution_Main), "display")
#4 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contribute_Form_Contribution_Main), "display")
#5 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Controller.php(351): HTML_QuickForm_Page->handle("display")
#6 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(312): CRM_Core_Controller->run((Array:3), NULL)
#7 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:15))
#8 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:3))
#9 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/civicrm.php(1227): CRM_Core_Invoke::invoke((Array:3))
#10 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-content/plugins/civicrm/includes/civicrm.basepage.php(132): CiviCRM_For_WordPress->invoke()
#11 [internal function](): CiviCRM_For_WordPress_Basepage->basepage_handler(Object(WP))
#12 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-includes/plugin.php(600): call_user_func_array((Array:2), (Array:1))
#13 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-includes/class-wp.php(738): do_action_ref_array("wp", (Array:1))
#14 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-includes/functions.php(963): WP->main("")
#15 /home/sites/bristolcyclingcampaign.org.uk/public_html/wp-blog-header.php(16): wp()
#16 /home/sites/bristolcyclingcampaign.org.uk/public_html/index.php(17): require("/home/sites/bristolcyclingcampaign.org.uk/public_html/wp-blog-header.php")
#17 {main}
Sorry but we are not able to provide this at the moment.
The page you requested is currently unavailable.
Return to home page.
Update: Spent a good while investigating the memory issue, but it wasn't the root of the problem. It was helpful to put in some echo lines in civicrm.settings.php. They came up every page but on the 'fatal' pages helped to confirm that memory_limit was being set correctly, but didn't affect the error.
echo "memory_limit: " . ini_get('memory_limit') . " $memLimit: " $memLimit;
ini_set('memory_limit', '256M');