-
-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Event Cart: Fix PHP 7.2 fatal error (pass by ref) #13927
Conversation
(Standard links)
|
@mlutfy I think the better fix would be not to call that function & just call CRM_Core_Session::singleton()->setStatus(); We seem to be calling a complex function to no benefit here |
Yes to Eileen's suggestion, and another piece of cleanup we could do is to remove the |
Fine by me. I was just hesitant since I don't know how to trigger/test the error. I'd rather avoid venturing into further changes with |
@mlutfy I gave it merge-on-pass but I think the last var should actually be 'error' - just from the fn signature.
|
oops, indeed, thanks. I had randomly copy-pasted, and found a few errors (
Fixed in #13943 |
unrelated fail |
Overview
To reproduce:
/civicrm/event/cart_checkout
).Result: blank page / fatal error.
Technical Details
I'm not a fan of this function, and this seems like an incorrect usage, but I couldn't figure out how to trigger the error (for some reason, the PHP fatals, even if the code does not run on that line).