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

dev/core#2110 - Warning "Non-static method CRM_Contact_Page_AJAX::pdfFormat() should not be called statically" when changing the page format on print/merge document #18726

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

demeritcowboy
Copy link
Contributor

@demeritcowboy demeritcowboy commented Oct 10, 2020

Overview

https://lab.civicrm.org/dev/core/-/issues/2110

  1. It's a bit difficult to see the warning because it gets hidden somewhere during the ajax call. You can install the loudnotices extension to see it.
  2. Go to admin - communications - print page formats.
  3. Add a format. Details don't matter.
  4. Search for contributions.
  5. Select one and from the actions dropdown choose Thank You letter.
  6. Expand the Page Format section and change the format.
  7. If you have loudnotices installed you can either check ConfigAndLog or on the network tab in browser dev tools check the response.

Or, just look at the function and see it's not static but it's a routing endpoint as defined at

<page_callback>CRM_Contact_Page_AJAX::pdfFormat</page_callback>

All the other functions in this file are static too.

@civibot
Copy link

civibot bot commented Oct 10, 2020

(Standard links)

@civibot civibot bot added the master label Oct 10, 2020
@seamuslee001
Copy link
Contributor

Looks fine to me merging

@seamuslee001 seamuslee001 merged commit 5a7e2ac into civicrm:master Oct 10, 2020
@demeritcowboy demeritcowboy deleted the static-pdfformat branch October 12, 2020 02:28
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