Skip to content
Snippets Groups Projects
Closed Price option reaches max amount causes critical error.
  • View options
  • Price option reaches max amount causes critical error.

  • View options
  • Closed Issue created by Bruce Thompson

    If a price field is setup with price options that have a max amount when that max amount of registrations is met the site throw a critical error in WordPress. First noticed this in CiviCRM v 5.35.1. I updated a site to 5.36 with the same result and then tested on https://wpmaster.demo.civicrm.org/ which is currently running 5.38.alpha1 and I received similar results xcept I didn't get the WP critical error message just a http 500 notice. Here is the error message sent via WordPress after the critical error page. There is nothing in the CiviCRM logs.

    An error of type E_ERROR was caused in line 209 of the file /home/account_name/public_html/wp-content/plugins/civicrm/civicrm/CRM/Price/BAO/PriceField.php. Error message: Uncaught Error: Call to a member function freeze() on string in /home/account_name/public_html/wp-content/plugins/civicrm/civicrm/CRM/Price/BAO/PriceField.php:209 Stack trace: #0 /home/account_name/public_html/wp-content/plugins/civicrm/civicrm/CRM/Price/BAO/PriceField.php(439): CRM_Price_BAO_PriceField::freezeIfEnabled('

    Happy to provide additional information.

    Edited by Bruce Thompson

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading