3

I am getting reports from users of blank screens when going to register for an event. This does not happen for most users. The PHP error log says:

PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 400572416 bytes) in /home/sclgulf/public_html/sclgulf/vendor/civicrm/civicrm-core/CRM/Core/Error.php on line 520

There is no error in the CiviCRM log in the ConfigAndLog directory. I have tried allocating 1GB instead of 512MB and it makes no difference. Can anyone help me debug this please?

2
  • Can you comment out the var_dump statement at line 520? Then it should show the actual error when it happens. I think it's running out of memory trying to dump the variable before it gets to say what the error is.
    – Demerit
    Jan 6, 2020 at 14:04
  • Hi, "There is no error in the CiviCRM log in the ConfigAndLog directory." that seems odd - can you double-check the permissions on the directory? Also would you mind updating your question with which version of CiviCRM you're on, and which payment processors you are using [on that event]? Also whether you're using PHP FPM or Apache's mod php? Jan 10, 2020 at 17:01

1 Answer 1

2

As per @Demerit's comment, and somewhat counter-intuitively, make sure you've got your debugging settings to "off" - it's running out of memory when reporting the error. If you turn the various debugging settings off, it'll still report quite a lot of detail of the error.

8
  • Many thanks Alan for your comments, and @Demerit too. Jan 10, 2020 at 8:51
  • I am seeing a long [warning] as follows when a payment is created (and is not marked complete by the dummy payment processor): Jan 10, 2020 at 8:51
  • 2
    Jan 10 09:49:17 [warning] Deprecated function CRM_Core_OptionGroup::getValue, use CRM_Core_PseudoConstant::getKey. Array ( [civi.tag] => deprecated ) Jan 10 09:49:17 [warning] Deprecated code: We have merged input params into the property bag for now but please rewrite code to not use this. Jan 10 09:49:17 [warning] Deprecated code: Unknown property 'qfKey'. We have merged this in for now as a custom property. Please rewrite your code to use PropertyBag->setCustomProperty ... Jan 10, 2020 at 8:53
  • 2
    Sorry, I cannot post the whole set of warnings as there is not enough characters in this message. But there are dozens of similar lines of warning about deprecated code. I am running latest Civivcrm 5.21 on Drupal 8 Jan 10, 2020 at 8:55
  • 1
    Ah, cool. That new PropertyBag code just got merged recently, you might have encountered an issue with it. lab.civicrm.org/dev/financial/issues/82 What payment processor are you using?
    – Alan Dixon
    Jan 10, 2020 at 16:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.