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

CRM-19914 - civicrmHooks.php issues on windows #9788

Merged
merged 1 commit into from
Mar 21, 2017

Conversation

fliespl
Copy link
Contributor

@fliespl fliespl commented Feb 5, 2017

The problem is that on Windows path might resolve differently, because of notation. Problem is that even if file exists it will not be included (silent error ignore) in specific cases (directory names).


The problem is that on Windows path might resolve differently, because of notation. Problem is that even if file exists it will not be included (silent error ignore) in specific cases (directory names).
@civicrm-builder
Copy link

Can one of the admins verify this patch?

@seamuslee001
Copy link
Contributor

This looks sensible @eileenmcnaughton what you think? can you ok to test this pls

@eileenmcnaughton
Copy link
Contributor

test this please

@eileenmcnaughton
Copy link
Contributor

It makes sense - I guess we do need to load a wordpress site with this & ensure a basic contact edit still works

@kcristiano
Copy link
Member

kcristiano commented Mar 21, 2017

@eileenmcnaughton I have tested this on latest master. I have added the patch and then installed a number of WP plugins that rely on hooks. All are working as expected.

@christianwach Can you review this as well?

@christianwach
Copy link
Member

Haven't tested this specifically, but I'd say it's a sensible addition. I've just debugged a scenario where CiviCRM's use of set_include_path() was interfering with the loading of files in another plugin in just the same way. The solution was to be specific about the path to the file.

@fliespl
Copy link
Contributor Author

fliespl commented Mar 21, 2017

@christianwach That's correct. I have also experienced the same issue here CMB2/CMB2#886

@kcristiano
Copy link
Member

Thanks for the feedback @christianwach based on my testing and the comments I do believe this should be merged as soon as practical for RC testing

@eileenmcnaughton eileenmcnaughton merged commit 4c89e0b into civicrm:master Mar 21, 2017
@fliespl fliespl deleted the patch-1 branch March 22, 2017 07:35
monishdeb pushed a commit to monishdeb/civicrm-core that referenced this pull request May 2, 2017
CRM-19914 - civicrmHooks.php issues on windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants