"Non-static method CRM_Contact_Page_AJAX::pdfFormat() should not be called statically" when changing the page format on print/merge document
- 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.
- Go to admin - communications - print page formats.
- Add a format. Details don't matter.
- Search for contributions.
- Select one and from the actions dropdown choose Thank You letter.
- Expand the Page Format section and change the format.
- 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 https://github.com/civicrm/civicrm-core/blob/7d6e6b8da43a5abcf1b24f205221ab13f4deea02/CRM/Core/xml/Menu/Contact.xml#L310