Fresh Installation PDF Issue - Invalid Method, Method not found

I have deployed a new server with V11 and python3. it seems to work except for pdf button in print preview.

When I press it I get this screen.

Console output
Failed to load resource: the server responded with a status of 404 (NOT FOUND)
With the link which fails to be found.

ERPNext: v11.1.77 (version-11)
Frappe Framework: v11.1.69 (version-11)

This is something I am getting for the first time so thought I will check with community users if anyone else have faced this issue?

Any advice to solve this will be appreciated.


How did you accomplish the installation?
Is wkhtmltopdf installed? What version?
Did you try: bench migrate-env python3.x

I have installed it using easy script and normally everything is done by the script.

I can’t see the full screen, but a similar post with solution is here

Hi and thanks for the response but I think the thread is a different problem of not having the document saved.
It is happening for all the doctypes.

Mine looks like wkhtml2pdf issue.

It was some print setting issue from the custom app.

Solved by making changes to it

hi @fkardame, I encountered the same problem. Could you please explain in detail how did you solve it?

Remove any custom app and try, it should work.