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

TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method CRM_Case_Page_AJAX::addClient() cannot be called statically #24843

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Oct 28, 2022

Overview

Make static function static

Before

  1. Administer - civicase settings - allow multiple clients
  2. Add a case client to an existing case using the little icon next to the case client name.
  3. Spinner just spins.
  4. TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method CRM_Case_Page_AJAX::addClient() cannot be called statically

After

Technical Details

Comments

@civibot
Copy link

civibot bot commented Oct 28, 2022

(Standard links)

@eileenmcnaughton
Copy link
Contributor

Wow - that survived a long time

@eileenmcnaughton eileenmcnaughton merged commit 2cff1a7 into civicrm:master Oct 28, 2022
@demeritcowboy demeritcowboy deleted the addclient branch October 28, 2022 20:20
@demeritcowboy
Copy link
Contributor Author

It might not be a very commonly used feature. And it only fails hard in php 8.

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.

2 participants