-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
avoid fatal error in PHP 8 in BAO/Navigation.php #24904
Conversation
Can one of the admins verify this patch? |
(Standard links)
|
@civicrm-builder add to whitelist |
We should target the 5.56 rc branch I think as this appears to be a regression |
Hey @eileenmcnaughton, I don’t know if this is a request for me to change my pull request. I can certainly do that if it helps. As an aside, I would not be sure if my definition of regression includes code that was created 4.5 years ago (and never changed since) breaking in a new language version. |
I agree that technically it's not a regression in our codebase. However, the user will experience it as a regression (it works, they upgrade, it stops working), and it's such a safe & simple fix that we're better off fixing it in the RC. We'll get fewer complaints that way :) |
Happy to play around a bit – let’s see how I can mess this up ;-) |
I didn’t find a guide that seemed appropriate for this situation and ended up cherrypicking that one commit onto a newly created patch-1 branch (created at the current head of 5.56), then force-pushing that to patch-1 on my fork. But the web view here still says my request is based on master. Now watiing for the test build to finish to see if it changes then. I refer back to my previous comment … |
@sebalis that worked. The last step was just to edit the PR in GitHub and change the base, which I've done. |
Thanks for helping out. I tried to find rhat setting in the Github web interface, but didn’t succeed. |
It's hidden behind the Edit button at the top right of the screen. |
Of course it is – I did try that button but only noticed that it allowed me to edit the title, not change the base branch :-) :-( |
Thanks for this @sebalis - the last step is for you to create a second PR to add yourself to contributors.yml https://github.com/civicrm/civicrm-core/blob/master/contributor-key.yml |
Thanks @eileenmcnaughton :-) See #24914 |
See https://lab.civicrm.org/dev/core/-/issues/3968 for details.
Overview
Trying to upgrade a test instance of Wordpress+CiviCRM to PHP 8 I found that this line can throw a fatal error. Not sure whether this is the best way to fix it, that’s for core developers to decide.
Before
The CiviCRM menu does not show after an upgrade to PHP 8, due to this line throwing a fatal error “Unsupported operand types: string - string”
After
The menu is back :-)