Skip to content
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

Fixed fatal error for class not found when managed hook is invoked du… #17004

Merged
merged 1 commit into from
Apr 8, 2020

Conversation

pradpnayak
Copy link
Contributor

…ring upgrade

Overview

For https://civicrm.stackexchange.com/questions/35285/is-this-wordpress-critical-error-after-upgrade-to-5-24-1-serious

Regression from 5.22.1 (#16521)

Before

Failed to load class after upgrade

After

Upgraded Civi without error

Technical Details

Since hook_civicrm_config() is not invoked while upgrade the get_include_path() doesn't have path for extension which may cause fatal error when managed hook is invoked.

@civibot
Copy link

civibot bot commented Apr 7, 2020

(Standard links)

@civibot civibot bot added the master label Apr 7, 2020
@pradpnayak
Copy link
Contributor Author

should this be against 5.24 branch?

@pradpnayak pradpnayak changed the base branch from master to 5.24 April 7, 2020 02:26
@civibot civibot bot added 5.24 and removed master labels Apr 7, 2020
@pradpnayak pradpnayak changed the base branch from 5.24 to master April 7, 2020 02:26
@civibot civibot bot added master and removed 5.24 labels Apr 7, 2020
@seamuslee001
Copy link
Contributor

I would appreciate @totten 's thoughts on this

@pradpnayak
Copy link
Contributor Author

just for information, this issue occurs only when upgrade done through UI but cannot be reproduce using CLI method.

@kcristiano
Copy link
Member

@pradpnayak Is there an extension that I can install to reproduce? I do 99% of my upgrades via cli so I have missed these. I just upgraded 'clean' installs via the UI without incident, so this must be extension specific.

@pradpnayak
Copy link
Contributor Author

Civirules may be good one.

@kcristiano
Copy link
Member

Thanks That did it.

I was able to reproduce the error.

I did an r-run on 5.24 and 5.25 RC with the patch applied and this fixes the issue.

I think we should have this against the RC and I am inclined to add to 5.24 as well. @totten what do you think?

@colemanw colemanw changed the base branch from master to 5.25 April 7, 2020 17:07
@civibot civibot bot added 5.25 and removed master labels Apr 7, 2020
@colemanw
Copy link
Member

colemanw commented Apr 7, 2020

I agree. I've rebased this into the 5.25 branch.

@seamuslee001
Copy link
Contributor

Jenkins re test this please

@eileenmcnaughton eileenmcnaughton merged commit 0475828 into civicrm:5.25 Apr 8, 2020
@pradpnayak pradpnayak deleted the fixhookissue branch June 5, 2020 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants